Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'User_ID' In: /Data-Analysis/bayesian-lr/Bayesian Linear Regression Demonstration #59

Open
banshiv opened this issue Jul 24, 2020 · 0 comments

Comments

@banshiv
Copy link

banshiv commented Jul 24, 2020

When running following cell:
exercise = pd.read_csv('data/exercise.csv')
calories = pd.read_csv('data/calories.csv')
df = pd.merge(exercise, calories, on = 'User_ID')
df = df[df['Calories'] < 300]
df = df.reset_index()
df['Intercept'] = 1
df.head()

KeyError: 'User_ID'

When I inspect data/exercise.csv, it only reads following:
version https://git-lfs.github.com/spec/v1
oid sha256:aaae7b1c1502cab499ef7b68ddc118d13596b47855968a142a6db1424eba13c9
size 230245

I guess the data from csv is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant