class_docstr: Base class of all Geoms
class_docstr_tok: ["Base","class","of","all","Geoms"]
docstr: Remove rows with NaN values
  
  geoms that infer extra information from missing values
  should override this method. For example
  [](`~plotnine.geoms.geom_path`).
  
  Parameters
  ----------
  data :
      Data
  
  Returns
  -------
  :
      Data without the NaNs.
  
  Notes
  -----
  Shows a warning if the any rows are removed and the
  `na_rm` parameter is False. It only takes into account
  the columns of the required aesthetics.
docstr_tok: ["Remove","rows","with","NaN","values","geoms","that","infer","extra","information","from","missing","values","should","override","this","method",".","For","example","[","]","(","`","~plotnine.geoms.geom_path","`",")",".","Parameters","--","--","--","--","--","data",":","Data","Returns","--","--","--","-",":","Data","without","the","NaNs",".","Notes","--","--","-","Shows","a","warning","if","the","any","rows","are","removed","and","the","`","na_rm","`","parameter","is","False",".","It","only","takes","into","account","the","columns","of","the","required","aesthetics","."]
code: def handle_na(self, data: pd.DataFrame) -> pd.DataFrame:
      """
      Remove rows with NaN values
  
      geoms that infer extra information from missing values
      should override this method. For example
      [](`~plotnine.geoms.geom_path`).
  
      Parameters
      ----------
      data :
          Data
  
      Returns
      -------
      :
          Data without the NaNs.
  
      Notes
      -----
      Shows a warning if the any rows are removed and the
      `na_rm` parameter is False. It only takes into account
      the columns of the required aesthetics.
      """
      return remove_missing(
          data,
          self.params["na_rm"],
          list(self.REQUIRED_AES | self.NON_MISSING_AES),
          self.__class__.__name__,
      )
  
imports: from __future__ import annotations
  import typing
  from abc import ABC
  from copy import deepcopy
  from itertools import chain, repeat
  from .._utils import copy_keys, data_mapping_as_kwargs, is_list_like, remove_missing
  from .._utils.registry import Register, Registry
  from ..exceptions import PlotnineError
  from ..layer import layer
  from ..mapping.aes import is_valid_aesthetic, rename_aesthetics
  from ..mapping.evaluation import evaluate
  from ..positions.position import position
  from ..stats.stat import stat
label_desc: Use image node_id 14 for calling the geom obj's underlying member method code with example usage: obj.handle_na(data) and returns: remove_missing