How to convert list into data frame in python?
Converting list into data frame means printing it in a form of data in python.
Here we’ll see how we can convert the list into data frame in python.
e.g.,
from pandas import DataFrame p=['a','b', 'c', 'd', 'e'] df=DataFrame(p, column=['alphabet']) print(df)
This is how we can convert list into DataFrame in python.
Subscribe
Login
Please login to comment
0 Discussion