Pandas Column Data Type

21 February 2020
21 Feb 2020
1 min read

I came across a weird bug that took me a few minutes to solve. I was using pandas get_dummies function (which was absolutely terrific) but wasn’t able to access the columns after.

After noodling for a minute, I used print(list(Data)) to see that the columns weren’t strings, so I just referred to them with the numbers. Tough bug which was interesting to fix.

Want to know more?

I spend a ton of time thinking on how to work smarter, not harder. If you'd like to be the first to know what I'm thinking about, sign up to the list below.


Self Advocating

Spotify and Apple Music Thoughts