简体   繁体   中英

Pandas read_excel (format xls)

I would like to ask on how to read_excel (xls format) using pandas to read all columns in excel and exclude that particular cell value if length of that cell is more than 200.For instance enter image description here

I would like to exclude row number 2 (89888888888888) but still extract 123, 456 in columnA & columnB. Is there a way?

to write to an exel file

pd.read_excel('fileame.xlsx')

check this link it has a lot of parametter https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_excel.html

if you want to exclude column

df.drop(["ColumnB"], axis=1)
df.drop(columns=['ColumnB'])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM