Pandas क्या है
Pandas Python का spreadsheet है: code से data की tables load, clean, और analyse करने का एक tool।
In this page:
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
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. #}
आम गलतियां
- Pandas को animal-themed unrelated packages से confuse करना
- पहले NumPy install किए बिना इसे इस्तेमाल करने की कोशिश करना
- एक 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: