Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 26, 2020 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/78afdfadd8624f423e7ebcadfa94d737 to your computer and use it in GitHub Desktop.
Save amankharwal/78afdfadd8624f423e7ebcadfa94d737 to your computer and use it in GitHub Desktop.
exercise = pd.read_csv('exercise.csv')
calories = pd.read_csv('calories.csv')
df = pd.merge(exercise, calories, on = 'User_ID')
df = df[df['Calories'] < 300]
df = df.reset_index()
df['Intercept'] = 1
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment