LOC,IX,Mean

1)loc[specific index row and clm]
df.loc[0] #0 index ni row aavi jse
df.loc[99]#99 index ni row aavi jse
2)IX{loc na badle lx lkhvanu]
df.ix[0]
or
df.ix[[0,99,76]] # 0,99,76 number ni index aavse
or
df.ix[[0,99,76],['HP','Attack']]

HPAttack
04549
993035
766590
or
df.ix[[0,99,76],[5,6]]

HPAttack
04549
993035
766590
3)Mean
mean=df['HP'].mean()#'HP pokemon no dataset
mean
69.25875

Comments

Popular posts from this blog

Seaborn

profile fragment firebase ie image and information vadu page update tay firebase ma

Payment ideal