Copy existing data to NaT in python [duplicate]

  dataframe, merge, pandas, python

I have some data like this:

            period_Jan           number_of_views_Jan
0           2020-01-01             372418.0   
1           2020-01-01             310529.0   
2           2020-01-01             130894.0   
3           2020-01-01              89362.0   
4           2020-01-01              71014.0   
...             ...                  ...        
1846           NaT                  1.0   
1847           NaT                  1.0   
1848           NaT                  1.0   
1849           NaT                  1.0   

How if i want to insert NaT values with existing data in the same column (2020-01-01)

Source: Python Questions

LEAVE A COMMENT