Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
383 B
2
Indexable
Never
import pandas as pd

column_names = [
    'country',
    'name',
    'capacity_mw',
    'latitude',
    'longitude',
    'primary_fuel',
    'owner'
]
data = pd.read_csv(
    '/datasets/gpp_modified.csv',
    sep='|',
    header=None,
    names=column_names,
    decimal=',',
)

print(data['primary_fuel'].describe())
print()

top = data['primary_fuel'].value_counts()[0]

print(top)
Leave a Comment