Skip to content

Calling float on a single element Series is deprecated #223

@dirwin5

Description

@dirwin5

Getting multiple FutureWarnings in swmmio/graphics/profiler.py. FutureWarning: Calling float on a single element Series is deprecated and will raise a TypeError in the future. Use float(ser.iloc[0]) instead. I'll try to fix and submit a PR.

Affected lines:
swmmio/graphics/profiler.py:35
swmmio/graphics/profiler.py:47
swmmio/graphics/profiler.py:57
swmmio/graphics/profiler.py:90
swmmio/graphics/profiler.py:94
swmmio/graphics/profiler.py:139
swmmio/graphics/profiler.py:140
swmmio/graphics/profiler.py:147
swmmio/graphics/profiler.py:148
swmmio/graphics/profiler.py:149
swmmio/graphics/profiler.py:277
swmmio/graphics/profiler.py:281
swmmio/graphics/profiler.py:301
swmmio/graphics/profiler.py:305

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