Skip to content

Commit 40a80ad

Browse files
authored
Meteostat 1.5.8 (#64)
1 parent b80db6e commit 40a80ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

meteostat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"""
1313

1414
__appname__ = 'meteostat'
15-
__version__ = '1.5.7'
15+
__version__ = '1.5.8'
1616

1717
from .interface.base import Base
1818
from .interface.timeseries import Timeseries

meteostat/interface/normals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def fetch(self) -> pd.DataFrame:
302302
temp = copy(self._data)
303303

304304
# Add avg. temperature column
305-
temp.insert(0, 'tavg', temp[['tmin', 'tmax']].mean(
305+
temp.insert(0, 'tavg', temp[['tmin', 'tmax']].dropna(how='any').mean(
306306
axis=1).round(1))
307307

308308
# Remove station index if it's a single station

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Setup
1616
setup(
1717
name='meteostat',
18-
version='1.5.7',
18+
version='1.5.8',
1919
author='Meteostat',
2020
author_email='[email protected]',
2121
description='Access and analyze historical weather and climate data with Python.',

0 commit comments

Comments
 (0)