ranaroussi / quantstats

Missing module/function docstring PY-D0003
Documentation
Minor
6 occurrences in this check
Docstring missing for _count
312def _count_consecutive(data):
313    """Counts consecutive data (like cumsum() with reset on zeroes)"""
314
315    def _count(data):316        return data * (data.groupby((data != data.shift(1)).cumsum()).cumcount() + 1)
317
318    if isinstance(data, _pd.DataFrame):
Docstring missing for download_returns
230    return data
231
232
233def download_returns(ticker, period="max", proxy=None):234    params = {
235        "tickers": ticker,
236        "proxy": proxy,
Docstring missing for _pandas_current_month
 48    return df[df.index.isin(dates)]
 49
 50
 51def _pandas_current_month(df): 52    n = _dt.datetime.now()
 53    daterange = _pd.date_range(_dt.date(n.year, n.month, 1), n)
 54    return df[df.index.isin(daterange)]
Docstring missing for _pandas_date
 42    return df[df.index >= _dt.datetime.now().strftime("%Y-01-01")]
 43
 44
 45def _pandas_date(df, dates): 46    if not isinstance(dates, list):
 47        dates = [dates]
 48    return df[df.index.isin(dates)]
Docstring missing for _ytd
 38    return df[df.index >= date.strftime("%Y-%m-01")]
 39
 40
 41def _ytd(df): 42    return df[df.index >= _dt.datetime.now().strftime("%Y-01-01")]
 43
 44
Docstring missing for _mtd
 26import inspect
 27
 28
 29def _mtd(df): 30    return df[df.index >= _dt.datetime.now().strftime("%Y-%m-01")]
 31
 32