[Python] How to calculate the derivate of a python pandas dataframe given vector values and...

Discussão em 'Python' iniciado por Stack, Março 24, 2025.

  1. Stack

    Stack Membro Participativo

    Say I have three scaler components (Vx, Vy, Vz) of some value V, as well as the 2D location coordinates where these values exist (x, y). This is arranged in a pandas dataframe (df) such that the data is arranged as:

    Vx Vy Vz x y
    30 20 10 1 3
    ... ... ... ... ...
    50 70 40 4 2

    Here x and y have the same range [0:5], and there exists value for Vx,y,z at every coordinate.

    I want to compute the gradient of my values. How do I go about doing this? Would I need to put the values in a meshgrid? Do I need a timeseries? I am quite lost!

    Thank you so much!

    Continue reading...

Compartilhe esta Página