One of the column in following dataframe has comma separated value:
Dataframe1:
Id date price batch resp
uv-1 2020-01-10 15:13:16 1000 Q ES,RT,AL
uv-2 2020-01-11 17:13:16 5000 W ES,AL
uv-3 2020-01-12 18:13:16 2000 E ES,RT
uv-4 2020-01-13 12:13:16 3000 R ES,RT
uv-5 2020-01-14 13:13:16 1600 T RT,AL
uv-6 2020-01-15 13:13:16 1600 T ES,AL
uv-7 2020-01-17 11:13:16 1300 Y ES,RT,AL
I need extract the count of resp value on month basis as follows.
Jan-20
batch ES RT AL Total
Q 1 1 1 1
% 100% 100% 100% 14.29%
W 1 0 1 1
% 100% 0.00% 100% 14.29%
E 1 1 0 1
% 100% 100% 0.00% 14.29%
R 1 1 0 1
% 100% 100% 0.00% 14.29%
T 1 1 2 2
% 50% 50% 100% 28.57%
Y 1 1 1 1
% 100% 100% 100% 14.29%
Total 6 5 5 7
Total(%) 85.71% 71.43% 71.43% 100%