packtpublishing / pandas-cookbook-second-edition Goto Github PK
View Code? Open in Web Editor NEWPandas Cookbook Second Edition, published by Packt
License: MIT License
Pandas Cookbook Second Edition, published by Packt
License: MIT License
The Chapter 1 notebook uses movies.get_dtype_counts()
Change to movies.dtypes.value_counts() to use the non-deprecated method and to match the text in the book.
in chapter 9, page 357, There's more…, returns an error "KeyError: '[1.0] not in index'" in jupyter notebook, while it shows no error in chapter 9 attachment.
In Chapter 2 Selecting columns with methods, step 2 has the following
movies.select_dtypes(include="int").head()
When run this will only show the index column.
To match the intent of the section and the output in the book, the code should be
movies.select_dtypes(include="int64").head()
In Chapter 1 notebook, we have the following which throws an error
movies = pd.read_csv('data/movie.csv')
Since the data is stored in the top-level folder, the path has to be changed to make it work. Can you please update the path to make it work in all the chapter workbooks?
movies = pd.read_csv('../data/movie.csv')
pd.set_option('max_columns', 4, 'max_rows', 10)
will return the error OptionError: Pattern matched multiple keys
To solve this replace 'max_columns'
and 'max_rows'
with 'display.max_columns'
and 'display.max_columns'
respectively. The final result should be pd.set_option('display.max_columns', 4, 'display.max_rows', 10)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.