This article summarizes pandas Common operations of , And make exercises , Exercises with answers , And have a complete data set , Readers are advised to complete the exercises . The author thinks that , Finish the exercises ,pandas There is no problem with the basic operation of , You can also check these exercises when you encounter problems in the future .( Download at the end of the article )
Pandas Is based on NumPy A tool of , The tool is created to solve data analysis tasks .Pandas It includes a large number of databases and some standard data models , Provides the tools needed to operate large datasets efficiently .pandas Provides a large number of functions and methods that enable us to process data quickly and conveniently . You will soon find out , It is to make Python One of the important factors to become a powerful and efficient data analysis environment .
A large number of can be found on the Internet pandas Tutorials and official documentation , But there is no easy way to practice . Tutorials are a good resource , But put it into practice . Only practice , In order to better deepen learning .
This site is from github I found some pandas The exercises of , With complete data set , And sort it out :
Original code author :Guilherme Samora
This exercise code can be found in github download :
https://github.com/fengdu78/machine_learning_beginner/tree/master/pandas/Pandas_Exercises
Pandas Exercise list
1.Getting and knowing
2.Filtering and Sorting
3.Grouping
4.Apply
5.Merge
6.Stats
7.Visualization
8.Creating Series and DataFrames
9.Time Series
10.Deleting
Usage method
Each exercise folder has three different types of files :
1. Exercises.ipynb
File without answer code , This is your exercise
2.Solutions.ipynb
The result of running the code ( Don't change it )
3.Exercise_with_Solutions.ipynb
A file with answer codes and comments
You can Exercises.ipynb Enter the code in the , See if the running results are consistent with Solutions.ipynb Consistent with the content of , If you really can't finish it, look again Exercise_with_Solutions.ipynb The answer .
A typical example is shown in the figure :
Screenshot of exercise questions
summary
This article puts pandas Make the common operations of the into exercises , Exercises with answers , And have a complete data set . I hope beginners can finish the exercises carefully , In order to improve data analysis skills .
This exercise code can be found in github download : https://github.com/fengdu78/machine_learning_beginner/tree/master/pandas/Pandas_Exercises
If you can't download , You can use Baidu cloud :
link :https://pan.baidu.com/s/1qzIZAsirJSZLyVm5okcicA Extraction code :umgg
AI Basic download machine learning communication qq Group 955171419