docstr: Returns a resampled DataFrame
  
  Parameters
  ----------
          rule : str
                  the offset string or object representing target conversion
                  for all aliases available see http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases
          how : str or dict
                  states the form in which the resampling will be done.
                  Examples:
                          how={'volume':'sum'}
                          how='count'
          df : DataFrame
                  If omitted then the QuantFigure.DataFrame is resampled.
          kwargs
                  For more information see http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.resample.html
docstr_tok: ["Returns","a","resampled","DataFrame","Parameters","--","--","--","--","--","rule",":","str","the","offset","string","or","object","representing","target","conversion","for","all","aliases","available","see","http",":","\/\/pandas.pydata.org\/pandas-docs\/stable\/timeseries.html","#","offset-aliases","how",":","str","or","dict","states","the","form","in","which","the","resampling","will","be","done",".","Examples",":","how=","{","'volume","'",":","'sum","'","}","how='count'","df",":","DataFrame","If","omitted","then","the","QuantFigure.DataFrame","is","resampled",".","kwargs","For","more","information","see","http",":","\/\/pandas.pydata.org\/pandas-docs\/stable\/generated\/pandas.DataFrame.resample.html"]
code: def _get_resampled(
      self,
      rule,
      how={"ohlc": "last", "volume": "sum"},
      df=None,
      **kwargs,
  ):
      """
      Returns a resampled DataFrame
  
      Parameters
      ----------
              rule : str
                      the offset string or object representing target conversion
                      for all aliases available see http://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases
              how : str or dict
                      states the form in which the resampling will be done.
                      Examples:
                              how={'volume':'sum'}
                              how='count'
              df : DataFrame
                      If omitted then the QuantFigure.DataFrame is resampled.
              kwargs
                      For more information see http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.resample.html
  
      """
      df = self.df.copy() if df is None else df
      if rule == None:
          return df
      else:
          if isinstance(how, dict):
              if "ohlc" in how:
                  v = how.pop("ohlc")
                  for _ in ["open", "high", "low", "close"]:
                      how[_] = v
              _how = how.copy()
              for _ in _how:
                  if _ not in self._d:
                      del how[_]
          return df.resample(rule=rule, **kwargs).apply(how)
  
imports: from __future__ import absolute_import
  import plotly.graph_objs
  import json
  import copy
  import pandas
  from .plotlytools import iplot
  from .None import tools
  from .None import ta
  from .None import utils
  from .None import colors
  from .None import auth
  from .None import date_tools
label_desc: Use image node_id 4 for calling the QuantFig obj's underlying member method code with example usage: obj._get_resampled(rule, how, df) and returns: df, df