Skip to content

steincastillo/python-reference

 
 

Repository files navigation

Python Quick Reference

This is the reference guide to Python that I wish had existed when I was learning the language.

Here's what I want in a reference guide:

  • High-quality examples that show the simplest possible usage of a given feature
  • Explanatory comments, and descriptive variable names that eliminate the need for some comments
  • Presented as a single script, so that I can keep it open and search it when needed
  • Code that can be run from top to bottom, with the relevant objects defined nearby

This is not written as a full-fledged Python tutorial, though the topics are ordered in a way that you can read it like a tutorial (i.e., each topic depends only on material preceding it).

The guide was written using Python 3.

Table of Contents

  1. Imports
  2. Data Types
  3. Math
  4. Comparisons and Boolean Operations
  5. Conditional Statements
  6. Lists
  7. Tuples
  8. Strings
  9. Dictionaries
  10. Sets
  11. Defining Functions
  12. Anonymous (Lambda) Functions
  13. For Loops and While Loops
  14. Comprehensions
  15. Map and Filter
  16. Collections
  17. Classes and Objects
  1. NUMPY
  2. SCIPY
  3. PANDAS
  4. RE (Regular Expressions)
  5. SQLITE

Natural Language Processing (NLP) NLP script

  1. Library imports
  2. Book corpora
  3. Wordnet
  4. NLTK functions
  5. Tokenization
  6. Stemming
  7. Lemmatization
  8. POS taggin
  9. Chunking
  10. Frequency distribution1
  11. Latent semantic analysis (LSA)
  12. Sentiment analysis

Other Python Resources

If you like the general format of this guide, but need more explanation of each topic, I highly recommend reading the Appendix of Python for Data Analysis. It presents the essentials of the Python language in a clear and focused manner.

If you are looking for a resource that will help you to learn Python from scratch, this is my list of recommended resources.

Suggestions or Corrections

If there's a topic or example you'd like me to add to this guide, or you notice a mistake, please create a GitHub issue.

Thank you!

Additional Credits

forked from: https://github.com/justmarkham/python-reference
By Kevin Markham (kevin@dataschool.io)
http://www.dataschool.io

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 59.8%
  • Python 40.2%