I have a CSV file that contains the following columns: source, destination, packet type (UDP or ICMP), description (explain the type of the ICMP packet).
I want to write Python code to parse through the data, counting the number of sent packets per each source/node and plot that.
Can you kindly advise me how can I do that? Examples or tutorials will be highly appreciated.
python how to parse csv file
and convert your data set into a Python structure. It sounds like you'd want to create adict
to relate each node with the packet count. Once you have that, figure out how to plot it separately. Good luck!