Skip to content

Commit

Permalink
fix(exercise 2): fix wrong assignment!
Browse files Browse the repository at this point in the history
  • Loading branch information
rafoolin committed Nov 23, 2023
1 parent 948526c commit 89e3f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/exercise2.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __transform(self):
"""
print("Transforming the data source...")
# 01- Drop [Status] column
self.data_frame = self.data_frame.drop(["Status"], axis=1)
self.data_frame.drop(["Status"], axis=1)
# 02- Drop rows with invalid values on [Verkehr] column
# Valid values are ["FV", "RV", "nur DPN"]
valid_traffic = self.data_frame["Verkehr"].str.match(r"[FV|RV|nur DPN]") == True
Expand All @@ -48,7 +48,7 @@ def __transform(self):
valid_traffic = self.data_frame["IFOPT"].str.match(regex_pattern) == True
self.data_frame = self.data_frame[valid_traffic]
# 05- Drop empty cells
self.data_frame = self.data_frame.dropna()
self.data_frame.dropna(inplace=True)
print("Transforming the data source Finished!")

def __load(self):
Expand Down

0 comments on commit 89e3f35

Please sign in to comment.