ResSimpy.Nexus.nexus_file_operations.read_table_to_df

ResSimpy.Nexus.nexus_file_operations.read_table_to_df(file_as_list: list[str], keep_comments: bool = False, noheader: bool = False) pandas.DataFrame[source]

From a list of strings that represents a table, generate a Pandas dataframe representation of the table.

Parameters:
  • file_as_list (list[str]) – List of strings representing a single table to be read

  • keep_comments (bool) – Boolean to determine if we keep comments as a separate column or not

  • noheader (bool) – Boolean signaling if the input has a header or not

Returns:

pd.DataFrame – Created Pandas DataFrame representation of table to be read