- Python is widely used in different areas: Data Analysis, Web Application, Test API development
- Summary the python skills and projects according to the daily usage
- Python 3.6 or above https://www.python.org/downloads/
- Anaconda
- Iterative: For, While,etc., advanced usage: List comprehension
- Slicing:
- Re: Regular Expression, dealing with the text or words, normally filter, substitute,
- Functions:
- Decorators:
- sys,os: see my os_sys_usage.py
- file read, write:
- data: csv, json
- Numpy, Pandas, Matplotlib, re(Regular Expression)
- Jupyter Notebook: for data analysis, jupyter notebook is better than the IDE - Anaconda
- Get the data
- Web Scrapy (Terminal Project, BeautifulSoup Request)
- Supplied by the consumer, or some data websites like Kraggle
- Analyse the data
- Import the data (Directly import, DataBase like MongoDB, MySQL)
- Data Clean and Preprocessing (Dealing with the missing value, Wrangling)
- Data Visualization (Matplotlib, Pyecharts)
- Model fitting, Testing and Validation
- Linear Regression,
- Douban Movie Top250
- Amazon Food comments Analysis
Build a blog website with Python Django
Personal blog website based on Django-Framwork (Web_Development)
- Added Markdown Editor at the Backend and Frontend
- Added table of content for the post detail site
- Added Lasted Posted, Archives, Category, and Tags features at the Sidebar
- Git (optional)
- virtualenv (pip install virtualenv)
- Python
-
Firstly, clone the repository using the git shell
-
Go to the base directory of the project
cd Web_Development -
Create a virtual environment and activate it.
$ virtualenv venv
Windows:$ venv\Scripts\activate
Linux/Mac:$ source venv/bin/activate -
Install the requirements for the project
$ pip install -r requirements.txt
This step will help you install the required apps/modules on your local machine automatically. That's also why we would create a requirements.txt for the project. Similarly you can use it when you deploy your project on a linux server -
Finally start the localhost server
$ python manage.py runserver
You can see built blog website on your localhost:8000
Normally when we talk about API, it refers to the REST API.
REST: Representational State Transfer
class: like java, class in python also has inheritance propertity