Wie finde ich das Datum von 52 Wochen hoch und Datum von 52 Wochen niedrig mit Pandas DataFrame (Python)?Python

Python-Programme
Anonymous
 Wie finde ich das Datum von 52 Wochen hoch und Datum von 52 Wochen niedrig mit Pandas DataFrame (Python)?

Post by Anonymous »

Bitte siehe Tabelle unter der Referenz < /p>
Ich konnte 52 Wochen hoch und niedrig finden. < /p>
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()
< /code>
Kann mir jemand bitte leiten, wie ich das Datum von 52 Wochen hoch und das Datum von 52 Wochen niedrig findet? Vielen Dank im Voraus.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post