Skip to content

Commit

Permalink
fixed name to only include original index name in returned dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-fong committed Aug 14, 2024
1 parent 98ea699 commit 446e180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions skpro/datatypes/_adapter/polars.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def convert_polars_to_pandas_with_index(obj):
for col in obj.columns:
if col.startswith("__index__"):
pd_df = pd_df.set_index(col, drop=True)
pd_df.index.name = col.split("__index__")[1]

return pd_df

Expand Down

0 comments on commit 446e180

Please sign in to comment.