What is the output of the following code? import pandas as pd d = pd.date_range('11-Sep-2017', '17-Sep-2017', freq='2D') len(d[d.isin(pd.to_datetime(['12-09-2017', '15-09-2017']))])

Questions & AnswersCategory: Programming LanguageWhat is the output of the following code? import pandas as pd d = pd.date_range('11-Sep-2017', '17-Sep-2017', freq='2D') len(d[d.isin(pd.to_datetime(['12-09-2017', '15-09-2017']))])
Adam asked 2 years ago

What is the output of the following code?

import pandas as pd

d = pd.date_range('11-Sep-2017', '17-Sep-2017', freq='2D')

len(d[d.isin(pd.to_datetime(['12-09-2017', '15-09-2017']))])

a. 2
b. 4
c. 1
d. 0