Currently reading articles under label: Python

Plot in Python, Visualization wtih pyvis

Books & Docs

Seaborn tutorial & gallary

OReilly 2017 - [easy to find common examples] Python Data Science Handbook

Packt 2015 - [nice code grammar] Python Data Visualization Cookbook, 2nd Ed. (Igor Milovanovic)

Packt 2015 - [rich & various content] Mastering Python Data Visualization

P......

Python Code Cookbook

See also:

Learning Python, the Language

Pandas

Get column_nr in pandas/numpy.

if isinstance(X, pd.DataFrame):

X_is_df = True

row_nr = X.shape[0]

column_nr = X.shape[1]

if isinstance(X.columns, pd.core.index.MultiIndex):

df_columns_is_multi_index = True

else:

......

Python Code Reuse

execfile or os.system

execute the other python file in place:

execfile("/path/to/my/lib/mylib.py")

or:

import os

os.system("python /path/to/my/lib/mylib.py")

import

import sys

import os

sys.path.append(os.path.abspath("/path/to/my/lib"))

import mylib

ref

See ot......

Learning Falcon

A great 5-video tutorial: 35minutes on YouTube (6 tomatoes / 2.5 hours for non-stop studing by coding).

Author's Github (py2), My Github (py3).

Differences in my Github code:

py3, not py2

using on_put() to test validity of input json from client

using on_delete() to test params (just to test......

Python the Language (in case of)

Related:

learning Django

py code cookbook/reuse

INSTALL PY3

win

Install py2 first! Install py3 later.

Download and install py3 from the official website.

During installation, make sure to "add to system PATH".

If it is only in user's "Path", we need to also add to sys......

Python the Language (in case of)

Related:

learning Django

py code cookbook/reuse

plot in py w pyvis

INSTALL PY3

win

Install py2 first! Install py3 later.

Download and install py3 from the official website.

During installation, make sure to "add to system PATH".

If it is only in user's "Path", we need......