I am using Pandas 0.20.3 in my python 3.X. I for the first time and want to add one column in a pandas data frame from the other pandas data frame. My both the data frame contains 51 rows. So I tried following code:
But I got following error message:
ValueError: Cannot set a frame with no defined index and a value that cannot be converted to a Series
My class_df.dtypes gives me :
and when I type(group['phone']) it returns the pandas.core.series.Series
Can anyone suggest me what changes I need to do to remove above error?