[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$feTouYA895YjgKef26kW3dRTlc9dKR1G-qSNUDqqqU3g":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-03-17 19:36:23",179440982,[8,9,10,11],"a b c d a 0.0 0.0 0.0 NaN b -1.0 -1.0 -1.0 NaN c NaN NaN NaN NaN","a b c 0 0.0 0.0 0.0 1 -1.0 -1.0 -1.0","a b c d 0 0.0 0.0 0.0 -3.0 1 -1.0 -1.0 -1.0 -7.0 2 -8.0 -9.0 -10.0 -11.0","a b c d 0 0.0 0.0 0.0 NaN 1 -1.0 -1.0 -1.0 NaN 2 NaN NaN NaN NaN",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},10,"508aad1b3b7c53cdc7ba5d702d81fd7d","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F9ac9cb1cdc86a59cd5baa492413fb1a7.png","Python数据可视化应用","a13b793f66a0402abb54c93b61f09ff9","作业10-pandas分析基础与可视化","以下程序运行结果: df1 = DataFrame(np.arange(6).reshape(2,3), columns=['a','b','c']) df2 = DataFrame(np.arange(12).reshape(3,4),columns=['a','b','c','d']) print('两个DataFrame对象相减' ,df1-df2)",[21,32,41,50,59,68,77,80,89,98],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],179440976,[25,26,27,28],"a 0 b 1 c 2 dtype: int32","a 1 b 2 c 3 dtype: int32","0 a 1 b 2 c dtype: object","a 1 b 2 c 3 dtype: object","以下代码执行的结果是: obj = Series(np.arange(3),index=['a','b','c']) print(obj)","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],179440977,[36,37,38,39],"[0,2]","[ '一','二']","一 0 二 2 dtype: int64","0 0 1 2 dtype: int64","以下代码执行的结果是: obj = Series([0,2],index=['一','二']) print(obj)",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],179440978,[45,46,47,48],"0 red 1 apple dtype: object","color red fruit apple dtype: object","color red fruit apple dtype: int64","red color apple fruit dtype: object","以下代码执行的结果是: obj = Series(['red','apple'],index=['color','fruit']) print(obj)",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":30,"type":31},[],179440979,[54,55,56,57],"a 13 b 24 dtype: object","a 4 b 6 dtype: int64","a 12 b 34 dtype: object","a 4 b 6 dtype: object","以下代码运行结果是: obj1 = Series(['1','2'],index=['a','b']) obj2 = Series(['3','4'],index=['a','b']) print(obj1+obj2)",{"answer":60,"createTime":5,"id":61,"options":62,"question":67,"source":30,"type":31},[],179440980,[63,64,65,66],"a NaN b 8.0 c 9.0 e NaN dtype: float64","a NaN b 4.0 c 6.0 e NaN dtype: float64","b 4.0 c 6.0 dtype: float64","a NaN b 3.0 c 8.0 e NaN dtype: float64","以下代码运行结果是: obj1 = Series(np.arange(3),index=['a','b','c']) obj2 = Series([9,3,4],index=['e','c','b']) print(obj1*obj2)",{"answer":69,"createTime":5,"id":70,"options":71,"question":76,"source":30,"type":31},[],179440981,[72,73,74,75],"0 6.0 1 8.0 2 10.0 3 NaN 4 NaN dtype: float64","0 6.0 1 8.0 2 10.0 dtype: float64","1 6.0 2 8.0 3 10.0 4 NaN 5 NaN dtype: float64","程序出错","以下代码运行结果是: a = Series([1, 2, 3], index=range(0, 3)) b = Series(range(5, 10)) print(a + b)",{"answer":78,"createTime":5,"id":6,"options":79,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":81,"createTime":5,"id":82,"options":83,"question":88,"source":30,"type":31},[],179440983,[84,85,86,87],"一 二 三 0 0.0 2.0 NaN 1 NaN NaN NaN 2 5.0 7.0 NaN","0 1 2 一 0.0 2.0 NaN 二 5.0 7.0 NaN","0 1 2 一 0.0 2.0 NaN 三 NaN NaN NaN 二 二 5.0 7.0 NaN","一 二 三 一 0.0 2.0 NaN 三 NaN NaN NaN 二 5.0 7.0 NaN","以下程序运行结果: df1 = DataFrame(np.arange(4).reshape(2,2),index=['一','二']) df2 = DataFrame(np.arange(9).reshape(3,3),index=['一','二','三']) print(df1 + df2)",{"answer":90,"createTime":5,"id":91,"options":92,"question":97,"source":30,"type":31},[],179440984,[93,94,95,96],"a c e 0 0 3 NaN 1 2 5 NaN","a c e 一 0 3 NaN 二 2 5 NaN","a c e 0 0 3 1 1 2 5 1","0 1 a 0 1 c 3 5 e NaN NaN","以下代码输出结果是: se1 = Series(np.arange(3),index=['a','e','c']) df1 = DataFrame(np.arange(4).reshape(2,2),columns=['a','c'],index=['一','二']) print(df1+se1)",{"answer":99,"createTime":5,"id":100,"options":101,"question":106,"source":30,"type":31},[],179440985,[102,103,104,105],"a 10 b 3 c 7 dtype: int64","0 10 1 3 2 7 dtype: int64","a 5 b 3 c 0 dtype: int64","0 5 1 3 2 0 dtype: int64","以下程序运行的结果: obj = Series([5,-2,2],index=['a','b','c'])f=lambda x:x+5obj.map(f)"]