My start point is the variable data_published_date
data_published_date
Out[47]: "DatetimeIndex(['2022-03-18'], dtype='datetime64[ns]', freq=None)"
as it's a date in March, I wish to generate EACH day for the NEXT month as timestamp, like
['2022-04-01', '2022-04-02', '2022-04-03'.....'2022-04-30']
I tried
index = pd.date_range(data_published_date + pd.offsets.MonthBegin(n=1), data_published_date + pd.offsets.MonthEnd(n=1))
and received
TypeError: Cannot convert input [DatetimeIndex(['2022-04-01'], dtype='datetime64[ns]', freq=None)] of type <class 'pandas.core.indexes.datetimes.DatetimeIndex'> to Timestamp
tried then 2 steps
start_date = data_published_date + pd.offsets.MonthBegin(n=1)
end_date = data_published_date + pd.offsets.MonthEnd(n=2)
but can't find a solution to convert these 2 Datetimeindex to timestamp so that I can use pd.date_range to reach my objective.
Any idea?