程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Pandas exercises - improve your data analysis skills

編輯:Python


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  

  • Chipotle
  • Occupation
  • World Food Facts

2.Filtering and Sorting

  • Chipotle
  • Euro12
  • Fictional Army

3.Grouping

  • Alcohol Consumption
  • Occupation
  • Regiment

4.Apply

  • Students
  • Alcohol Consumption
  • US_Crime_Rates

5.Merge

  • Auto_MPG
  • Fictitious Names
  • House Market

6.Stats

  • US_Baby_Names
  • Wind_Stats

7.Visualization

  • Chipotle
  • Titanic Disaster
  • Scores
  • Online Retail
  • Tips

8.Creating Series and DataFrames  

  • Pokemon

9.Time Series  

  • Apple_Stock
  • Getting_Financial_Data
  • Investor_Flow_of_Funds_US

10.Deleting  

  • Iris
  • Wine

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​​

Please follow and share ↓↓↓ 

Beginners of machine learning

QQ Group :554839127


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved