Basic Python for Data
- Python for Beginners
- Pandas 1, Pandas 2, Pandas Advance
- Numpy 1, Numpy 2
- ScipPy
- Matplotlib
- Bokeh
- Scikit-Learn
- PySpark
- Keras
- Install Miniconda
- Install Jupyter in Anaconda Prompt CMD :
pip install jupyter- Create Python/R Kernel with essentials package
conda create -n myenv python=3.12conda create -n myenv r r-essentials - Activate/Deactivate Kernel
conda activate myenvconda deactivate- Install Module/packages within activated kernel
conda install openpyxl sqlalchemy pyodbc pyhive opencv numpy scipy sympy pandas matplotlib requests lxml patsy scikit-learn xlrd requests BeautifulSoup4 bokehconda install r-irkernel- Install Jupyter Notebook within activated kernel
conda install jupyter- Remove Env
conda remove --name myenv --all- Add Env into Kernal in Jupyter Notbook
activate myenv
pip install ipykernel
python -m ipykernel install --user --name myenv --display-name "Python (whatever you want to call it)"- Remove Kernal in Jupyter Notebook
jupyter kernelspec list
jupyter kernelspec remove <kernel_name>- More Info Conda info / Conda Chat Sheet
- Go to Sublime Text : Tools -> Build System -> New Build System
- Paste code as below:
{
"cmd": ["python3", "-i", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}(if want to use conda env use below code instead)
{
"cmd": ["C:\\Users\\sschen\\.conda\\envs\\myenv\\python.exe", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}- Save it with a meaningful name like: Python3.sublime-build
- Go to Sublime Text : Tools -> Build system -> and check Python3
- Paste code below and save as python file:
import sys
print(sys.version)- Test if executable press : Ctrl + b
- Go to Sublime Text : Preference -> Key Bindings-User
- Paste code as below:
{"keys": ["ctrl+shift+c"], "command": "exec", "args": {"kill": true} } - Save it
- Test if executable press : Ctrl + Shift + c
- Select whole line : Ctrl + l
- Push forward/back : Ctrl+ [ / Ctrl + ]
- Edit all keyword : select one of your word then Alt + F3
- Edit part of keyword : select one of your word then **Ctrl + d **
- Delete one line : Ctrl + x
- Add one line above/below : Ctrl + Shift + Enter / Ctrl + Enter
python2 -m pip install ModuleName1 ModuleName2 ...python3 -m pip install ModuleName1 ModuleName2 ...OR
python3 -m pip --proxy http://XX.X.XX.XX:8080 install ModuleName1 ModuleName2The Env path should be at the path you did cmd in defult
python -m venv EnvNameEnvName\Scripts\activatedeactivate