code: def print_round_trip_stats(round_trips, hide_pos=False):
      """Print various round-trip statistics. Tries to pretty-print tables
      with HTML output if run inside IPython NB.
  
      Parameters
      ----------
      round_trips : pd.DataFrame
          DataFrame with one row per round trip trade.
          - See full explanation in round_trips.extract_round_trips
  
      See also
      --------
      round_trips.gen_round_trip_stats
      """
  
      stats = gen_round_trip_stats(round_trips)
  
      print_table(
          stats["summary"],
          float_format="{:.2f}".format,
          name="Summary stats",
      )
      print_table(
          stats["pnl"], float_format="${:.2f}".format, name="PnL stats"
      )
      print_table(
          stats["duration"],
          float_format="{:.2f}".format,
          name="Duration stats",
      )
      print_table(
          stats["returns"] * 100,
          float_format="{:.2f}%".format,
          name="Return stats",
      )
  
      if not hide_pos:
          stats["symbols"].columns = stats["symbols"].columns.map(
              format_asset
          )
          print_table(
              stats["symbols"] * 100,
              float_format="{:.2f}%".format,
              name="Symbol stats",
          )
  
file_path: pyfolio/pyfolio/round_trips.py
imports: from __future__ import division
  from math import copysign
  import warnings
  from collections import deque, OrderedDict
  import pandas
  import numpy
  from .utils import print_table, format_asset
label_desc: Use image node_id 7 for calling a global function with example usage: print_round_trip_stats(round_trips, hide_pos) without return types