-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bda0720
commit 0616677
Showing
72 changed files
with
72,136 additions
and
482 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 15 additions & 15 deletions
30
...food_business_team1/Public-Data/policy.py → covid_food_business_team1/Scripts/policy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import pandas as pd | ||
|
||
def filter(keyword, value, filepath, output_name): | ||
df = pd.read_csv(filepath) | ||
|
||
filtered = pd.DataFrame() | ||
|
||
df = df.dropna() | ||
for i in range(df.shape[0]): | ||
if value in df.loc[i][keyword]: | ||
filtered = filtered.append(df.loc[i]) | ||
|
||
filtered.to_csv(output_name) | ||
|
||
filter('Neighborhood', 'Boston', 'Reopen-Boston-Fund.csv', 'filtered_Reopen.csv') | ||
import pandas as pd | ||
|
||
def filter(keyword, value, filepath, output_name): | ||
df = pd.read_csv(filepath) | ||
|
||
filtered = pd.DataFrame() | ||
|
||
df = df.dropna() | ||
for i in range(df.shape[0]): | ||
if value in df.loc[i][keyword]: | ||
filtered = filtered.append(df.loc[i]) | ||
|
||
filtered.to_csv(output_name) | ||
|
||
filter('Neighborhood', 'Boston', 'Reopen-Boston-Fund.csv', 'filtered_Reopen.csv') | ||
#filter('Neighborhood', 'Boston', 'Small-Business-Relief-Fund.csv', 'filtered_Small.csv') |
File renamed without changes.
3,083 changes: 3,083 additions & 0 deletions
3,083
covid_food_business_team1/csv_Files/Government_Policy_data/active_food_license.csv
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.