gslab-econ / gslab_python

Python tools for GSLab
MIT License
13 stars 11 forks source link

SaveData python future warning: .fillna() #176

Closed zhizhongpu closed 1 month ago

zhizhongpu commented 2 months ago

Running SaveData.py results in:

SaveData.py:48: 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, set pd.set_option('future.no_silent_downcasting', True) var_stats = df.describe(include='all').transpose().fillna('')

liaochris commented 2 weeks ago

In this issue, we resolved warnings about downcasting object types when using fillna() by updating SaveData.py.