python预处理练习数据
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
# 读取数据
excel1= pd.DataFrame(pd.read_excel('第5章 练习数据.xls',sheet_name='Sheet1'))
#一,班级中以学号的班级填充
excel1_number=excel1["学号"]
for int1 in excel1_number:
int2=int1//100%10;
if(.
原创
2022-05-04 14:01:58 ·
1623 阅读 ·
1 评论