1/1/1970
pip install pandas
pip install --upgrade pandas
pip inall jupyter
note:- Jupyter is not necessary, but it provide a powerful and convenient environment for data analysis tasks, making it easier to visualize data, iterate on code, and document your analysis steps.
import numpy as np
import pandas as pdDataFrame Make and store dictionary in excel like table:
df = pd.DataFrame(dict1)export to csv, csv = comma seperated values
df.to_csv('friend')df.to_csv('friend', index=False)df.head(2)df.tail(3)df.describe()assigning 'df' datafram, but with different data
harry = df.read_csv('harry.csv')harryharry['speed']
harry['speed'][0]
harry['speed'][0] = 50 harry.to_csvharry.index = ['first', 'second', 'third', 'fourth'] .
.
.
Pandas has two types of data structures:
Series - One Dimensional
Dataframe - tabular spreadhsheet like structure
ser = pd.Series(np.random.rand)
#np = numPytype(ser) 40:00/1:05:00 Python Pandas Tutorial in Hindi by CodeWithHarry