Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

3
Cleaning up data with Pandas
Post Body

Hey everyone!

So here is the code to my raw data https://pastebin.com/4vKqNzir

Which outputs https://pastebin.com/YtMU0XEY

But when I add df = df[["ERA", "HR"]]

I get this error KeyError: "['ERA' 'HR'] not in index"

I'm just practicing reading data from a CSV before I really scrape for it but what seems to be the issue limiting my data set to just the ERA and HR column? Thanks in advance!

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
16,177
Link Karma
3,901
Comment Karma
12,188
Profile updated: 4 days ago
Posts updated: 11 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago