joycecast commited on
Commit
541a2d1
·
verified ·
1 Parent(s): 5e86c4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -138,10 +138,10 @@ with tabs[1]:
138
  # Grouped Summary: for Last Mile Service == GOFO/USPS, grouped by MAWB + Channal_name
139
  st.subheader("GOFO/USPS Each Channel Cartons Summary")
140
  if 'Channal_name' in df_ctn.columns:
141
- df_channel = df_ctn[
142
- (df_ctn[last_mile_col].str.upper() == 'GOFO') |
143
- (df_ctn[last_mile_col].str.upper() == 'USPS')
144
- ]
145
  grouped = df_channel.groupby(['MAWB', 'Channal_name']).size().reset_index(name='CTN Count')
146
  st.dataframe(grouped, use_container_width=True)
147
  else:
 
138
  # Grouped Summary: for Last Mile Service == GOFO/USPS, grouped by MAWB + Channal_name
139
  st.subheader("GOFO/USPS Each Channel Cartons Summary")
140
  if 'Channal_name' in df_ctn.columns:
141
+ df_channel = df_ctn[
142
+ (df_ctn[last_mile_col].str.upper() == 'GOFO') |
143
+ (df_ctn[last_mile_col].str.upper() == 'USPS')
144
+ ]
145
  grouped = df_channel.groupby(['MAWB', 'Channal_name']).size().reset_index(name='CTN Count')
146
  st.dataframe(grouped, use_container_width=True)
147
  else: