Inconsistent behavior of pl.from_pandas(..., include_index=True) with pandas series #19399
Closed
2 tasks done
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
Using
include_index=True
is useless when thedata
parameter ofpolars.from_pandas
is a Series.Expected behavior
Return a
polars.DataFrame
(with the index columns included) or fail with an exception to indicate thatinclude_index=True
is not applicable topandas.Series
Installed versions
The text was updated successfully, but these errors were encountered: