nathanielng / python-snippets

Snippets of Python code

Home Page:https://nathanielng.github.io/python-snippets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Background

This is repository serves as a quick-reference of Python code snippets that are expected to be frequently-used. While many equivalent snippets could be easily found via Google, Stack Overflow, or a Python library documentation, these snippets have been written in a preferred coding style and some of them are designed to work together. Also, a handful of unit tests have been included for code snippets, which typically are not available in many references on the internet.

The other purpose of this repository is that in the process of trying to learn just a little bit of code every day (even if it is only a single line of code), this respository will serve as one of the places to put that code.

Current Scope

  • Python 3
  • Cloud - APIs, Webscraping
  • Computer Vision - Pillow, Scikit Image, OpenCV
  • Databases - PostgreSQL (psycopg2, asyncpg), SQLite
  • Finance - Pandas Datareader, Yahoo finance
  • Machine Learning - Sklearn, Keras, Autosklearn, Hyperopt
  • Other Utilities
  • Plotting and Visualization - Matplotlib, Seaborn, Bokeh, Graphviz, Drawille
  • Remote - Remote Storage (Dropbox, Google Drive / Google Sheets) and Remote Servers (AWS, SSH, PBS)
  • Tables - Pandas tables, Tabulapy, Pandas to Excel conversion

Miscellaneous Notes, Links and Code Snippets

  • Apps to write Python code on mobile devices
  • Bash & Command Line Tools
  • Git introduction & guide
  • GNU Parallel - guide to a tool for running independent scripts concurrently, leveraging on multi-core processors
  • Monitoring - tools for profiling Python code
  • Python - general Python tips
  • Search tips to search for files and patterns in files

License

  • Code: MIT License
  • Content: CC BY 4.0 CC BY 4.0

View this repository's Jupyter Notebooks in Colab [docs]

Open In Colab

Open In SageMaker Studio Lab

About

Snippets of Python code

https://nathanielng.github.io/python-snippets

License:MIT License


Languages

Language:HTML 68.0%Language:Jupyter Notebook 27.5%Language:Python 4.4%Language:Shell 0.1%Language:C 0.0%