matrix_tools.py 文件源码

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

项目:SecuML 作者: ANSSI-FR 项目源码 文件源码
def sortDataFrame(df, column, ascending, inplace):
    if pd.__version__ in ['0.13.0', '0.14.1']:
        new_df = df.sort([column], ascending = [ascending], inplace = inplace)
    else:
        new_df = df.sort_values([column], ascending = [ascending], inplace = inplace)
    return new_df
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号