intersect-community-data
intersect-community-data copied to clipboard
future warnings to resolve
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
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.