Skip to content

Commit d5f3397

Browse files
committed
weather.py tiny fix for new Pandas version
1 parent 1e901d0 commit d5f3397

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: weather.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ def _resample(df):
165165
finally down-sampling to 60-minute intervals.
166166
"""
167167

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

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

0 commit comments

Comments
 (0)