Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

Pandas 教程

[+:

Pandas 是一个 Python 库。

Pandas 用于分析数据。

阅读学习

我们创建了 14 个教程页面供您学习更多关于 Pandas 的知识。

从基础介绍开始,到数据清洗和绘图。


示例学习

在我们的“尝试一下”编辑器中,您可以使用 Pandas 模块,并修改代码以查看结果。

示例

将 CSV 文件加载到 Pandas DataFrame 中

import pandas as pd

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

print(df.to_string()) 
尝试一下 »

点击“尝试一下”按钮查看其工作原理。


练习学习

本教程中的大多数章节都以练习结束,您可以在其中检查您的知识水平。

查看所有 NumPy 练习


测验学习

通过测验测试您的 Pandas 技能。

开始 Pandas 测验


w3schools CERTIFIED . 2022

获得认证!

完成 Pandas 模块,完成练习,参加考试,您将获得 w3schools 认证!

10 美元报名

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples 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-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.