Skip to content

Commit

Permalink
Drop outliers in geolocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Kseniia committed Mar 12, 2022
1 parent 20a6e62 commit 5ddedf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/basic_cleaning/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ def go(args):
idx = df['price'].between(args.min_price, args.max_price)
df = df[idx].copy()

logger.info("Drop the outliers in geolocation")
dx = df['longitude'].between(-74.25, -73.50) & df['latitude'].between(40.5, 41.2)
df = df[idx].copy()

logger.info("Save results")
filename = "clean_sample.csv"
df.to_csv(filename, index = False)
Expand Down

0 comments on commit 5ddedf1

Please sign in to comment.