/python-tutorials

Primary LanguageJupyter Notebook

Python Tutorials

python-logo

Why Python?

Life is too short, use Python

  • Simple, elegant and easy to pick up.
  • Popular in data science.
  • Good script language for automation.
  • Web development, e.g., Pinkoi, Instagram and Pinterest.
  • Cons: Speed can be an issue.
  • Python v.s. R
    • R is good at statistics and visualizations.
    • Python could do more than data analysis.

Python 2 v.s. Python 3

  • Use Python 3 😎
  • Python 2 won't be supported by 2020 !

Environment Setup

Environment Setup

Table of contents

  1. Python Brief Introduction
    1.1 Numbers
    1.2 Variables
    1.3 Strings
    1.4 List
  2. Control Flow and Functions
    2.1 Boolean Condition
    2.2 if Statements
    2.3 Loop: while Statements
    2.4 Loop: for Statements
    2.5 range() function
    2.6 break and continue
    2.7 functions
  3. Data Structures
    3.1 More on Lists
    3.2 Sets
    3.3 Tuples
    3.4 Dictionaries
    3.5 Looping Techniques
  4. Input and Output
    4.1 Output Formatting
    4.2 Reading and Writing Files
    4.3 Regular Expressions
  5. Introduction of Pandas
    5.1 Dataframe creation and data selection
    5.2 Create dataframes from csv
    5.3 Basic Statistics Analysis
    5.4 Ploting
    5.5 Finance Example

Reference