How to Solve NameError: name 'LC_NUMERIC' is not defined -- locale

Solution: Import the 'LC_NUMERIC' module

To Solve the error, add the following line to the top of your code.

from locale import LC_NUMERIC

 

For more information:
Python locale LC_NUMERIC