parameters: (self)
return_statement: return df.to_dict(orient="index")
docstring: Adjust Data Frame to fit xml output.
  
          This method will adjust underlying data frame for xml output,
          including optionally replacing missing values and including indexes.
docstring_summary: Adjust Data Frame to fit xml output.
docstring_tokens: Adjust Data Frame to fit xml output .
function: def process_dataframe(self) -> dict[int | str, dict[str, Any]]:
          """
          Adjust Data Frame to fit xml output.
  
          This method will adjust underlying data frame for xml output,
          including optionally replacing missing values and including indexes.
          """
  
          df = self.frame
  
          if self.index:
              df = df.reset_index()
  
          if self.na_rep:
              df = df.replace({None: self.na_rep, float("nan"): self.na_rep})
  
          return df.to_dict(orient="index")
function_tokens: def process_dataframe ( self ) -> dict [ int | str , dict [ str , Any ] ] : df = self . frame if self . index : df = df . reset_index ( ) if self . na_rep : df = df . replace ( { None : self . na_rep , float ( "nan" ) : self . na_rep } ) return df . to_dict ( orient = "index" )