Skip to content
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

Fails to convert to python DataFrames with mixed types #101

Open
ahjulstad opened this issue Aug 9, 2023 · 0 comments
Open

Fails to convert to python DataFrames with mixed types #101

ahjulstad opened this issue Aug 9, 2023 · 0 comments

Comments

@ahjulstad
Copy link

When trying to convert into a python dataframe a julia dataframe with mixed datatypes, such as

using DataFrames
import Pandas
DataFrame(:v=>["Test", 42]) |> Pandas.DataFrame

I get error message
ERROR: ArgumentError: Can't create a Pandas.DataFrame from a source that has missing data.

Apart from the fact that the error message is misleading, I think this should work as the following is OK:

pd = pyimport_conda("pandas", "pandas")
pd.DataFrame(Dict(:v=>["Test", 42]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant