include_index
ignored in pl.from_pandas(pd.Series)
#18859
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
include_index
is ignored if data is apd.Series
.I think we should reset the index in pandas before converting to polars (or at least warn the user the
include_index
is ignored if a series is passed)it is all in python, if the new behaviour is accepted, I can propose a PR.
Expected behavior
I would expect:
pl.from_pandas(pd_series.reset_index())
to matchpl.from_pandas(pd_series, include_index=True)
Installed versions
The text was updated successfully, but these errors were encountered: