← Back to Pandas Course | Chapter 1: Getting Started | Lesson 1 of 7

Pandas क्या है

Pandas Python का spreadsheet है: code से data की tables load, clean, और analyse करने का एक tool।

Pandas क्या है

Pandas data analysis और manipulation के लिए एक open-source library है, NumPy के ऊपर built। इसकी दो main structures हैं Series (एक labelled column) और DataFrame (एक labelled table)।

यह CSV, Excel, JSON, SQL, और कई दूसरे formats पढ़ती और लिखती है।

Note: नाम "panel data" से आता है, multi-dimensional tables के लिए econometrics का एक term।

उदाहरण: What is Pandas

python
import pandas as pd

df = pd.DataFrame({"city": ["Paris", "Tokyo", "Lima"], "population_m": [2.1, 14.0, 10.7]})
print(df)
print(type(df))

# Output:
#     city  population_m
# 0  Paris           2.1
# 1  Tokyo          14.0
# 2   Lima          10.7
# <class 'pandas.core.frame.DataFrame'>
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. Pandas को animal-themed unrelated packages से confuse करना
  2. पहले NumPy install किए बिना इसे इस्तेमाल करने की कोशिश करना
  3. एक DataFrame को plain list of lists की तरह treat करना
चैप्टर सारांश
  • Pandas tabular data analyse करता है
  • Series एक column है, DataFrame एक table है
  • यह कई file formats पढ़ता है
  • यह NumPy पर built है
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.