import numpy as np import pandas as pd file_one = pd.read_excel(r"C:\Users\86159\Desktop\0113013127hs.xls",skiprows=1) file_one
时间: 2023-11-25 08:07:03 浏览: 128
使用pandas进行excel文件的读取写入
5星 · 资源好评率100%
= file_one.dropna(how='all') # Remove rows with all missing values file_one = file_one.dropna(thresh=2) # Remove rows with less than 2 non-missing values file_one = file_one.reset_index(drop=True) # Reset the index file_one.head() # Show the first few rows of the data frame
阅读全文