pleasepoint_py.fileManager

class fileManager:
def list_files(self, path: str = '') -> list[str]:

List files in the chosen path

def get_dataframe_from_csv( self, path: str, delimiter: str = ';', **pdargs) -> pandas.core.frame.DataFrame | None:

Get a pandas DataFrame from a CSV file

Parameters
  • path:
  • delimiter:
Returns

pandas.DataFrame | None

def get_dataframe_from_xml(self, path: str, **pdargs) -> pandas.core.frame.DataFrame | None:

Get a pandas DataFrame from an XML file

Parameters
  • path:
Returns

pandas.DataFrame | None

def get_dataframe_from_folder( self, folder: str, filename_filter=None, delimiter: str = ';', **pdargs) -> pandas.core.frame.DataFrame | None:

Get a pandas DataFrame from a folder containing CSV or XML files

Parameters
  • folder:
  • delimiter:
  • filename_filter:
Returns

pandas.DataFrame | None

def write_csv_from_dataframe( self, path: str, dataframe: pandas.core.frame.DataFrame, delimiter: str = ';'):

Write a pandas DataFrame to a CSV file

Parameters
  • path:
  • dataframe:
  • delimiter: