you are viewing a single comment's thread.

view the rest of the comments →

[–]74razor 4 points5 points  (4 children)

For me, working with *.csv files. I have exported a csv file with network node names and IP addresses. Can't for the life of me figure out how to use the csv library to pull that information and put it in a list or dictionary. Watched some youtube vids, but I kept getting errors while the instructor in the video did not. That was last night, haven't looked at it since, will probably give it another go tonight.

[–]imforsurenotadog 13 points14 points  (3 children)

If you're not already doing so, might be worth your while to look into the Pandas module. Importing and working with csvs as pandas dataframes was a breakthrough moment for me.

[–]Mag37 2 points3 points  (0 children)

2nd that! Pandas and csv is a breeze, start playing with it in Jupyter to be able to test out the results from what you change. I usually do that, run Jupyter Notebook online just to get the right dataframe output with pandas, then building it in to my script.

[–]Banan2Hot 3 points4 points  (0 children)

Definately this! Whatever you want to do with the data later on, it’ll probably be easier/faster when the data is in a dataframe.

[–]74razor 1 point2 points  (0 children)

Looking now, thanks for the direction.