I have a data frame with a date column. There are almost 7k rows and 10 of them are NaN. So I wanted to interpolate the date. I checked out the documentation and they used .interpolate(). However, when I tried that, I was not getting the desired result.
One sample row:
0 November 1, 2019
1 May 1, 2017
2 NaN
3 December 15, 2017
4 March 9, 2018
My approach:
main_df['date_added'].interpolate(method='linear', inplace=True)
When I viewed the rows, they remain NaN.
Is there a way to fill that date? I have 10 such cases in the data frame.
Thank you in advance.