Comments (2)
@DarkDk123 thank you. This should be updated in the course itself. @mrdbourke ?
by the way, i am using pandas 2.2.2 the correct line should be
car_sales_missing.fillna({"Odometer": car_sales_missing["Odometer"].mean(numeric_only=True)}, inplace=True)
@DarkDk123 forgot about numeric_only=True
and has an extra ,
from zero-to-mastery-ml.
It's a FutureWarning
Because you're performing "Chained Indexing", and it has inherently unpredictable results (may return a view or copy)
So it's suggested by pandas to modify DataFrames directly, not on view-or-copy,
Instead, You can use this car_sales_missing.fillna({"Odometer": car_sales_missing["Odometer"].mean()}, , inplace=True)
This here :
from zero-to-mastery-ml.
Related Issues (20)
- Pandas Exercises Solution HOT 4
- error installing Jupyter HOT 6
- Ml
- Update notebook of "end-to-end-heart-disease-classification"
- regarding joining of ZTM community channel HOT 5
- Improve the end-to-end-heart-disease classification model score...
- I can't get through to the Discord Community HOT 2
- Can't plot the bar graph HOT 1
- Resolved Error in sklearn Lesson File - Incorrect Data Splitting
- Discord Community invalid link is invalid
- error section 6 vid 55 HOT 3
- Zero To Mastery Data Science and Machine Learning Resources.
- Cannot participate in Discord HOT 4
- ZeroToMastery SciKit Learn Exercises HOT 3
- Predicting bulldozer price - Wrong Hyperparameters Tuning
- Getting below error while import matplotlib.pyplot as plt HOT 1
- the slide correction is itself incorrect - a1 shape is (3,) not (1,3)
- value error in keras layer
- Typo issue in introduction-to-numpy.ipynb HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zero-to-mastery-ml.