Skip to content

Commit

Permalink
updated doc and README
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwan Debbiche (Macbook Pro) committed Oct 20, 2020
1 parent 746d2b4 commit 2211ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@
[![PyPI - Downloads](https://img.shields.io/pypi/dm/tsgen?label=pypi%20downloads)](https://pypi.org/project/tsgen/)
![License](https://img.shields.io/github/license/MarwanDebbiche/tsgen)

tsgen (for Time Series Generator) is a package developed for educational purposes that helps create unidimensional time series of different shapes.
tsgen (for Time Series Generator) is a package developed [for educational purposes](https://medium.com/@marwan.debbiche/a-modern-set-up-for-python-package-development-f60b27a26bd7) that helps create unidimensional time series of different shapes.

## Installation

Expand Down
4 changes: 1 addition & 3 deletions tsgen/time_serie.py
Expand Up @@ -29,7 +29,6 @@ class TimeSerie:
... index=index,
... y_values=np.linspace(1, 1, len(index))
... )
>>> ts
y_values
2020-01-31 0.000000
Expand All @@ -44,7 +43,6 @@ class TimeSerie:
2020-10-31 0.818182
2020-11-30 0.909091
2020-12-31 1.000000
>>> ts + 3 - ts
y_values
2020-01-31 3.0
Expand Down Expand Up @@ -89,7 +87,7 @@ def plot(self):
`pd.Series.plot function
<https://pandas.pydata.org/docs/reference/api/pandas.Series.plot.html>`_.
"""
return self.to_frame().y_values.plot()
return self.to_series().plot()

def __len__(self) -> int:
return len(self.index)
Expand Down

0 comments on commit 2211ee1

Please sign in to comment.