I would like to convert this Date column to the last Business Day of the month, that Date column represents. Anybody has an idea please? Thanks
import pandas as pd
# assign data of lists.
data = {'Name': ['2021-12-31', '2020-12-31', '2019-12-31', '2018-12-31', '2017-12-31']}
# Create DataFrame
df = pd.DataFrame(data)
df = pd.date_range(df, freq='BM')
df