def get_unity(data, value=1):
 data_copy = data.copy()
 data_copy['_charts_ones'] = value
 return data_copy['_charts_ones']

def get_unity ( data , value = 1 ) : data_copy = data . copy ( ) data_copy [ '_charts_ones' ] = value return data_copy [ '_charts_ones' ]
returns a column of ones with the same length as input data .