Question: Task 1 : What are the unique values in the year _ built variable? How many occurrences are there for each unique value? Task 2

Task 1:
What are the unique values in the year_built variable? How many occurrences are there for each unique value?
Task 2:
Filter the dataframe fuel _consumption so that variables electricity_expense and water_expense only contain values greater than 0. Overwrite fuel_consumption.
Task 3:
Create a new variable describing the total energy expenses (energy_expense + electricity _expense + nat_gas_expense + other_fuel _expense) for each household. Name this variable total_energy_expense.
Sort the dataframe based on the variable you created in A
Identify the respondent with the highest and lowest total energy expenses.

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 Programming Questions!