code: def remove_ticks(ax, x=False, y=False):
      
      if x:
          ax.xaxis.set_ticks_position("none")
      if y:
          ax.yaxis.set_ticks_position("none")
      return ax
docs: Remove ticks from axis.
  
      Parameters:
        ax: axes to work on
        x: if True, remove xticks. Default False.
        y: if True, remove yticks. Default False.
  
      Examples:
      removeticks(ax, x=True)
      removeticks(ax, x=True, y=True)