Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Data Science Basics Describing Data Max and Min

S B
S B
4,497 Points

Breaking down the arguments passed in for print(find_min_max(data_from_csv[1:], 2, 'max'))

I'd like to understand the following statement in more depth: print(find_min_max(data_from_csv[1:], 2, 'max'))

Here's what I understand at this point (please correct me if I'm wrong) -

Argument 1: "data_from_csv[1:]" - This refers to the row to start at in the csv file? [1:] skips the header row, and goes straight into row two. In the csv file, this would be:

399795110   119.83  Burberry London checked silk tie    870 Burberry    http://bim.shopstyle.com/pim/3c/27/3c27ee2884a1163917d41109fc3be1f3_best.jpg    Nude silk tie from Burberry London featuring a classic pointed design and a contrasting black and red house check print.    farfetch.com    _print  _silk

Argument 2: "2" - Refers to the column in the csv file...so in this case, it would be column two which is the 'priceLabel'?

I understand argument 3. No explanation needed.

Thanks!

Yeah I think that's pretty much it.

It's good to break it down and write it out though.

I have to admit, this course was a little tricky to follow along with...

1 Answer