Comments (4)
I can confirm this.
Also, in the Describing Data with Pandas section:
- You need to use
car_sales.mean(numeric_only=True)
asnumeric_only
defaults toFalse
. car_sales["Price"] = car_sales["Price"].str.replace('[\$\,\.]', '').astype(int)
now throwsInvalid escape sequence '\$
. You need to usecar_sales["Price"] = car_sales["Price"].str.replace('[$,]', '', regex=True).astype('float')
instead.
from zero-to-mastery-ml.
I just wanted to add to this as well because I had similar problems starting in Section 6 - Lesson 53 and Lesson 55 with using car_sales.mean() and car_sales.groupby(["Make"]).mean().
I just wanted to post the panda link to why this "TypeError" occurs for those who come across this problem.
from zero-to-mastery-ml.
Related Issues (18)
- I got an errors when I was trying to do data preprocessing HOT 2
- Ml zero to hero
- Zero to mastery
- ML
- Fix Sklearn version upgrades videos/code HOT 1
- Update Sklearn API `plot_roc_curve` -> `RocCurveDisplay` HOT 2
- Pandas 1.5.3 causes `ValueError` HOT 1
- Make predictions on test data batch using the loaded full model
- Make predictions on test data batch using the loaded full mode
- Issue regarding colliding dog breed name when plotting
- Couldn't get through Discord verification
- Predicting bulldozer price - Converting string to category HOT 2
- New to git hub HOT 1
- For advanced users: you should export the conda virtual environment as a resource HOT 1
- The plot_roc_curve is not supported in the shown version HOT 1
- error installing Jupyter HOT 6
- Ml
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.