У меня очень простой и короткий вопрос для вас, эксперты. У меня есть набор данных, из которого мне нужно построить диаграмму движения в Python. Это мой вопрос - я не могу понять, что они подразумевают под этим:
Убедитесь, что ваши данные агрегированы по году, состоянию, общему объему произведенной энергии (total_production) и имеют отдельный столбец для каждого из видов топлива.
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 77 entries, 0 to 76
Data columns (total 13 columns):
State 77 non-null object
Fuel_Type 77 non-null object
Category 77 non-null object
2009 77 non-null float64
2010 77 non-null float64
2011 77 non-null float64
2012 77 non-null float64
2013 77 non-null float64
2014 77 non-null float64
2015 77 non-null float64
2016 77 non-null float64
2017 77 non-null float64
2018 77 non-null float64
,State,Fuel_Type,Category,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
0,VIC,Black coal,Non-renewable fuels,0.0,0.0,0.0,0.0,0.0,0.0,0.0,31.9,36.3,0.0
1,VIC,Brown coal,Non-renewable fuels,52094.0,51541.7,51066.5,52059.7,45317.6,43977.7,48336.8,46202.2,43557.8,36067.0
2,VIC,Natural gas,Non-renewable fuels,1451.9,1697.9,1289.8,1142.5,3247.7,3239.3,2390.9,1892.2,2658.7,3899.4
3,VIC,Oil products,Non-renewable fuels,20.4,1.1,38.2,4.0,10.7,145.8,156.0,70.6,109.3,164.8
4,VIC,Other,Non-renewable fuels,61.1,115.9,114.5,0.0,0.0,0.0,0.0,0.0,0.0,0.0
5,VIC,Biomass,Renewable fuels,292.0,303.4,339.6,859.3,845.1,886.9,672.2,747.7,694.5,661.8
6,VIC,Wind,Renewable fuels,573.0,1406.0,1434.4,1416.2,2005.1,2771.9,3067.8,3341.8,3560.9,4224.2
7,VIC,Hydro,Renewable fuels,557.8,843.7,1118.5,1047.4,940.3,1103.0,1170.9,1207.6,824.8,785.3
8,VIC,Large-scale solar PV,Renewable fuels,0.0,0.0,0.0,0.0,0.0,4.4,9.1,11.5,13.8,39.4
9,VIC,Small-scale solar PV,Renewable fuels,24.1,66.2,205.5,378.7,580.1,674.2,874.8,-1056.1,1231.7,1481.2
10,VIC,Geothermal,Renewable fuels,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0