What is the output of the following code? import pandas as pd s = pd.Series([89.2, 76.4, 98.2, 75.9], index=list('abcd')) print(s[['c', 'a']])
What is the output of the following code?
import pandas as pd s = pd.Series([89.2, 76.4, 98.2, 75.9], index=list('abcd')) print(s[['c', 'a']])
a. a 89.2
c 98.2
dtype: float64
b. c 98.2
a 89.2
dtype: float64
c. c 98.2, a 89.2
d. a 89.2, c 98.2