fork download
  1. # your code goes here
  2. import pandas as pd
  3.  
  4. # intialise data of lists.
  5. data = {'Name':['Tom', 'nick', 'krish', 'jack'],
  6. 'Age':[20, 21, 19, 18]}
  7.  
  8. # Create DataFrame
  9. df = pd.DataFrame(data)
  10.  
  11. #y = len(df)
  12. print(df['Name'][0])
  13. #r_size, c_size = df.shape
  14. #x = df[r_size-1]['Name']
  15. #print(df['Name'][0])
Success #stdin #stdout 0.24s 60444KB
stdin
Standard input is empty
stdout
Tom