Convert float64 to dataframe? [closed]
up vote
0
down vote
favorite
Well, I have a dataset which is in txt file form. I openened the file in Anaconda in float64 and I would like to convert it into a dataframe. Is this possible?
python anaconda
closed as unclear what you're asking by QHarr, gnat, greg-449, Larry Shatzer, pirho Nov 8 at 17:51
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
0
down vote
favorite
Well, I have a dataset which is in txt file form. I openened the file in Anaconda in float64 and I would like to convert it into a dataframe. Is this possible?
python anaconda
closed as unclear what you're asking by QHarr, gnat, greg-449, Larry Shatzer, pirho Nov 8 at 17:51
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Can you provide some example code?
– API
Nov 8 at 11:06
I opened the file with this commant: dataset =np.genfromtxt('filename.txt',delimiter='') and it opened at float 64 form. I want to create a neural network.
– Theodora
Nov 8 at 12:13
have you tried to read directly with pandas?import pandas as pd
andpd.read_csv('filename.txt', delimiter=",")
– API
Nov 8 at 12:21
Yes, but it gives me this message : "ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0"
– Theodora
Nov 8 at 13:26
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Well, I have a dataset which is in txt file form. I openened the file in Anaconda in float64 and I would like to convert it into a dataframe. Is this possible?
python anaconda
Well, I have a dataset which is in txt file form. I openened the file in Anaconda in float64 and I would like to convert it into a dataframe. Is this possible?
python anaconda
python anaconda
asked Nov 8 at 11:04
Theodora
1
1
closed as unclear what you're asking by QHarr, gnat, greg-449, Larry Shatzer, pirho Nov 8 at 17:51
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
closed as unclear what you're asking by QHarr, gnat, greg-449, Larry Shatzer, pirho Nov 8 at 17:51
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
Can you provide some example code?
– API
Nov 8 at 11:06
I opened the file with this commant: dataset =np.genfromtxt('filename.txt',delimiter='') and it opened at float 64 form. I want to create a neural network.
– Theodora
Nov 8 at 12:13
have you tried to read directly with pandas?import pandas as pd
andpd.read_csv('filename.txt', delimiter=",")
– API
Nov 8 at 12:21
Yes, but it gives me this message : "ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0"
– Theodora
Nov 8 at 13:26
add a comment |
Can you provide some example code?
– API
Nov 8 at 11:06
I opened the file with this commant: dataset =np.genfromtxt('filename.txt',delimiter='') and it opened at float 64 form. I want to create a neural network.
– Theodora
Nov 8 at 12:13
have you tried to read directly with pandas?import pandas as pd
andpd.read_csv('filename.txt', delimiter=",")
– API
Nov 8 at 12:21
Yes, but it gives me this message : "ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0"
– Theodora
Nov 8 at 13:26
Can you provide some example code?
– API
Nov 8 at 11:06
Can you provide some example code?
– API
Nov 8 at 11:06
I opened the file with this commant: dataset =np.genfromtxt('filename.txt',delimiter='') and it opened at float 64 form. I want to create a neural network.
– Theodora
Nov 8 at 12:13
I opened the file with this commant: dataset =np.genfromtxt('filename.txt',delimiter='') and it opened at float 64 form. I want to create a neural network.
– Theodora
Nov 8 at 12:13
have you tried to read directly with pandas?
import pandas as pd
and pd.read_csv('filename.txt', delimiter=",")
– API
Nov 8 at 12:21
have you tried to read directly with pandas?
import pandas as pd
and pd.read_csv('filename.txt', delimiter=",")
– API
Nov 8 at 12:21
Yes, but it gives me this message : "ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0"
– Theodora
Nov 8 at 13:26
Yes, but it gives me this message : "ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0"
– Theodora
Nov 8 at 13:26
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Can you provide some example code?
– API
Nov 8 at 11:06
I opened the file with this commant: dataset =np.genfromtxt('filename.txt',delimiter='') and it opened at float 64 form. I want to create a neural network.
– Theodora
Nov 8 at 12:13
have you tried to read directly with pandas?
import pandas as pd
andpd.read_csv('filename.txt', delimiter=",")
– API
Nov 8 at 12:21
Yes, but it gives me this message : "ValueError: only single character unicode strings can be converted to Py_UCS4, got length 0"
– Theodora
Nov 8 at 13:26