- Python code should follow the PEP 8 Style Guide.
- Python docstrings should follow the NumPy documentation format.
Imports should be one per line.
Imports should be grouped into standard library, third-party,
and intra-library imports. from
import should follow "regular" imports
.
Within each group the imports should be alphabetized.
Here's an example:
import sys
from glob import glob
import numpy as np
import package.module as module
from package.othermod import useful_func
Imports of scientific Python libraries should follow these conventions:
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scipy as sp
Thanks!