Skip to content

update code for backfilling to match pandas 3.0 functionality #339

Description

@rjhanes
Preprocessing starting at 0 s
validating TransformerTechUnitLocations
validated TransformerTechUnitLocations
no missing data values in celavi.data_manager.TransformerTechUnitLocations.year
validating LandfillLocations
validated LandfillLocations
C:\Users\rhanes\GitHub\celavi\celavi\data_manager.py:137: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.

For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.


  self[column].fillna(value, inplace=True)
279 of 2637 data values in celavi.data_manager.LandfillLocations.Landfill Closure Year were backfilled as -1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ease of usemaking CELAVI more user-friendly

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions