Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Kaggle is an online community for data scientists and machine learning practitioners owned by Google.
3
votes
Accepted
Dataset columns throwing KeyError
It's FireplaceQu not FirePlaceQu .
A KeyError means it doesn't find the column in the dataset.
to simply check the spelling you can print all the columns:
for col_name in train:
print(col_name …
2
votes
Accepted
How to use the fillna method in a for loop
what you are looking for is replace().
And you don't need to write all the columns you can iterate over the columns name simply.
for col in train:
train[col].replace("NA","XX",inplace=True)
Yo …