THE WORLD'S LARGEST WEB DEVELOPER SITE

Pandas Tutorial

[+:

Pandas is a Python library.

Pandas is used to analyze data.

Learning by Reading

We have created 14 tutorial pages for you to learn more about Pandas.

Starting with a basic introduction and ends up with cleaning and plotting data:


Learning by 测试 Test

Test your Pandas skills with a quiz test.

Start Pandas 测试


Learning by 练习

Pandas 练习

Exercise:

Insert the correct Pandas method to create a Series.

pd.(mylist)

Start the Exercise


Learning by 示例

In our "来试试吧" editor, you can use the Pandas module, and modify the code to see the result.

Example

Load a CSV file into a Pandas DataFrame:

import pandas as pd

df = pd.read_csv('data.csv')

print(df.to_string()) 
来试试吧 »

Click on the "来试试吧" button to see how it works.





W3Schools is optimized for learning and training. 示例 might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2021 by Refsnes Data. All Rights Reserved.
W3Schools is Powered by W3.CSS.

W3Schools.com