0

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.

2
  • I'm voting to close this question; it's too broad as-is, and requires more effort on your part before the community can help. You need to take this one step at a time. First search the internet for something like python how to parse csv file and convert your data set into a Python structure. It sounds like you'd want to create a dict to relate each node with the packet count. Once you have that, figure out how to plot it separately. Good luck!
    – mpontillo
    Jan 31, 2018 at 22:01
  • I did it in R, thanks anyway !! Feb 1, 2018 at 4:04

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.