Last post was about a very nice tool that will let you import .pcap files directly from Python and process frames. This is useful for everything!
Sometimes processing Comma Separated Values (CSV) files is a little bit tricky, specially if you are not completely aware of the values contained in each column. Sharktools builds a Python dictionary of lists with the Key set to a specific field in Wireshark.
You may use this simple example to make yourself a fresh start. Push Request are welcome!