Hi snippsat,
Thanks for your reply.
when I run:
For case 2.
when I run:
And to_tuple() or tuple() does not exist: AttributeError: recarray has no attribute to_tuple/tuple
Even tuple() has the type numpy.recarray
Thanks for your reply.
when I run:
   newfour_2['GDPDiff']=np.subtract(newfour['2015'],newfour['2006'])    newfour_2['GDPDiff'].astype(np.float64)    return type(newfour_2.iloc[0])the output is:float not float64.
For case 2.
when I run:
   sixlist=df.to_records().tolist()    return type(sixlist) #newtwo["% Renewable"].max() answer_six()the output is:list and not tuple so tolist()does not seem to do the trick.
And to_tuple() or tuple() does not exist: AttributeError: recarray has no attribute to_tuple/tuple
Even tuple() has the type numpy.recarray
   purchase_1 = tuple({'Country': 'Brazil',                        '% Renewable': '69.648030000000006'})    df = pd.DataFrame([purchase_1])                                          #only_gold = df.where(df['Gold']== 5)    sixlist=df.to_records()    return type(sixlist) #newtwo["% Renewable"].max()