original_docstring: Computes rolling std of given values, using a window of size `window`.
docstring: Computes rolling std of given values, using a window of size `window`.
docstring_tokens: Computes rolling std of given values using a window of size ` window ` .
code: def rolling_std(values, window=21):
      'Computes rolling std of given values, using a window of size `window`.'
  
      if isinstance(values, pd.Series) or isinstance(values, pd.DataFrame):
          return values.rolling(window=window, center=False).std()
  
      return pd.rolling_std(values, window=window)
code_tokens: def rolling_std ( values , window = 21 ) : if isinstance ( values , pd . Series ) or isinstance ( values , pd . DataFrame ) : return values . rolling ( window = window , center = False ) . std ( ) return pd . rolling_std ( values , window = window )
short_docstring: Computes rolling std of given values, using a window of size `window`.
short_docstring_tokens: Computes rolling std of given values using a window of size ` window ` .
comment: 'Computes rolling std of given values, using a window of size `window`.'