Skip to content
New issue

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

Empty data sets in renewable_power_plants_DE.csv (2017_02_16) #14

Open
uvchik opened this issue Mar 15, 2017 · 1 comment
Open

Empty data sets in renewable_power_plants_DE.csv (2017_02_16) #14

uvchik opened this issue Mar 15, 2017 · 1 comment

Comments

@uvchik
Copy link

uvchik commented Mar 15, 2017

There are 25755 empty datasets in the latest download of Germany's renewable power plants (see screenshot). It does not hurt but it is a little annoying and might be interesting for you.

empty_datasets

@uvchik
Copy link
Author

uvchik commented Jul 26, 2017

The empty rows still exist in the new csv-file. It's no big deal, because they only need about 2MB.
I remove them (using pandas) by checking the capacity column (power plants without capacity do not help anyway).

re_power_plants = pandas.read_csv(orig_csv_file)
re_power_plants = re_power_plants[re_power_plants.electrical_capacity.notnull()]

You may add something like this to your code to avoid empty rows. If you want to be sure you can check several rows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant