Skip to content

Commit

Permalink
weather.py tiny fix for new Pandas version
Browse files Browse the repository at this point in the history
  • Loading branch information
Hvass-Labs committed Apr 12, 2020
1 parent 1e901d0 commit d5f3397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ def _resample(df):
finally down-sampling to 60-minute intervals.
"""

# Remove all empty rows and columns.
df_res = df.dropna(axis=[0, 1], how='all')
# Remove all empty rows.
df_res = df.dropna(how='all')

# Upsample so the time-series has data for every minute.
df_res = df_res.resample('1T')
Expand Down

0 comments on commit d5f3397

Please sign in to comment.