fork(1) download
  1. import pandas as pd
  2.  
  3. df = pd.DataFrame()
  4. print(df)
  5.  
  6. lst = ['Geeks', 'For', 'Geeks', 'is', 'portal', 'for', 'Geeks']
  7.  
  8. df = pd.DataFrame(lst)
  9. print(df)
Success #stdin #stdout 3.52s 76968KB
stdin
Standard input is empty
stdout
Empty DataFrame
Columns: []
Index: []
        0
0   Geeks
1     For
2   Geeks
3      is
4  portal
5     for
6   Geeks