[Python] Python Pandas Interpolate nan columns with respect to the column values

Discussão em 'Python' iniciado por Stack, Maio 2, 2025.

  1. Stack

    Stack Membro Participativo

    I have data in Pandas, where the temperatures are the column headers and the COP values are in the matrix.

    If I interpolate using pandas interpolate function I end up with linear interpolate, not weighted to the temperature at the top.

    For example, here is my original data: [​IMG]

    I have added the needed columns and I need to interpolate with respect to the column header version.. If I use the interpol function, the values are interpolated but not with respect to the temperature. See example, incorrect interpolation. [​IMG]

    Is this possible in Pandas or should I remove it our of a dataframe and rather do it in Scipy?

    Continue reading...

Compartilhe esta Página