Jan-26-2023, 07:10 PM
I am doing it for consistency. At first, I tried to just use
convert to csv. I got the error you see. It is not a dataframe the command fails.
The solution-change to a dataframe. That seem simple and easy. What is wrong with that?
Now, I am using the command
df =pd.Dataframe(locals()[ndarray_name])
I have not converted a numpy array to a dataframe in a while do I forgot the syntax. Do I use locals or globals to make the conversion?
Also, understand that I am just being consistent in saving thing as a csv file.
Help appreciated.
Led_Zeppelin
convert to csv. I got the error you see. It is not a dataframe the command fails.
The solution-change to a dataframe. That seem simple and easy. What is wrong with that?
Now, I am using the command
df =pd.Dataframe(locals()[ndarray_name])
I have not converted a numpy array to a dataframe in a while do I forgot the syntax. Do I use locals or globals to make the conversion?
Also, understand that I am just being consistent in saving thing as a csv file.
Help appreciated.
Led_Zeppelin