neuralib.util.verbose.printdf

neuralib.util.verbose.printdf(df, nrows=None, ncols=None, do_print=True, **kwargs)[source]

print dataframe with given row numbers (polars) if isinstance pandas dataframe, print all.

Parameters:
  • df (DataFrame | DataFrame) – polars or pandas dataframe

  • nrows (int | None) – number of rows (applicable in polars case)

  • ncols (int | None) – number of columns

  • do_print (bool) – do print otherwise, only return the str

  • kwargs – additional arguments pass the pl.Config()

Returns:

Return type:

str