Skip to content

Commit

Permalink
fix: filtered columns
Browse files Browse the repository at this point in the history
  • Loading branch information
rafoolin committed Jan 21, 2024
1 parent aaf12bd commit 41231d6
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 @@ -105,7 +105,7 @@ def __extract(self, url: str, csv_file_name: str) -> None:
if self.logging:
print(f"CSV file path: {csv_file_path}")
# Only read some of the columns
columns_to_read = [0, 1, 2, 3, 4, 7, 8, 9]
columns_to_read = [0, 1, 2, 3, 4, 8, 9]
# Read the CSV file
self.data_frame = pd.read_csv(
csv_file_path,
Expand Down Expand Up @@ -214,7 +214,7 @@ def run_pipeline(self, url: str) -> None:
ATTEMPTS = 1
while ATTEMPTS < RETRY_THRESHOLD:
try:
Pipeline(logging=True).run_pipeline(url=ZIP_URL)
Pipeline(logging=False).run_pipeline(url=ZIP_URL)
break
except Exception as e:
ATTEMPTS += 1
Expand Down

0 comments on commit 41231d6

Please sign in to comment.