dmnfarrell / pandastable

Table analysis in Tkinter using pandas DataFrames.
Other
631 stars 126 forks source link

FutureWarnings in tkinter #255

Open jessepink opened 3 months ago

jessepink commented 3 months ago

This is the first time I've used this library, and indeed tkinter as well, but the first time I got a table to work I also got these warnings from tkinter:

FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, setpd.set_option('future.no_silent_downcasting', True)``

FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, useser.iloc[pos]``

FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '58' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.

jessepink commented 3 months ago

This is with Python 3.12 FYI

amilkyboi commented 1 month ago

I'm also having this issue on Python 3.12.5 and pandastable 0.13.1. Tried the fixes suggested on this thread, but I think pandastable is calling .fillna or a related function internally, so the fixes didn't do anything for me.

dmnfarrell commented 2 weeks ago

where is this error triggered. @jessepink