
Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String...
pandas एक python library है, जिसका use हम tabular data जैसे excel sheet, sql tables को handle करने के लिए करते हैं। data analysis में pandas की help से data को clean, filter, sort, analyze और visualize किया जाता है।
ये python की library है इसलिए हमारे computer में पहले से python install होना जरूरी है, अब pandas को install करने के लिए हमें अपने computer में command terminal को open करना है और उसमें pip install pandas लिखकर enter press कर देना है अब कुछ ही time में pandas हमारे computer में install हो जाएगा।
Data Frame : यह data को excel की तरह row and columns में store करता है।
Data Cleaning : pandas में हम data cleaning जैसे missing value को handle करना duplicates को remove करना etc काम कर सकते हैं।
Series : यह एक column or row को represent करता है।
Data Filtering : pandas की help से हम किसी specific row या column की data को filter कर सकते हैं।
Reading and Writing Data : pandas में csv, excel, sql, etc. जैसे data sheets में हम data read and write कर सकते हैं।
import pandas as pd
# Ek DataFrame banaye
data = {
'Name': ['Alice', 'Bob', 'Charlie', 'David'],
'Age': [25, 30, 35, 40],
'City': ['New York', 'Los Angeles', 'Chicago', 'Houston']
}
df = pd.DataFrame(data)
# DataFrame ko display karo
print(df)
import : python library को अपने program मे use करने के लिए उसे अपने program मे import करना होता है, इसके लिए “import” use करते है। जैसा की इस example code के 1st line मे हमने Pandas को import किया है import pandas as pd
यहाँ पर हमने “as” का use करके matplotlib को एक short form दिया है pd, इससे होता ये है की अब जहां भी हमे Pandas लिखने की जरूरत होगी तो वह हम सिर्फ pd लिखेंगे हमारा काम हो जाएगा । आप pd के जगह कुछ भी ले सकते है but वो meaningful रहे, आम तौर पर हम pd का ही use करते है ।
Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String...
Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String...
Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String...
Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String...
Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Python String...
Python Tutorial Python Introduction Identation & Comments Python Variable Python Data Type Python Operators Conditional Statements Python Loops Hamburger Toggle...
Scikit-learn Tutorial Scikit-learn Hamburger Toggle Menu Edit Template Scikit learn in Hindi What is Scikit-learn in Hindi Scikit learn एक...