Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Created September 3, 2022 11:23
Show Gist options
  • Select an option

  • Save samirsaci/86dd2a3ea6a53ea53f7e146ffb69793e to your computer and use it in GitHub Desktop.

Select an option

Save samirsaci/86dd2a3ea6a53ea53f7e146ffb69793e to your computer and use it in GitHub Desktop.
Mail Report
# Lines per orders
avg_ratio = '{:.2f} lines/order'.format(df_plot['LINES/ORDER'].mean())
max_ratio = '{:.2f} lines/order'.format(df_plot['LINES/ORDER'].max())
# Maximum Day Lines
busy_day = dict_days[df_plot.set_index('DAY')['LINES'].idxmax()]
max_lines = '{:,} lines'.format(df_plot['LINES'].max())
# Total Workload
total_lines = '{:,} lines'.format(df_plot['LINES'].sum())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment