Skip to content

Address pandas FutureWarning in climate_assessment/climate/post_process.py:164 #83

Description

@phackstock
/home/hackstock/Documents/code/climate-processor/.venv/lib/python3.12/site-packages/climate_assessment/climate/post_process.py:164: 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, use `ser.iloc[pos]`
  if not np.isclose(shifts, shifts[0], atol=5 * 1e-3).all():

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions