Coder Social home page Coder Social logo

eurogastp's People

Contributors

proggy avatar vuillaumejf avatar

Watchers

 avatar  avatar  avatar

Forkers

vuillaume alexgpy

eurogastp's Issues

Issue with the update_gie_alsi_archive function

Hello,

I hope I'm not mistaken, but the call to the update_gie_alsi_archive function seems to be encountering errors. I did not have this issue yesterday when downloading the various xlsx files. I'm not sure if there has been a change in the ALSI database in this regard.
I have no issues with the one for the AGSI database.

Traceback (most recent call last):

  Cell In[16], line 1
    gtp.update_gie_alsi_archive(download_start, download_end, proxy=proxy,

  File ~\anaconda3\Lib\site-packages\eurogastp\gie.py:369 in update_gie_alsi_archive
    df_new = download_gie_alsi(start_date, end_date, api_key=api_key,

  File ~\anaconda3\Lib\site-packages\eurogastp\gie.py:115 in download_gie_alsi
    df[float_cols] = df[float_cols].replace('-', '0').astype(float)

  File ~\anaconda3\Lib\site-packages\pandas\core\generic.py:6534 in astype
    new_data = self._mgr.astype(dtype=dtype, copy=copy, errors=errors)

  File ~\anaconda3\Lib\site-packages\pandas\core\internals\managers.py:414 in astype
    return self.apply(

  File ~\anaconda3\Lib\site-packages\pandas\core\internals\managers.py:354 in apply
    applied = getattr(b, f)(**kwargs)

  File ~\anaconda3\Lib\site-packages\pandas\core\internals\blocks.py:616 in astype
    new_values = astype_array_safe(values, dtype, copy=copy, errors=errors)

  File ~\anaconda3\Lib\site-packages\pandas\core\dtypes\astype.py:238 in astype_array_safe
    new_values = astype_array(values, dtype, copy=copy)

  File ~\anaconda3\Lib\site-packages\pandas\core\dtypes\astype.py:183 in astype_array
    values = _astype_nansafe(values, dtype, copy=copy)

  File ~\anaconda3\Lib\site-packages\pandas\core\dtypes\astype.py:134 in _astype_nansafe
    return arr.astype(dtype, copy=True)

TypeError: float() argument must be a string or a real number, not 'dict'

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.