ALostHollow / HTC_Tree

Hierarchical Text Classification (or HTC) represents classification of text along a hierarchy, with subsequent classifications selectively applied based on previous classifications.
MIT License
1 stars 0 forks source link

Weighted voting pandas depreciation warning #22

Open ALostHollow opened 9 months ago

ALostHollow commented 9 months ago

Line 282 and 283 cause a future warning. "Treating keys as positions is depreciated.. to access a value by position use ser.iloc[pos]" This is to align series and dataframe behavior

ALostHollow commented 9 months ago

Similar depreciation warnings occur at line: 508: setting an item of incompatible dtype is depreciated...

290&289: Series.getitem treating keys as positions is depreciated. In future, int will always be treated as labels. To access value by position use "ser.iloc[pos]"

I was using pandas version 2.1.4

ALostHollow commented 4 months ago

Depreciation issues should be handled in re-work