Skip to content

Commit

Permalink
Update exercise4.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenSchmotz committed Jun 28, 2023
1 parent a98d19d commit 701dbce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions exercises/exercise4.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@
df = df.drop(['Status'], axis=1)
#Then, drop all rows with invalid values in Verkehr:
df = df[df['Verkehr'].isin(['FV','RV','nur DPN'])]
#df = df[df['Verkehr'].isin(['FV','RV','nur DPN'])]
#Only use the columns
df = df['Geraet', 'Hersteller','Model','Monat','Temperatur in °C (DWD)','Batterietemperatur in °C (DWD)','Geraet aktiv']
#>= or > is enough
#Transform data
df = df[(df['Temperatur'] * 9/5 +32 )& ((df['Betterietemperatur'] * 9/5 +32 ) ]
#Valid "IFOPT" values follow this pattern:
Expand Down

0 comments on commit 701dbce

Please sign in to comment.