首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Pandas进阶修炼120题|第一期

    难度:⭐⭐ 答案 df['grammer'].value_counts() 6 缺失值处理 题目:将空值用上下值的平均值填充 难度:⭐⭐⭐ 答案 df['popularity'] = df['popularity...'].fillna(df['popularity'].interpolate()) 7 数据提取 题目:提取popularity列中值大于3的行 难度:⭐⭐ 答案 df[df['popularity']...列值大于3小于7的行 难度:⭐⭐ 答案 df[(df['popularity'] > 3) & (df['popularity'] < 7)] 14 位置处理 题目:交换两列位置 难度:⭐⭐⭐ 答案 temp...= df['popularity'] df.drop(labels=['popularity'], axis=1,inplace = True) df.insert(0, 'popularity',...temp) 15 数据提取 题目:提取popularity列最大值所在行 难度:⭐⭐ 答案 df[df['popularity'] == df['popularity'].max()] 16 数据查看

    98610
    领券