def get_xy_dataset_statistics_pandas(dataframe, x_series, y_series, fcorrect_x_cutoff = 1.0, fcorrect_y_cutoff = 1.0, x_fuzzy_range = 0.1, y_scalar = 1.0, ignore_null_values = False,
                                    bootstrap_data = False,
                                    expect_negative_correlation = False, STDev_cutoff = 1.0,
                                    run_standardized_analysis = True,
                                    check_multiple_analysis_for_consistency = True):
    '''
    A version of _get_xy_dataset_statistics which accepts a pandas dataframe rather than X- and Y-value lists.
    :param dataframe: A pandas dataframe
    :param x_series: The column name of the X-axis series
    :param y_series: The column name of the Y-axis series
    :param fcorrect_x_cutoff: The X-axis cutoff value for the fraction correct metric.
    :param fcorrect_y_cutoff: The Y-axis cutoff value for the fraction correct metric.
    :param x_fuzzy_range: The X-axis fuzzy range value for the fuzzy fraction correct metric.
    :param y_scalar: The Y-axis scalar multiplier for the fuzzy fraction correct metric (used to calculate y_cutoff and y_fuzzy_range in that metric)
    :return: A table of statistics.
    '''

    x_values = dataframe[x_series].tolist()
    y_values = dataframe[y_series].tolist()
    return _get_xy_dataset_statistics(x_values, y_values,
                                      fcorrect_x_cutoff = fcorrect_x_cutoff, fcorrect_y_cutoff = fcorrect_y_cutoff, x_fuzzy_range = x_fuzzy_range,
                                      y_scalar = y_scalar, ignore_null_values = ignore_null_values,
                                      bootstrap_data = bootstrap_data,
                                      expect_negative_correlation = expect_negative_correlation,
                                      STDev_cutoff = STDev_cutoff,
                                      run_standardized_analysis = run_standardized_analysis,
                                      check_multiple_analysis_for_consistency = check_multiple_analysis_for_consistency)
def get_xy_dataset_statistics_pandas ( dataframe , x_series , y_series , fcorrect_x_cutoff = 1.0 , fcorrect_y_cutoff = 1.0 , x_fuzzy_range = 0.1 , y_scalar = 1.0 , ignore_null_values = False , bootstrap_data = False , expect_negative_correlation = False , STDev_cutoff = 1.0 , run_standardized_analysis = True , check_multiple_analysis_for_consistency = True ) : x_values = dataframe [ x_series ] . tolist ( ) y_values = dataframe [ y_series ] . tolist ( ) return _get_xy_dataset_statistics ( x_values , y_values , fcorrect_x_cutoff = fcorrect_x_cutoff , fcorrect_y_cutoff = fcorrect_y_cutoff , x_fuzzy_range = x_fuzzy_range , y_scalar = y_scalar , ignore_null_values = ignore_null_values , bootstrap_data = bootstrap_data , expect_negative_correlation = expect_negative_correlation , STDev_cutoff = STDev_cutoff , run_standardized_analysis = run_standardized_analysis , check_multiple_analysis_for_consistency = check_multiple_analysis_for_consistency )
A version of _get_xy_dataset_statistics which accepts a pandas dataframe rather than X- and Y-value lists.
    :param dataframe: A pandas dataframe
    :param x_series: The column name of the X-axis series
    :param y_series: The column name of the Y-axis series
    :param fcorrect_x_cutoff: The X-axis cutoff value for the fraction correct metric.
    :param fcorrect_y_cutoff: The Y-axis cutoff value for the fraction correct metric.
    :param x_fuzzy_range: The X-axis fuzzy range value for the fuzzy fraction correct metric.
    :param y_scalar: The Y-axis scalar multiplier for the fuzzy fraction correct metric (used to calculate y_cutoff and y_fuzzy_range in that metric)
    :return: A table of statistics.