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 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 ;)