def transform_series(series, force_list=False):
 vals = series.values
 return transform_array(vals, force_list)

def transform_series ( series , force_list = False ) : vals = series . values return transform_array ( vals , force_list )
transforms a pandas series into serialized form args: series : the pandas series to transform force_list : whether to only output to standard lists this function can encode some dtypes using a binary encoding .