We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When trying to run
python scripts/build_gas_input_locations.py
I get the error below at
entry = read_scigrid_gas(entry_fn) entry["from_country"] = entry.from_country.str.rstrip()
The available columns are
entry.columns Index(['name', 'id', 'country_code', 'tags', 'geometry', 0], dtype='object')
=> Replace calls like df.param.apply(pd.Series)
df.param.apply(pd.Series)
(pypsa-eur) projekt-resilient03@ubuntu-22-04-lts-temp:~/pypsa-eur$ python scripts/build_gas_input_locations.py ERROR:root:Uncaught exception Traceback (most recent call last): File "/home/projekt-resilient03/pypsa-eur/scripts/build_gas_input_locations.py", line 171, in gas_input_locations = build_gas_input_locations( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/projekt-resilient03/pypsa-eur/scripts/build_gas_input_locations.py", line 110, in build_gas_input_locations entry["from_country"] = entry.from_country.str.rstrip() ^^^^^^^^^^^^^^^^^^ File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.11/site-packages/pandas/core/generic.py", line 6299, in getattr return object.getattribute(self, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'GeoDataFrame' object has no attribute 'from_country'
Related:
#1121
#1125
#1118
The text was updated successfully, but these errors were encountered:
until resolved, this can be overcome by downgrading geopandas to 0.14.4, @fhg-isi
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the Bug
When trying to run
python scripts/build_gas_input_locations.py
I get the error below at
The available columns are
=> Replace calls like
df.param.apply(pd.Series)
Error Message
(pypsa-eur) projekt-resilient03@ubuntu-22-04-lts-temp:~/pypsa-eur$ python scripts/build_gas_input_locations.py
ERROR:root:Uncaught exception
Traceback (most recent call last):
File "/home/projekt-resilient03/pypsa-eur/scripts/build_gas_input_locations.py", line 171, in
gas_input_locations = build_gas_input_locations(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/projekt-resilient03/pypsa-eur/scripts/build_gas_input_locations.py", line 110, in build_gas_input_locations
entry["from_country"] = entry.from_country.str.rstrip()
^^^^^^^^^^^^^^^^^^
File "/home/projekt-resilient03/conda/envs/pypsa-eur/lib/python3.11/site-packages/pandas/core/generic.py", line 6299, in getattr
return object.getattribute(self, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'GeoDataFrame' object has no attribute 'from_country'
Related:
#1121
#1125
#1118
The text was updated successfully, but these errors were encountered: