[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tool/ - Tools & Resources

Software reviews, plugins & productivity tools
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793763223745.jpg (263.71 KB, 1024x1024, img_1793763214821_pj4mcaw5.jpg)ImgOps Exif Google Yandex

de2f5 No.2439

trying to automate some messy client exports but the column names are always garbage. there's random whitespace and weird symbols everywhere which makes my pandas scripts fail constantly. tried using a basic strip function but it doesn't catch the non-breaking spaces or those hidden newline characters that hide in the cells.
>it's just a simple clean up job
lmao if only. i need something that actually nukes all the special chars and leaves just lowercase alphanumeric so my mapping stays consistent. anyone got a snippet that handles the nasty stuff?

06649 No.2455

>>2439
are you using regex for those non-breaking spaces or just trying to loop through a list of bad characters?



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]