[Python] How to find Date of 52 Week High and date of 52 Week low using pandas dataframe...

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

  1. Stack

    Stack Membro Participativo

    Please refer below table to for reference

    I was able to find 52 Week High and low using:

    df = pd.read_csv(csv_file_name, engine='python')
    df['52W H'] = df['HIGH'].rolling(window=252, center=False).max()
    df['52W L'] = df['LOW'].rolling(window=252, center=False).min()


    Can someone please guide me how to find Date of 52 Week High and date of 52 Week low? Thanks in Advance.

    Continue reading...

Compartilhe esta Página