uc-python / intro-python-datasci

Intro to Python for Data Science Workshop
https://uc-python.github.io/intro-python-datasci/
MIT License
32 stars 23 forks source link

More detailed explanation of saving index #6

Closed eswan18 closed 5 years ago

eswan18 commented 5 years ago

In Exporting Data: Could you add a little more explanation to what is happening here (indexes being saved automatically, even though they aren't actually a column in the original data)?

image

markroepke commented 5 years ago

Sure, I can add something about the index being saved by default. Though I intentionally avoided a verbose explanation for two reasons:

  1. The DataFrame index should be explained in Fundamentals or Packages, Modules, Methods, Functions given that we agreed the basics of the DataFrame class would be covered within these sections.
  2. These are visual aids and I anticipate verbal clarifications of what's happening here. I'm of the opinion that these aren't necessarily supposed contain all the details.

With that being said, I'll add a brief comment about the index not being part of the original data but being saved as a column by default. It's always good to review the concept of the index, anyways.

eswan18 commented 5 years ago

Makes sense. I would have breezed over indexes, since they're pretty complicated, but I'll make sure to add at least a little bit of content on them so students will be familiar when we encounter this.

markroepke commented 5 years ago

I made the discussed additions, but also want to point out there was an HTML-created discussion question already there (not rendering it GitHub) that I forgot about earlier -- hopefully these address the concern here.

For reference, here's what it looks like fully rendered:

Screen Shot 2019-04-14 at 4 20 46 PM

Please close if you feel good about this.