Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Linear Regression

Please clone this repo and import the life_expectancy.csv file into a jupyter notebook. Fit a linear regression model.

Please answer the following questions in your warmups slack channel.

  1. How did you handle categorical variables?
  • Did you use dummies?
    • What column did you designate as your baseline?
    • How many columns does your dataframe have after creating dummies?
  • Did you drop columns?
  • What columns did you drop?