python_reference/README.md
2014-06-19 00:32:43 -04:00

6.3 KiB
Executable File
Raw Blame History

A collection of useful scripts, tutorials, and other Python-related things






###// Python tips and tutorials

  • A collection of not so obvious Python stuff you should know! [IPython nb]

  • Python's scope resolution for variable names and the LEGB rule [IPython nb]

  • Key differences between Python 2.x and Python 3.x [IPython nb]

  • A thorough guide to SQLite database operations in Python [Markdown]

  • Unit testing in Python - Why we want to make it a habit [Markdown]

  • Installing Scientific Packages for Python3 on MacOS 10.9 Mavericks [Markdown]

  • Sorting CSV files using the Python csv module [IPython nb]

  • Using Cython with and without IPython magic [IPython nb]


###// Python and the web

  • Creating internal links in IPython Notebooks and Markdown docs [IPython nb]

  • Converting Markdown to HTML and adding Python syntax highlighting [Markdown]


###// Algorithms

The algorithms category was moved to a separate GitHub repository rasbt/algorithms_in_ipython_notebooks

  • Sorting Algorithms [IPython nb]

  • Linear regression via the least squares fit method [IPython nb]

  • Dixon's Q test to identify outliers for small sample sizes [IPython nb]

  • Sequential Selection Algorithms [IPython nb]


###// Benchmarks

For more recent benchmarks, please also see my separate
GitHub repository One-Python-benchmark-per-day

  • Python benchmarks via timeit [IPython nb]

  • Least squares fit method for linear regression sped up via Cython [IPython nb]

  • Benchmarks of different palindrome functions [IPython nb]


###// Other

  • Happy Mother's Day [IPython nb]

  • Numeric matrix manipulation - The cheat sheet for MATLAB, Python NumPy, R, and Julia [Markdown]


###// Useful scripts and snippets

  • Shell script for prepending Python-shebangs to .py files.

  • convert 'tab-delimited' to 'comma-separated' CSV files [IPython nb]

  • A random string generator function


###// Links

// News

  • Python subreddit - my favorite resource to catch up with Python news and great Python-related articles

  • Python community on Google+ - a nice and friendly community to share and discuss everything about Python

  • Python Weekly - A free weekly newsletter featuring curated news, articles, new releases, jobs etc. related to Python

// Resources for learning Python

// My favorite Python projects and packages

  • The IPython Notebook - an interactive computational environment for combining code execution, documentation (with Markdown and LateX support), inline plots, and rich media all in one document.

  • SciPy Stack - Python packages (NumPy, pandas, SciPy, IPython, Matplotlib) for scientific computing

  • Cython - C-extensions for Python, an optimizing static compiler to combine Python and C code

  • Numba - an just-in-time specializing compiler which compiles annotated Python and NumPy code to LLVM (through decorators)