house_prices.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:HousePrices 作者: MizioAnd 项目源码 文件源码
def features_with_null_logical(df, axis=1):
        row_length = len(df._get_axis(0))
        # Axis to count non null values in. aggregate_axis=0 implies counting for every feature
        aggregate_axis = 1 - axis
        features_non_null_series = df.count(axis=aggregate_axis)
        # Whenever count() differs from row_length it implies a null value exists in feature column and a False in mask
        mask = row_length == features_non_null_series
        return mask
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号