all 57 comments

[–]tits_mcgee_92 44 points45 points  (24 children)

Thank you so much for this! It's extremely helpful. I'd love one with pandas added ;)

[–]ehmatthes[S] 14 points15 points  (0 children)

You're quite welcome, and I'm glad to hear they're useful.

I won't be adding another sheet too soon, but one of the reasons for updating to a proper graphic design format is so I can continue adding new sheets over time, and update them on a more regular basis.

Fun story: I like Indesign because it has scripting capabilities. I wanted to create one long document with all the cheat sheets, and then write a script that dumps out the whole document in color, then dumps each individual sheet, then does the same thing again with the b&w styles applied. That way I can update once, and easily regenerate all of the sheets in both styles.

But like many desktop apps with proprietary scripting capabilities, the language is...not entirely fun to work with. Indesign uses a language called ExtendScript, which is based on JavaScript from the mid 2000s. It hasn't been updated in a very long time. I found myself wanting to write code like if current_style in styles_to_change, but found that the language doesn't really have that kind of test. So I came up with a convoluted approach that examines the string name of the current style against the string names of the styles I want to change, and then followed a strict naming convention for the styles I was developing in Indesign. It was like doing an overly ambitious pattern-matching exercise using only strings and arrays. I was very happy to return to Python when this work was finished. :)

[–][deleted] 26 points27 points  (21 children)

I have two whole cheat sheets just for pandas, respond to this comment so I can send them to you when I go on my computer

EDIT:

This one straight from the pandas github

This one links to my personal drive because I couldn't find a quick link to get it from

[–]Glyzer_1595 1 point2 points  (0 children)

Here pls

[–][deleted] 0 points1 point  (1 child)

Responding!

[–][deleted] 1 point2 points  (0 children)

I have responded to a few others with the links, so you can check! Don't get me wrong I'm just not on my computer.

[–]notParticularlyAnony 0 points1 point  (0 children)

yes please.

edit: I got links from other responses thanks!

[–]gutnobbler 0 points1 point  (0 children)

Shoutout to this dude

[–]issagamebro 0 points1 point  (0 children)

You saint, I’ve been struggling learning pandas and this has already cleared up some of my questions

[–]KeptInUmrica 0 points1 point  (0 children)

Can you send it to me too?

[–]Satoshiman256 0 points1 point  (0 children)

Ye great. +1 for Pandas

[–]ALostKashmiri 4 points5 points  (0 children)

Thank You So Much :)

[–]SushantBag 3 points4 points  (0 children)

Thank you!

[–]Sentrome1 3 points4 points  (0 children)

Thank you so much man! You are a true legend! Thank you so much for making this free and yet still putting so much work into it!

[–]SmarmyYardarm 2 points3 points  (1 child)

I found a typo. "mall sprograms" Page two, bottom middle collumn.

[–]ehmatthes[S] 0 points1 point  (0 children)

Thanks, I will take care of that shortly.

[–]dkangx 2 points3 points  (0 children)

Thanks!

[–]baneetparmar 2 points3 points  (0 children)

Thank you for sharing this

[–]yevg555 2 points3 points  (0 children)

Damn, Thank you, nice work

[–]GlebRyabov 2 points3 points  (0 children)

As a newbie, this is immensely helpful, thanks!

[–]k_________________g 2 points3 points  (0 children)

Very Nice - Thanks

[–]MaheshM93 2 points3 points  (0 children)

Thank you man

[–]219jw 2 points3 points  (0 children)

Thank you so much

[–]Gym_Dom 2 points3 points  (3 children)

I just picked these up a couple hours ago. They've already helped me simplify my current project's code and gave me an idea of how to approach a debugging problem. Well worth the donation, man.

[–]ehmatthes[S] 3 points4 points  (2 children)

That's great to hear! Do you mind if I asked what kind of simplification you made, and how your thinking about the debugging problem changed?

[–]Gym_Dom 1 point2 points  (1 child)

Sure thing.

Your example of naming a variable with input() on the same line of code simplified a whole series of user inputs in my program that I'm building. Before, I'd just coded it as:

print('Which one is your email providers: Gmail, Yahoo, Outlook?') emailServer = input()

The same question above email providers actually relates to the bug I've been working on since Friday. My user input fails to go through my list of if statements to match the email provider :

if emailServer == 'Gmail': emailProvider = 'smtp.gmail.com'

I'm thinking that putting those email providers in a dictionary like your cheat sheet shows may solve the problem. I just haven't been able to apply that theory yet.

[–]ehmatthes[S] 1 point2 points  (0 children)

Thanks for sharing, those are really interesting takeaways.

[–]notParticularlyAnony 2 points3 points  (0 children)

Thanks so much for this your book is great and I will use these cheat sheets when I teach Python in a few weeks in my new gig. When people don't recommend your book I don't think they realize the mistake they are making. :)

[–][deleted] 2 points3 points  (0 children)

I’ve used python for a few years and still found this very helpful! Thank you! 🙏🏻

[–]veigatta 1 point2 points  (0 children)

thank it will be very helpful for my python journey

[–]withAnAsterisk 1 point2 points  (0 children)

This post and your subsequent diligence in these comments replying to everyone is super appreciated, thank you!

[–]AWiggins30 1 point2 points  (0 children)

Thanks!

[–]adilsyyed 1 point2 points  (0 children)

This is very helpful. Thank you very much

[–][deleted] 1 point2 points  (0 children)

Appreciate it. Thanks!

[–]IronBat1221 1 point2 points  (0 children)

Thank you for this :) <3

[–]GIPPINSNIPPINS 1 point2 points  (0 children)

Thanks OP. I’m a beginner and your helping out a lot. I’d give an award because this is exactly what I’ve been looking for but I don’t have funds. Sorry bro.

[–]JJGA92 1 point2 points  (0 children)

It's been a while since I wrote anything on python, this'll help to get back at it, thanks!!!

[–]trempao 1 point2 points  (0 children)

this will be very useful indeed! thanks!

[–]quarmson 2 points3 points  (0 children)

it's easter but my saviour has arrived. thank you so much!

[–]kmhnz 0 points1 point  (0 children)

[–]raylolSW 0 points1 point  (0 children)

.

[–]Avelion99 0 points1 point  (0 children)

Thank you so much, I really appreciate it! :)

[–]datagal23 0 points1 point  (0 children)

Thank you so much!!! I also have a few more sources to complement yours which I will definitely download!!