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']])

Questions & AnswersCategory: Programming LanguageWhat 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']])
Adam asked 2 years ago

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