If you see this error when trying to import pandas under osx 10.14 Mojave
ModuleNotFoundError: No module named '_lzma'
You may be missing the xz
libraries (https://tukaani.org/xz/)
This may be corrected by using homebrew to install it.
def unicodetoascii(text): | |
TEXT = (text. | |
replace('\\xe2\\x80\\x99', "'"). | |
replace('\\xc3\\xa9', 'e'). | |
replace('\\xe2\\x80\\x90', '-'). | |
replace('\\xe2\\x80\\x91', '-'). | |
replace('\\xe2\\x80\\x92', '-'). | |
replace('\\xe2\\x80\\x93', '-'). | |
replace('\\xe2\\x80\\x94', '-'). |
If you see this error when trying to import pandas under osx 10.14 Mojave
ModuleNotFoundError: No module named '_lzma'
You may be missing the xz
libraries (https://tukaani.org/xz/)
This may be corrected by using homebrew to install it.