Skip to content

Commit d9585d7

Browse files
authored
Version 1.6.7
* Bring back Pandas v2 support, add interpolate test * Version 1.6.7
1 parent 41d7e70 commit d9585d7

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
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.6.6"
15+
__version__ = "1.6.7"
1616

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

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pandas>=1.1,<2
1+
pandas>=1.1
22
pytz
33
numpy
44
matplotlib

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Setup
1616
setup(
1717
name="meteostat",
18-
version="1.6.6",
18+
version="1.6.7",
1919
author="Meteostat",
2020
author_email="[email protected]",
2121
description="Access and analyze historical weather and climate data with Python.",
@@ -26,7 +26,7 @@
2626
python_requires=">=3.6.0",
2727
packages=find_packages(),
2828
include_package_data=True,
29-
install_requires=["pandas>=1.1,<2", "pytz", "numpy"],
29+
install_requires=["pandas>=1.1", "pytz", "numpy"],
3030
license="MIT",
3131
classifiers=[
3232
"Programming Language :: Python :: 3",

tests/e2e/test_hourly.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ def test_aggregate():
5151
assert count == 3
5252

5353

54+
def test_interpolate():
55+
"""
56+
Test: interpolate() method
57+
"""
58+
59+
# Get data for one day at Frankfurt Airport
60+
data = Hourly(
61+
["10637"], start=datetime(2018, 1, 1), end=datetime(2018, 1, 1, 23, 59)
62+
)
63+
count = data.normalize().interpolate().count()
64+
65+
# Check if count matches 24
66+
assert count == 24
67+
68+
5469
def test_coverage():
5570
"""
5671
Test: coverage() method

0 commit comments

Comments
 (0)