-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
future warnings to resolve #63
Comments
Thank you chat gpt! |
Here's a summary of the issues along with their contexts:
Deprecated Downcasting on .fillna, .ffill, .bfill:
Files/Lines:
acg_01a_BaseInventory.py: lines 741, 803, 856
acg_02a_add_categorical_char.py: lines 470 (multiple)
Details: Using .fillna, .ffill, .bfill for downcasting object dtype arrays is deprecated. Suggested to use result.infer_objects(copy=False) or set the option pd.set_option('future.no_silent_downcasting', True).
Callable in GroupBy Sum:
Files/Lines:
acg_01a_BaseInventory.py: lines 1014 (multiple)
Details: The callable currently uses DataFrameGroupBy.sum. Future versions will use the callable directly. To retain current behavior, pass the string "sum" instead.
Setting Incompatible Dtype:
Files/Lines:
acg_02a_add_categorical_char.py: line 760 (multiple)
ncoda_00e_geoutilities.py: line 294 (multiple)
Details: Setting an item with an incompatible dtype is deprecated. For example, setting 0.5 in an int64 column or setting 2637860 and 'Hesperia' in a float64 column. Explicit casting to compatible dtypes is required.
Invalid Value Encountered in Computation:
Files/Lines:
expressions.py: line 73
Details: Runtime warnings due to invalid values encountered during less_equal and greater operations.
Deprecated DataFrame.applymap:
Files/Lines:
ncoda_07a_generate_hui.py: line 170
Details: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
In summary, these issues are primarily related to deprecated pandas methods and operations, which need updating to avoid future compatibility problems.
The text was updated successfully, but these errors were encountered: