예제 #1
0
def sum_solid(num_df: DataFrame) -> DataFrame:
    sum_df = num_df.copy()
    sum_df['sum'] = sum_df['num1'] + sum_df['num2']
    return sum_df
예제 #2
0
def sum_sq_solid(_, sum_df: DataFrame, mult_df: DataFrame) -> DataFrame:
    sum_sq_df = sum_df.copy()
    sum_sq_df['sum_sq'] = sum_df['sum'] ** 2
    sum_sq_df['sum_mult_sq'] = sum_df['sum'] * mult_df['mult']
    return sum_sq_df
예제 #3
0
def sum_sq_solid(sum_df: DataFrame) -> DataFrame:
    sum_sq_df = sum_df.copy()
    sum_sq_df['sum_sq'] = sum_df['sum']**2
    return sum_sq_df
예제 #4
0
def mult_solid(_, num_df: DataFrame) -> DataFrame:
    mult_df = num_df.copy()
    mult_df['mult'] = num_df['num1'] * num_df['num2']
    return mult_df