Question: There is a csv file in ' . . / data / primary - energy - consumption - by - region.csv ' that has the

There is a csv file in '../data/primary-energy-consumption-by-region.csv' that has the energy consumption of different regions of the world from 1965 until 2018 Our world in Data. Compare the energy consumption of the United States to all of Europe. Load the data into a pandas dataframe. Note: you can get certain rows of the data frame by specifying what you're looking for e.g. EUR = dataframe[dataframe['Entity']=='Europe'] will give us all the rows from Europe's energy consumption.
a. Plot the total energy consumption of the United States and Europe
b. Use a linear least-squares regression to find a function for the energy consumption as a function of year
energy consumed = f(t)=At+B
c. At what year would you change split the data and use two lines like you did in the land temperature anomoly? Split the data and perform two linear fits.
d. What is your prediction for US energy use in 2025? How about European energy use in 2025?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!