pastebin

Paste Search Dynamic
Recent pastes
df loc
  1. import pandas as pd
  2. df={'sno':[1,2,3,4,5 ,6],
  3.  'sname':['rutvik','pankti','evaan','pranali','dhyan'],
  4.  'city':['vadodara','valsad','ahemdabad','pune','houston'],
  5. 'age':[21,16,5,26,13]}
  6. df=pd.DataFrame(df)
  7. print(df.loc[2])
Parsed in 0.003 seconds