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 the script build_industrial_distribution_key.py I get the error below.
The cause seems to be that the column "index_right" does not exist in gdf.
gdf.rename(columns={"index_right": "bus"}, inplace=True) gdf["country"] = gdf.bus.str[:2]
Maybe the format of the hotmaps file changed?
=> Replace the line with
gdf["country"] = gdf["Country"] ?
gdf["country"] = gdf["Country"]
Or just use existing column "Country"?
(pypsa-eur) projekt-resilient03@ubuntu-22-04-lts-temp:~/pypsa-eur$ python scripts/build_industrial_distribution_key.py ERROR:root:Uncaught exception Traceback (most recent call last): File "/home/projekt-resilient03/pypsa-eur/scripts/build_industrial_distribution_key.py", line 189, in <module> hotmaps = prepare_hotmaps_database(regions) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/projekt-resilient03/pypsa-eur/scripts/build_industrial_distribution_key.py", line 120, in prepare_hotmaps_database gdf["country"] = gdf.bus.str[:2] ^^^^^^^ 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 'bus'
Related:
#1118
#1123
The text was updated successfully, but these errors were encountered:
Similar issue in build_gas_input_locations.py:
build_gas_input_locations.py
gas_input_nodes.rename(columns={"index_right": "bus"}, inplace=True)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the Bug
When trying to run the script build_industrial_distribution_key.py I get the error below.
The cause seems to be that the column "index_right" does not exist in gdf.
Maybe the format of the hotmaps file changed?
=> Replace the line with
gdf["country"] = gdf["Country"]
?Or just use existing column "Country"?
Error Message
Related:
#1118
#1123
The text was updated successfully, but these errors were encountered: