def _maybe_get_pandas_wrapper(X, trim_head=None, trim_tail=None):
 if _is_using_pandas(X, None):
  return _get_pandas_wrapper(X, trim_head, trim_tail)
 else:
  return

def _maybe_get_pandas_wrapper ( X , trim_head = None , trim_tail = None ) : if _is_using_pandas ( X , None ) : return _get_pandas_wrapper ( X , trim_head , trim_tail ) else : return
if using pandas returns a function to wrap the results .