df=pandas.DataFrame(processed_data_format, columns=["file_name", "innings", "over","ball", "individual ball", "runs","batsman", "wicket_status","bowler_name","fielder_name"])
df.groupby(['batsman'])['runs','ball'].sum()
by using this i will get the result like
a 30 29
b 4 1
c 10 15
I would like to get the count of column called filename with the result of the code as mentioned above.The Final result should be like
a 30 29 2
b 4 1 1
c 10 15 2