Program to convert a series of lists into one series

In this python pandas program, we will convert a series of lists into one series using Pandas library.

Steps to solve the program
  1. Import pandas library as pd.
  2. Take a series of lists as input.
  3. Now convert a series of lists into one series using pd.Series().
  4. 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
				
			

convert a given Series to an array

sort a given Series

Leave a Comment