Untitled
unknown
python
3 years ago
934 B
2
Indexable
step_six = {} # Решено на 2ЛТП step_six['Решено на 2ЛТП'] = round(df[(df['Комментарий'].str.contains('.*INC.*', na=False)) & (df['Текущая стадия'] == 'Завершено')]['ID обращения ПОС'].nunique() / len_unique_appeal * 100, 2) # Передано на 3ЛТП pass # Передано в ведомство step_six['Передано в ведомство'] = round(df[~df['Орг-ия, в которой находится обр-ие'].isin(LEVELS_TECH_SUPPORT)]['ID обращения ПОС'].nunique() / len_unique_appeal * 100, 2) step_six_df = pd.DataFrame.from_dict(step_six, orient='index') step_six_df.columns = ['%'] step_six_df
Editor is loading...