From d9585d77ed35c30792763e9e6fe47a600556719a Mon Sep 17 00:00:00 2001 From: Christian Lamprecht Date: Thu, 28 Sep 2023 18:33:14 +0200 Subject: [PATCH] Version 1.6.7 * Bring back Pandas v2 support, add interpolate test * Version 1.6.7 --- meteostat/__init__.py | 2 +- requirements.txt | 2 +- setup.py | 4 ++-- tests/e2e/test_hourly.py | 15 +++++++++++++++ 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/meteostat/__init__.py b/meteostat/__init__.py index 728d254..e693792 100644 --- a/meteostat/__init__.py +++ b/meteostat/__init__.py @@ -12,7 +12,7 @@ """ __appname__ = "meteostat" -__version__ = "1.6.6" +__version__ = "1.6.7" from .interface.base import Base from .interface.timeseries import TimeSeries diff --git a/requirements.txt b/requirements.txt index 2a060c8..cb6a63a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -pandas>=1.1,<2 +pandas>=1.1 pytz numpy matplotlib diff --git a/setup.py b/setup.py index a2af4da..4e6a020 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ # Setup setup( name="meteostat", - version="1.6.6", + version="1.6.7", author="Meteostat", author_email="info@meteostat.net", description="Access and analyze historical weather and climate data with Python.", @@ -26,7 +26,7 @@ python_requires=">=3.6.0", packages=find_packages(), include_package_data=True, - install_requires=["pandas>=1.1,<2", "pytz", "numpy"], + install_requires=["pandas>=1.1", "pytz", "numpy"], license="MIT", classifiers=[ "Programming Language :: Python :: 3", diff --git a/tests/e2e/test_hourly.py b/tests/e2e/test_hourly.py index 2d5edbd..4d9cef4 100644 --- a/tests/e2e/test_hourly.py +++ b/tests/e2e/test_hourly.py @@ -51,6 +51,21 @@ def test_aggregate(): assert count == 3 +def test_interpolate(): + """ + Test: interpolate() method + """ + + # Get data for one day at Frankfurt Airport + data = Hourly( + ["10637"], start=datetime(2018, 1, 1), end=datetime(2018, 1, 1, 23, 59) + ) + count = data.normalize().interpolate().count() + + # Check if count matches 24 + assert count == 24 + + def test_coverage(): """ Test: coverage() method