Skip to content

Commit

Permalink
Version 1.6.7
Browse files Browse the repository at this point in the history
* Bring back Pandas v2 support, add interpolate test

* Version 1.6.7
  • Loading branch information
clampr authored Sep 28, 2023
1 parent 41d7e70 commit d9585d7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meteostat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""

__appname__ = "meteostat"
__version__ = "1.6.6"
__version__ = "1.6.7"

from .interface.base import Base
from .interface.timeseries import TimeSeries
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pandas>=1.1,<2
pandas>=1.1
pytz
numpy
matplotlib
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Setup
setup(
name="meteostat",
version="1.6.6",
version="1.6.7",
author="Meteostat",
author_email="[email protected]",
description="Access and analyze historical weather and climate data with Python.",
Expand All @@ -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",
Expand Down
15 changes: 15 additions & 0 deletions tests/e2e/test_hourly.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9585d7

Please sign in to comment.