DataFrames:
-It is a two dimensional data structure defined in pandas which consists of rows and columns.
Syntax-
pandas.DataFrame(data)
Here data can be :
1. one or more dictionary.
2. one or more series
3. 2D numpy Ndarray
import pandas
l1=[[1,2,3],[4,5,6]]
l2=[['a','b','c'],['d','e','f']]
d={'first':l1,'second':l2}
ans=pandas.DataFrame(d)
print(ans)
first second
0 [1, 2, 3] [a, b, c]
1 [4, 5, 6] [d, e, f]