Skip to content

Bug - data_df.resample() encounters ZeroDivisionError if delta between timestamps is greater than a day #30

@leahgibson

Description

@leahgibson

If the minimum time delta between dates is greater than 1 day, data_df.resample(min_timestep(data_df)).mean() encounters a 'ZeroDivisionError: integer modulo by zero] because time_delta.min().seconds in the min_timestep function returns 0s, thus triggering the condition of the first if statement.

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