[Python] Comparing 2 Columns to determin if higher or lower

Discussão em 'Python' iniciado por Stack, Julho 16, 2025.

  1. Stack

    Stack Membro Participativo

    trying to Compare 2 Columns lag2open to MGC=F and return if it is higher and returning it as Higher than 0

    using GCClose["Higher than 0"] = [GCClose.columns[1]]>= [GCClose.columns[0]] it always returns True, while the validation column diff doesn't support that idea

    Anyone can Explain to me what i am doing wrong? [​IMG]

    Continue reading...

Compartilhe esta Página