From 07f9715e223029bcd735f975e262773fbae41c3b Mon Sep 17 00:00:00 2001 From: Jan Pecinovsky Date: Mon, 23 Apr 2018 21:20:06 +0200 Subject: [PATCH] pep8 and docstrings --- opengrid/library/analysis.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opengrid/library/analysis.py b/opengrid/library/analysis.py index bb4b98b..ff2dadb 100644 --- a/opengrid/library/analysis.py +++ b/opengrid/library/analysis.py @@ -113,7 +113,7 @@ def load_factor(ts, resolution=None, norm=None): Parameters ---------- - ts : Pandas Series + ts : pandas.Series timeseries resolution : str, optional interval over which to calculate the ratio @@ -124,7 +124,7 @@ def load_factor(ts, resolution=None, norm=None): Returns ------- - Pandas Series + pandas.Series """ if norm is None: norm = ts.max() @@ -132,6 +132,6 @@ def load_factor(ts, resolution=None, norm=None): if resolution is not None: ts = ts.resample(rule=resolution).mean() - lf = ts/norm + lf = ts / norm return lf