Giter Club home page Giter Club logo

Comments (3)

ssooffiiaannee avatar ssooffiiaannee commented on May 27, 2024 1

I had the same problem, I solved it by running :
rm -rf ~/.meteostat
I'm using a text editor, python 3.7.6, meteostat 1.2.2, pandas 1.2.4

from meteostat-python.

WillBaumgardnerVevo avatar WillBaumgardnerVevo commented on May 27, 2024

Update on this:

I found the closed issue with something similar. I tried the solutions there by running these commands:

!pip install meteostat==1.2.2
!pip install meteostat -U
!rm -rf ~/.meteostat

I am still running the sample code. I am getting a different error now:


ImportError Traceback (most recent call last)
in
5 # Get a weather station
6 stations = Stations()
----> 7 stations = stations.nearby(50, 8)
8 station = stations.fetch(1)
9

/usr/local/anaconda/lib/python3.6/site-packages/meteostat/stations.py in nearby(self, lat, lon, radius)
161 # Get distance for each stationsd
162 temp.stations['distance'] = temp.stations.apply(
--> 163 lambda station: distance(station, [lat, lon]), axis=1)
164
165 # Filter by radius

/usr/local/anaconda/lib/python3.6/site-packages/pandas/core/frame.py in apply(self, func, axis, broadcast, raw, reduce, result_type, args, **kwds)
5992 keep_shape: bool = False,
5993 keep_equal: bool = False,
-> 5994 ) -> "DataFrame":
5995 return super().compare(
5996 other=other,

/usr/local/anaconda/lib/python3.6/site-packages/pandas/core/apply.py in
18 from pandas.core.dtypes.generic import ABCSeries
19
---> 20 from pandas.core.construction import create_series_with_explicit_dtype
21
22 if TYPE_CHECKING:

/usr/local/anaconda/lib/python3.6/site-packages/pandas/core/construction.py in
13
14 from pandas._libs import lib
---> 15 from pandas._libs.tslibs import IncompatibleFrequency, OutOfBoundsDatetime
16 from pandas._typing import AnyArrayLike, ArrayLike, Dtype, DtypeObj
17

ImportError: cannot import name 'IncompatibleFrequency'

from meteostat-python.

clampr avatar clampr commented on May 27, 2024

Hm, no idea what this error means. Can you try to upgrade to latest Pandas version?

from meteostat-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.