In this python pandas program, we will create and display a one-dimensional array.
Steps to solve the program
- Import pandas library as pd.
- Create a one-dimensional array using pd.Series().
- 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