Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,8 @@ def process_files(specialty_codes, specific_state='MN'):
|
|
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 |
if not filtered_df.empty:
|
92 |
# Enhance the display to include 'Code', 'Grouping', and 'Classification' information
|
93 |
display_info = specialties[specialties['Code'] == code][['Code', 'Grouping', 'Classification']].iloc[0].to_dict()
|
|
|
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()
|