Pandas.jl
Pandas.jl copied to clipboard
Fails to convert to python DataFrames with mixed types
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]))