-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
pandas.read_csv() won't read back in complex number dtypes from pandas.DataFrame.to_csv() #9379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
hmm... I found some workarounds here: it just seems like |
its not implemented at the moment. Should be straightforward. Would you like to give it a shot? prob need to enhance |
If I weren't overcommitted at work, I would. Sorry. :/ I'm creating a workaround for my specific case, not sure how to generalize. |
If I recall correctly, saving/loading complex numbers does work with HDF5 files. Might want to give that a try. |
this worked for me in my particular case (converting complex #s for columns matching
|
How can I read back in dataframes from CSV files which I export using
to_csv()
that have complex numbers?test case:
output:
The text was updated successfully, but these errors were encountered: