code: def parse_splits(data, show_progress):
      if show_progress:
          log.info("Parsing split data.")
  
      data["split_ratio"] = 1.0 / data.split_ratio
      data.rename(
          columns={
              "split_ratio": "ratio",
              "date": "effective_date",
          },
          inplace=True,
          copy=False,
      )
      return data
  
imports: from io import BytesIO
  import tarfile
  from zipfile import ZipFile
  from click import progressbar
  from logbook import Logger
  import pandas
  import requests
  from six.moves.urllib.parse import urlencode
  from six import iteritems
  from trading_calendars import register_calendar_alias
  from .None import core
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: parse_splits(data, show_progress) and returns: data