I've got a question and hope you can help me. Suppose a Pandas Dataframe who looks something like this:
I would like to do a linear interpolation to fill the missing nan values. While I was searching I only found examples when the values in the same column had to be interpolated, nothing cross column. Is there a way to do an interpolation between the left and right of the nan values?
Kind regards
PS: a code snipped:
import pandas as pd
data = {'A':[2,4,6,8,4],
'B':[0,0,0,0,0],
'C':[4,10,4,5,1]}
df = pd.DataFrame(data,columns=['A','B','C'])
