class_docstr: This analyzer uses 4 children analyzers to collect data and transforms it
  in to a data set compatible with ``pyfolio``
  
  Children Analyzer
  
    - ``TimeReturn``
  
      Used to calculate the returns of the global portfolio value
  
    - ``PositionsValue``
  
      Used to calculate the value of the positions per data. It sets the
      ``headers`` and ``cash`` parameters to ``True``
  
    - ``Transactions``
  
      Used to record each transaction on a data (size, price, value). Sets
      the ``headers`` parameter to ``True``
  
    - ``GrossLeverage``
  
      Keeps track of the gross leverage (how much the strategy is invested)
  
  Params:
    These are passed transparently to the children
  
    - timeframe (default: ``bt.TimeFrame.Days``)
  
      If ``None`` then the timeframe of the 1st data of the system will be
      used
  
    - compression (default: `1``)
  
      If ``None`` then the compression of the 1st data of the system will be
      used
  
  Both ``timeframe`` and ``compression`` are set following the default
  behavior of ``pyfolio`` which is working with *daily* data and upsample it
  to obtaine values like yearly returns.
  
  Methods:
  
    - get_analysis
  
      Returns a dictionary with returns as values and the datetime points for
      each return as keys
code: def stop(self):
      super(PyFolio, self).stop()
      self.rets["returns"] = self._returns.get_analysis()
      self.rets["positions"] = self._positions.get_analysis()
      self.rets["transactions"] = self._transactions.get_analysis()
      self.rets["gross_lev"] = self._gross_lev.get_analysis()
  
file_path: backtrader/backtrader/analyzers/pyfolio.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import collections
  import backtrader
  from backtrader.utils.py3 import items, iteritems
  from .None import TimeReturn, PositionsValue, Transactions, GrossLeverage
label_desc: Use image node_id 2 for calling the PyFolio obj's underlying member method code with example usage: obj.stop() without return types