| |
- compare_data_frames(df1: pandas.core.frame.DataFrame, df2: pandas.core.frame.DataFrame)
- Compares two pandas data frames. Returns true if they are equal. False if they are not equal
:param: df1 - First data frame to compare.
:param: df2 - The data frame being compared against df1.
:return: True if data frames are equal, false if not.
- create_df_with_new_grouped_column(df: pandas.core.frame.DataFrame, col_header_list, delimiter: str)
- Returns a new data frame with a combined column. Combined column contains the data from columns in "col_header_list" appended together with "delimiter" in between the appended data
:param: df - The data frame to process.
:param: col_header_list - The list of columns to be appended together.
:param: delimiter - The delimiting string to be used when appending the columns and data together.
:return: A data frame with a new grouped column made.
- filter_df(df, column_to_filter, groups_to_remove)
- Retuns a filtered copy of dataframe "df." Rows that have a value in the "groups_to_remove array" in the column "column_to_filter" are removed.
:param: df - The data frame that will have a filtered copy of itself returned.
:param: column_to_filter - The name of the column in the data frame to be filtered.
:param: A list of the groups to remove from column column_to_filter.
:return: A data frame with values filtered out as specified by the parameters.
- filter_min_max_df(df: pandas.core.frame.DataFrame, figure_dict: dict)
- filter_using_filter_dict(df, filter_dict: dict)
- Returns a filtered copy of dataframe "df." Each key in "filter_dict" is a column to filter and the value for that key is an array containing the values to filter from that column
:param: df - The data frame that will have a filtered version of itself returned.
:param: filter_dict - A dictionary with column names as keys and arrays containing the values to be filtered from a column as values.
:return: A data frame with values filtered out as specified by the filter_dict.
- get_group_columns(df: pandas.core.frame.DataFrame)
- Returns a list of columns that likely contain group data
:param: df - The data frame to process.
:return: List containing columns that likely contain group data.
- get_group_filtering_dict(df: pandas.core.frame.DataFrame)
- Returns a dictionary that maps a column name to an array containing it's unique values
:param: df - The data frame to process.
:return: A dictionary mapping column names to a list containing all of the unique values in the column.
- get_non_group_columns_list(df: pandas.core.frame.DataFrame)
- Returns a list of columns that do not likely contain group data.
:param: df - The data frame to process.
:return: List containing columns that do not likely contain group data.
- get_sem_df_for_groups_in_column(df: pandas.core.frame.DataFrame, group_list)
- Returns grouped data frame for the groups in the column.
:param: df - The data frame to process.
:param: group_list - The list of groups columns that will have the standard error of mean calculated for
:return: A dataframe containing standard error of mean info.
- read_data_frame_from_pickle(file_path: str)
- Returns a data frame read from a pickle file at path file_path
:param: file_path - The file path to the pickled data frame.
:return: The data frame stored in the pickle file.
- write_data_frame_to_pickle(df: pandas.core.frame.DataFrame, file_path: str)
- Writes dataframe df to a pickle at file path file_path
:param: df - The data frame to process.
:param: file_path - The file path to which the data frame will be written to as a pickle.
|