class_docstr: Cartesian coordinate system
  
  Parameters
  ----------
  xlim : tuple[float, float], default=None
      Limits for x axis. If None, then they are automatically computed.
  ylim : tuple[float, float], default=None
      Limits for y axis. If None, then they are automatically computed.
  expand : bool, default=True
      If `True`, expand the coordinate axes by some factor. If `False`,
      use the limits from the data.
class_docstr_tok: ["Cartesian","coordinate","system","Parameters","--","--","--","--","--","xlim",":","tuple","[","float",",","float","]",",","default=None","Limits","for","x","axis",".","If","None",",","then","they","are","automatically","computed",".","ylim",":","tuple","[","float",",","float","]",",","default=None","Limits","for","y","axis",".","If","None",",","then","they","are","automatically","computed",".","expand",":","bool",",","default=True","If","`","True","`",",","expand","the","coordinate","axes","by","some","factor",".","If","`","False","`",",","use","the","limits","from","the","data","."]
code: def transform(
      self,
      data: pd.DataFrame,
      panel_params: panel_view,
      munch: bool = False,
  ) -> pd.DataFrame:
      from mizani.bounds import squish_infinite
  
      def squish_infinite_x(col):
          return squish_infinite(col, range=panel_params.x.range)
  
      def squish_infinite_y(col):
          return squish_infinite(col, range=panel_params.y.range)
  
      return transform_position(
          data, squish_infinite_x, squish_infinite_y
      )
  
file_path: plotnine/plotnine/coords/coord_cartesian.py
imports: from __future__ import annotations
  import typing
  from types import SimpleNamespace
  from ..iapi import panel_view
  from ..positions.position import transform_position
  from .coord import coord, dist_euclidean
label_desc: Use image node_id 2 for calling the coord_cartesian obj's underlying member method code with example usage: obj.transform(data, panel_params, munch) and returns: transform_position, squish_infinite, squish_infinite