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 2cad9e1 commit a98d19d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/exercise4.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
df = df[df['Verkehr'].isin(['FV','RV','nur DPN'])]
#>= or > is enough
df = df[(df['Laenge']>= -90 )& (df['Laenge']<= 90) & (df['Breite']>= -90 )& (df['Breite']<= 90) ]
df = df[(df['Temperatur'] * 9/5 +32 )& ((df['Betterietemperatur'] * 9/5 +32 ) ]
#Valid "IFOPT" values follow this pattern:
#<exactly two characters>:<any amount of numbers>:<any amount of numbers><optionally another colon followed by any amount of numbers>
Expand All @@ -47,5 +47,5 @@
df['Betreiber_Nr'] = df['Betreiber_Nr'].astype(int)
#Write to sqlite
df.to_sql('trainstops', 'sqlite:///trainstops.sqlite', if_exists= 'replace', index=False)
df.to_sql('temperatures', 'sqlite:///temperatures.sqlite', if_exists= 'replace', index=False)
'''

0 comments on commit a98d19d

Please sign in to comment.