摘要:
import pandas as pd employees = pd.read_excel('D:/Temp/Employees.xlsx',index_col='ID') df = employees['Full Name'].str.split(expand = True) #expand 分成2列 employees['Firest Name'] =df[0] employees['L... 阅读全文
posted @ 2019-06-19 21:02
Inserence
阅读(466)
评论(0)
推荐(0)
摘要:
import pandas as pd def score_valication(row): try: assert 0 <= row.Score <= 100 except: print(f'#{row.ID}\tstudent {row.Name} has an invalid score {row.Score}') students ... 阅读全文
posted @ 2019-06-19 20:26
Inserence
阅读(188)
评论(0)
推荐(0)

浙公网安备 33010602011771号