Series :
-series is one dimensional array defined in pandas library that can be used to store any data type.
Syntax-
pandas.Series(data,index)
-Here data can be
1. scalar value like string,integer,float
2. python dictionary
3. Ndarray
Series with scalar value-
program-
import pandas
print("Enter stringn")
s=input()
a=pandas.Series(s)
print("After pandas seriesn",a)
print("")
#series with string
print(pandas.Series("string"))
#series with integer number
print(pandas.Series(8))
#serise with float number
print(pandas.Series(8.80))
Enter string
programming
After pandas series
0programming
dtype: object
0string
dtype: object
08
dtype: int64
08.8
dtype: float64