Podcast
Questions and Answers
What method is used to import the pandas library?
What method is used to import the pandas library?
- import pandas
- from pandas import pd (correct)
- import pd as pandas
- import numpy as pd
Which method is used to read a CSV file named 'landprice.csv'?
Which method is used to read a CSV file named 'landprice.csv'?
- df = read_csv('landprice.csv')
- df = pd.read_csv('landprice.csv') (correct)
- pd.read('landprice.csv')
- df.read_csv('landprice.csv')
What is the mean price of the properties listed in the dataset?
What is the mean price of the properties listed in the dataset?
- $680,000
- $550,000
- $725,000
- $624,000 (correct)
What does 'df.head(3)' display?
What does 'df.head(3)' display?
How can you view the bottom two rows of the dataset?
How can you view the bottom two rows of the dataset?
What does the code 'df.describe()' do?
What does the code 'df.describe()' do?
What does the 'reg.coef_' code output represent?
What does the 'reg.coef_' code output represent?
What does 'reg.predict([])' do?
What does 'reg.predict([])' do?
What is the purpose of creating a new CSV file with area sizes and using the linear regression model to predict prices?
What is the purpose of creating a new CSV file with area sizes and using the linear regression model to predict prices?
What does the plot marker 'marker = '+'' signify in 'plt.scatter(df.area, df.price, color = 'green', marker = '+')'?
What does the plot marker 'marker = '+'' signify in 'plt.scatter(df.area, df.price, color = 'green', marker = '+')'?