Skip to content

Commit

Permalink
fix(to_figure): change data type to float to work with new version of…
Browse files Browse the repository at this point in the history
… pandas
  • Loading branch information
devang-chauhan committed Apr 1, 2022
1 parent da373b9 commit 7392905
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ladybug_charts/to_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ def hourly_line_chart(data: HourlyContinuousCollection, color: Color = None,
df = dataframe()
series = Series(data)
df[var] = series.values
df[var] = df[var].astype(float)

data_max = 5 * ceil(df[var].max() / 5)
data_min = 5 * floor(df[var].min() / 5)
Expand Down

0 comments on commit 7392905

Please sign in to comment.