Untitled

 avatar
unknown
plain_text
a year ago
597 B
5
Indexable
unique_clients_per_label = df.groupby(['transaction_date', 'label'])['client_inn_dil'].nunique().reset_index()
unique_clients_per_label.pivot(index='transaction_date', columns='label', values='client_inn_dil')


label	dil_KP	dil_MO	dil_MO+KP	Прочие
transaction_date				
2023-01-01	153	13	8	5392
2023-02-01	161	22	9	5527
2023-03-01	161	24	7	5775
2023-04-01	191	20	10	5958
2023-05-01	191	22	10	6053
2023-06-01	188	26	10	6228
2023-07-01	200	25	9	6356
2023-08-01	202	26	8	6520
2023-09-01	219	22	9	6708
2023-10-01	208	30	9	6749
2023-11-01	212	23	12	6761
2023-12-01	213	22	10	6831
Editor is loading...
Leave a Comment