Data Types and Pandas
What are the data types admitted in a Pandas object?
Can a Series contain multiple data types?
# import numpy and pandas with the socially accepted alias 'np' and 'pd'
>>> import numpy as np
>>> import pandas as pd
# a list with a string, a float, and an integer
>>> L = ["xyz", -17.64, 0]
# create a NumPy array from the list
>>> A = np.array(L)
>>> print(A)
['xyz' '-17.64' '0']
# create a Series from the list
>>> S = pd.Series(L)
>>> print(S)
0 xyz
1 -17.64
2 0
dtype: object
# proof that Series preserves the type of the individual object
# --+ fetch the second item of the list and carry out a mathematical operation
>>> S[1]/2
-8.82