Update app.py
Browse files
app.py
CHANGED
@@ -82,13 +82,13 @@ def process_files(specialty_codes, specific_state='MN'):
|
|
82 |
file_to_process = f'./{specific_state}.csv' if use_specific_state else state_files
|
83 |
|
84 |
for file in [file_to_process] if use_specific_state else state_files:
|
85 |
-
state_df = pd.read_csv(file, header=0) # Assuming no header for simplicity
|
86 |
-
|
87 |
#state_df = pd.read_csv(file, header=0) # Assuming no header for simplicity
|
88 |
|
89 |
for code in specialty_codes:
|
90 |
-
|
91 |
-
filtered_df = state_df[state_df['ProviderBusinessPracticeLocationAddressStateName'].isin([code])] # Match against 48th column, adjust as needed
|
92 |
if not filtered_df.empty:
|
93 |
# Enhance the display to include 'Code', 'Grouping', and 'Classification' information
|
94 |
display_info = specialties[specialties['Code'] == code][['Code', 'Grouping', 'Classification']].iloc[0].to_dict()
|
|
|
82 |
file_to_process = f'./{specific_state}.csv' if use_specific_state else state_files
|
83 |
|
84 |
for file in [file_to_process] if use_specific_state else state_files:
|
85 |
+
#state_df = pd.read_csv(file, header=0) # Assuming no header for simplicity
|
86 |
+
state_df = pd.read_csv(file, header=None) # Assuming no header for simplicity
|
87 |
#state_df = pd.read_csv(file, header=0) # Assuming no header for simplicity
|
88 |
|
89 |
for code in specialty_codes:
|
90 |
+
filtered_df = state_df[state_df[47].isin([code])] # Match against 48th column, adjust as needed
|
91 |
+
#filtered_df = state_df[state_df['ProviderBusinessPracticeLocationAddressStateName'].isin([code])] # Match against 48th column, adjust as needed
|
92 |
if not filtered_df.empty:
|
93 |
# Enhance the display to include 'Code', 'Grouping', and 'Classification' information
|
94 |
display_info = specialties[specialties['Code'] == code][['Code', 'Grouping', 'Classification']].iloc[0].to_dict()
|