Feb-24-2017, 02:20 PM
Dear Pandas Experts,
I got two question on my Introduction to Python homework.
The jupiter auto-grader expects in case 1 a float64 and in case 2 a tuple, not a list.
case 1
But the jupiter notebooks auto-grader expects data type "tuple"
Any help would make my weekend a great weekend! :)
I got two question on my Introduction to Python homework.
The jupiter auto-grader expects in case 1 a float64 and in case 2 a tuple, not a list.
case 1
   newfour_2['GDPDiff']=np.subtract(newfour['2015'],newfour['2006'])    return newfour_2.iloc[0]case 2
   purchase_1 = pd.Series({'Country': 'Brazil',                        '% Renewable': '69.648030000000006'})    df = pd.DataFrame([purchase_1])    sixlist=df.to_records().tolist()When I used google to search for how to create tuples I only came accross tolist().
But the jupiter notebooks auto-grader expects data type "tuple"
Any help would make my weekend a great weekend! :)