代写 Description

Description

In this question, you are required to extract the last date’s data of each month from a time series.

Recommended Packages

datetime (strptime)
pandas (to_datetime)

Input

ukpound_exchange.csv

Output

output.csv

Sample Input

date value
10-01-2016 1
20-01-2016 2
30-01-2016 3

Sample Output

date value
30-01-2016 3

Important Notes

• It is a good idea to convert the date string into a “datetime” object.