Skip to content

Pandas FutureWarning: Series.__getitem__ deprecation warning #152

Description

@manzt

In higlass-python, I'm getting an error with bigwig tracks:

import higlass as hg

ts = hg.bigwig("/Users/manzt/Downloads/data.bw")
hg.view(ts.track().opts(barFillColor="red"))
image
clodius/tiles/utils.py:275: 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]`
  yield cid, start, chromsizes[cid]

warning is referencing this line:

yield cid, start, chromsizes[cid]

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