关键错误Pandaspd.isnu公司

2024-10-02 06:37:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我的部分代码如下所示:

#generate exceptions CSV where ascomb['Discipline']=='""'

#ascombnb: THESE ARE THE MERGED, NON-BLANK ASSESSMENTS AND STUDENTS RECORDS
ascombnoa = ascomb[pd.isnull(ascomb['Discipline'])]
ascombnoa.to_csv(str(out_folder)+'\Exceptions\Students_Without_Assessments'+str(st)+'.csv', sep=',')
ascombnos = ascomb[pd.isnull(ascomb['Grade'])]
ascombnos.to_csv(str(out_folder)+'\Exceptions\Assessments_Without_Students'+str(st)+'.csv', sep=',')

我已经使用这个代码好几个月了,它从来没有产生过这个关键错误(它与“纪律”有关)。在


Tags: csvto代码folderoutexceptionspdwithout

热门问题