r/learnpython • • Feb 20 '21

What are you having difficulty learning or are currently struggling to learn?

I'm curious what the community here has difficulty with when it comes to learning Python. Partly because I want to see if the more experienced community here (or myself) can help point you into the right direction. . . but also because I'm trying to come up with video tutorial ideas for future content and would love to hear from Python learners what would be most useful to dedicate our time on.

I'm looking forward to hearing what you guys have to say!

417 Upvotes

324 comments sorted by

View all comments

Show parent comments

2

u/MaraudingAvenger Feb 21 '21

Oh man, this one hits close to home.

I think the first thing is the categorical vs. numerical -- basically categorical data, we don't care if the field we're looking at contains a number, a string, or something like that; that number/string means something. If you're working with that awful fuel economy spreadsheet that DS courses love so much, a car's type ("sedan", "truck", "hatchback", etc.) would be categorical. What if that was a number instead? If it was 1, 2, 3, we wouldn't care that it was a number, because the number doesn't represent a count of something; it just represents one of a number of categories that the vehicles might fall into. So that we don't accidentally treat that category like a number and maybe add something to it on accident, we could make it into a string instead.

With graph types, that is far more subjective than many instructors will admit. Really, if you can convey the information you want to convey with the combination of shapes and colors you create, then it's doing its job. I spend so much time tailoring things to certain color schemes, sizing points and adjusting alpha, etc. that ultimately has very little bearing on the overall presentation. This all boils down to "don't use a pie chart" basically, lol. I think the biggest thing is just to know what's out there (browse d3js.org front page to be inspired), and choose something that you like that communicates what you want it to communicate.

2

u/skarizardpancake Feb 22 '21

Thank you! My professor definitely said the “don’t use a pie chart” bit lmfao

This was pretty informative! Thank you, I really appreciate it. On my current project I was getting so confused and felt like everything was categorical, then I was only left with two numerical ones lol. I was definitely over thinking it though. For example, I thought that age and income would be categorical, but now I see they would be numerical and how obvious that is now face palm.

I’ll definitely check out that link! The professor in my course didn’t really go over how to do different color schemes and sizing, but they are present it in the examples given so I’ll just have to look more into that too.

Again, thank you!