Cro3SwI2mer / Bradford-Research-Project

Research project carried in Advanced Automotive Analytics center in University of Bradford
0 stars 0 forks source link

PEP 8 -- Style Guide for Python Code support #3

Open oogl opened 3 years ago

oogl commented 3 years ago

Python Style Guide is helpful to keep the code clean and readable. It is especially important for team projects, if there were not any other agreements on code style (given by company or taken a ready-made solution).

Each topic contains more than descriptive examples. E.g., based on information from Imports section these lines will change from

import pandas as pd
from package import preprocessor, numerical, graph

# insert your code...

to

import pandas as pd

from package import preprocessor, numerical, graph

# insert your code...

and so on.

oogl commented 3 years ago

UPD: there are a lot of cases when PEP8 makes the code way more readable. It is very important to know and follow it. But there are also things beyond PEP8, which I haven't covered for your solution.