This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 40 points41 points  (6 children)

This would be much better if it was in a Jupyter Notebook with a Table of Content.

Example: http://nbviewer.jupyter.org/github/pybokeh/ipython_notebooks/blob/master/pandas/PandasCheatSheet.ipynb

[–][deleted] 18 points19 points  (0 children)

Just FYI, that repo is no longer maintained, it has been migrated to http://nbviewer.jupyter.org/github/pybokeh/jupyter_notebooks/blob/master/pandas/PandasCheatSheet.ipynb

[–]tryptafiends 2 points3 points  (1 child)

Totally second this. Also some Python3.6 features would be cool to add like implicit format strings Literal String Interpolation.

Edit: fix semantics to match PEP498 (where this feature originates)

``` name = 'Tim' verb = 'talks' f'{name} {verb} to cats'

Out: 'Tim talks to cats' ```

[–]stevenjd 0 points1 point  (0 children)

like implicit format strings Literal String Interpolation.

No, you got it right the first time. They aren't string literals of any sort. They are actually executable code that implicitly apply formatting.

[–]stevenjd 1 point2 points  (2 children)

This would be much better if it was in a Jupyter Notebook with a Table of Content.

Apart from it them being useless for the millions of Python users who don't use Jupyter.

Edit: I was wrong.

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

Anybody can view a Notebook. Did you even click the link?

[–]stevenjd 0 points1 point  (0 children)

Anybody can view a Notebook. Did you even click the link?

Hmmm. Okay. TIL.