简体   繁体   中英

how to remove spaces/separated by commas in excel spreadsheet using python script?

How to remove all spaces in excel cell data where some of the data are separated by space; some even has space behind them eg '15, 17' instead of '15,17'. (Separated by commas) Pls ignore X,Y under "Amelogenin"

Link to full data that is unclean https://wetransfer.com/downloads/de3384467a25b7148255c6d9ef022c0f20220203043147/95d780

If you can update it use the string replace function in python

stringvariable.replace(' ','')

That should do it

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