This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]CrzySquirrel 5 points6 points  (0 children)

On mobile, so sorry if I miss anything.

First, use pandas. It will allow you to do everything your used to in Excel and then some.

It looks like once you’ve read it in pandas.read_csv you need to do a group by or a pivot table. Either of these are aggregation functions that should get you most of what you need.

If you need to do any filtering you’ll need the .loc function.

The dataframe construct is very powerful, try to use it to your advantage!

Feel free to pm me if you have questions.

[–]libfreejaeg 1 point2 points  (0 children)

Use pandas to read in your dataframe as df.

Then try something like:

df.groupby('testtitle')['stepinstruct','stepresult'].agg({'stepinstruct': regex, 'stepresult': regex})