Skip to content

Fails to convert to python DataFrames with mixed types #101

@ahjulstad

Description

@ahjulstad

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]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions