scout
scout copied to clipboard
Figure out if the str_cleaner function in com_mseg.py is necessary
The str_cleaner function performs some operations to clean up improperly formatted strings in the commercial data. Those operations are currently done row-by-row and rely on enumerate() to replace the original entry with the reformatted string. It would be nice if this function could be streamlined to operate on an entire column at once or in some other more pythonic way.