I am trying to apply the same function to multiple pandas dataframe but the resultant is an object while I need dataframe as the result. I also tried using 'broadcast' but that didn't help much
Following is the function which basically assigns a name to the index column:
def assign_name(name_df):
name_df.index.name="Fields"
& I am applying it to the uniques & skewness dataframes which basically consists of the number of unique values for each field & skewness:
uniques,skewness = (df.apply(assign_name)for df in [uniques,skewness])
The data type of uniques & skewness is object:
dtype: object
Can any one help me out in solving this?