Create and display a one-dimensional array using Pandas

In this python pandas program, we will create and display a one-dimensional array.

Steps to solve the program
  1. Import pandas library as pd.
  2. Create a one-dimensional array using pd.Series().
  3. Print the output.
				
					import pandas as pd
df = pd.Series([15,43,88,23])
print(df)
				
			

Output :

				
					0    15
1    43
2    88
3    23
dtype: int64
				
			

convert a series to a list and print its type

Leave a Comment