Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Data Science Basics Describing Data Loading Raw Data

Sahar Nasiri
Sahar Nasiri
7,454 Points

FIELDNAME

What is this FILEDNAME she passed? Why does she do that?

3 Answers

Hello,

She passed FIELDNAMES in caps because these are constants. Kenneth Love talked about this in his python course.

By having these constants, she did not have to have a whole string of field names in her numpy.genfromtxt command

Sahar Nasiri
Sahar Nasiri
7,454 Points

Can you tell me where can I find this topic's videos? What is the name of the course?

Kenneth only talked about why it is in CAPS. That is in Python Basics.

As for what those Fieldnames are, they are actually the headers for the data.

Let me know if you have any other questions

Sahar Nasiri
Sahar Nasiri
7,454 Points

I cannot believe I asked this question :)). Thank you I get it ;)