You can create a date list and then create your dataframe
Create date list
>>> import datetime
>>> initial_date = datetime.datetime(2020, 1, 1)
>>> initial_date
datetime.datetime(2020, 1, 1, 0, 0)
>>> time_delta = datetime.timedelta(1)
>>> lista = []
>>>
>>> for i in range(10):
... lista.append(initial_date + (time_delta * i))
...
>>> lista
[datetime.datetime(2020, 1, 1, 0, 0), datetime.datetime(2020, 1, 2, 0, 0), datetime.datetime(2020, 1, 3, 0, 0), datetime.datetime(2020, 1, 4, 0, 0), datetime.datetime(2020, 1, 5, 0, 0), datetime.datetime(2020, 1, 6, 0, 0), datetime.datetime(2020, 1, 7, 0, 0), datetime.datetime(2020, 1, 8, 0, 0), datetime.datetime(2020, 1, 9, 0, 0), datetime.datetime(2020, 1, 10, 0, 0)]
Create dataframe
>>> import pandas as pd
>>> df = pd.DataFrame({"datas": lista})
>>> df
datas
0 2020-01-01
1 2020-01-02
2 2020-01-03
3 2020-01-04
4 2020-01-05
5 2020-01-06
6 2020-01-07
7 2020-01-08
8 2020-01-09
9 2020-01-10
>>>
Placing each date in a column
>>> lista_vars = [f"vData{i}" for i in range(10)]
>>> to_df = dict(zip(lista_vars, lista_datas))
>>> df = pd.DataFrame(to_df, index=[1])
>>> df
vData0 vData1 vData2 vData3 vData4 vData5 vData6 vData7 vData8 vData9
1 2020-01-01 2020-01-02 2020-01-03 2020-01-04 2020-01-05 2020-01-06 2020-01-07 2020-01-08 2020-01-09 2020-01-10
For the output in the format you want, use the strftime
>>> df['vData0'].dt.strftime('%d/%m/%Y')
1 01/01/2020
Name: vData0, dtype: object
I hope it helps
Thanks, it helped yes, but I need each date to be in a variable; vData1 = 01/12/2020.... vData90 = 03/09/2020, I need it to be in this format.
– Insert
@Insert, updated the post in response to your comment
– Paulo Marques