ec-jrc / eurogastp Goto Github PK
View Code? Open in Web Editor NEWeurogastp – Python tools for analyzing the European gas system
License: European Union Public License 1.2
eurogastp – Python tools for analyzing the European gas system
License: European Union Public License 1.2
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.