Skip to content

Commit

Permalink
Update _get_column_info()
Browse files Browse the repository at this point in the history
Series.__getitem__ treating keys as positions is deprecated.

See: https://github.com/pandas-dev/pandas/blob/2.1.x/pandas/core/series.py#L1027-L1037
  • Loading branch information
debnath-d authored Apr 30, 2024
1 parent 97fb1fe commit 47dd59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ISLP/models/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _get_column_info(X,
name = f'X{col}'
else:
name = str(col)
if is_categorical[i]:
if is_categorical.iloc[i]:
if is_ordinal[i]:
Xcol = _get_column(col, X)
encoder = clone(default_encoders['ordinal'])
Expand Down

0 comments on commit 47dd59b

Please sign in to comment.