About This Book

Motivation

This is a a python cookbook, serving as a quick reference to python and its popular library. The content covers python fundamentals, data manipulation, plotting, machine learning and sentiment analysis.

The main motivation of the book is for my personal reference. Therefore, it is written in a manner according to my thinking process. If you are like me who work on python as part-time basis, this book may help you refresh your memories quickly.

Building The Book

Although this book is written for python code, it was contructed sing Bookdown (R Language). This is made possible with reticulate R library for integrating Python in R.

All content pages of the book are written as RMarkdown files, rendered by Bookdown to BS4 (bootstrap 4, with 3 columns layout) output format. Renders output goes into “/doc” folder, which was uploaded to github. **/doc** folder in Github served as Github Pages, which you are reading right now.

Ingridients

Here are the key ingredients used to build this book.

Environment

The book is build on below Python environment:

  • Anaconda with “base” environment
  • Python 3.9.13
  • pandas (1.4.4)
  • numpy (1.23.4)
  • scipy (1.9.3)
  • scikit-learn (1.1.3)
  • seaborn (0.12.1)
  • matplotlib (3.6.2)
  • plotnine (0.10.1)
  • nltk (3.7)
  • statsmodel (0.13.2)
  • bs4 (4.11.1)