occupation gender numberadministrator F 36 M 43artist F 13 M 15doctor M 7educator F 26 M 69如何获得前2列的滚动平均值并找到每个职业中(M)男性和(F)女性的平均值users = pd.read_table('https://raw.githubusercontent.com/justmarkham/DAT8/master/data/u.user', sep='|', index_col='user_id')users.head()age gender occupation zip_codeuser_id 1 24 M technician 857112 53 F other 940433 23 M writer 320674 24 M technician 435375 33 F other 15213
添加回答
举报
0/150
提交
取消