import pandas as pd import scipy.stats import numpy as np import pandas.api.types import math from IPython.core.magic import
Question:
import pandas as pd
import scipy.stats
import numpy as np
import pandas.api.types
import math
from IPython.core.magic import register_cell_magic
hp = pd.read_csv("https://busan302.mycourses.work/data/house_price_train.csv")
hp.head() # peek at first 5 lines!
from IPython.display import IFrame
IFrame(src='https://busan302.mycourses.work/data/house_price_data_description_short.html', width=800, height=300)
Q1. Complete the code in the cells below.
Replace the elipses '...' with appropriate code to meet the goals defined in the comments directly above the code fragments.
# Create subsets of old (pre-1945) and new houses (1980 onwards)
old_homes = hp[ ... ]
new_homes = hp[ ... ]
# Find the means of the numeric variables in the new_homes and old_homes dataframes.
nh = new_homes ...
oh = old_homes ...
Advanced Financial Accounting
ISBN: 978-0137030385
6th edition
Authors: Thomas Beechy, Umashanker Trivedi, Kenneth MacAulay