In this python pandas program, we will convert a series of lists into one series using Pandas library.
Steps to solve the program
- Import pandas library as pd.
- Take a series of lists as input.
- Now convert a series of lists into one series using pd.Series().
- Print the output.
import pandas as pd
a = [['Sqa','tool'],['Learning','python'],['Is','fun']]
result = pd.Series(a)
print(result)
Output :
0 [Sqa, tool]
1 [Learning, python]
2 [Is, fun]
dtype: object