Linked Questions

5 votes
0 answers
634 views

I have a string in the format 100.000,53 (my country uses points as thousands separator and a comma as the decimal separator). I know about: import locale locale.setlocale(locale.LC_NUMERIC, 'de_DE') ...
psaniko's user avatar
  • 1,290
0 votes
0 answers
53 views

When I'm run my python script, I have the following issue : "Error: unsupported locale setting". It happened when the line run : locale.setlocale(locale.LC_ALL, "fr_FR.utf8") I ...
Alan CUZON's user avatar
195 votes
32 answers
250k views

I upgraded from ubuntu 14.04 to ubuntu 16.04 a few days ago. When I try to create a virtual env by using pyvenv .venv or python3 -m venv .venv There is an error: The virtual environment was not ...
Louis M's user avatar
  • 4,424
197 votes
26 answers
611k views

I'm working in Python and using Flask. When I run my main Python file on my computer, it works perfectly, but when I activate venv and run the Flask Python file in the terminal, it says that my main ...
harryt's user avatar
  • 2,133
221 votes
18 answers
263k views

I'm running a Ubuntu Docker container. I have a Norwegian keyboard and need to use Norwegian characters (øæå). My Terminal character encoding is set to UTF-8 and I'm connected to my container using ...
mtmacdonald's user avatar
  • 15.3k
256 votes
10 answers
217k views

Full stacktrace: ➜ ~ pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python3.4/site-packages/pip/...
ericn's user avatar
  • 13.2k
28 votes
3 answers
34k views

I am playing with Python's calendar module that's in the standard library. Basically I need a list of all days of a month, like so: >>> import calendar >>> calobject = calendar....
Daniel's user avatar
  • 1,595
13 votes
5 answers
8k views

Recently upgraded to Android Studio 4.2.1 I can launch my app successfully but when I try to attach the debugger I get the error in the question title (see screenshot below). The app just gets stuck ...
Andrew McFaul's user avatar
4 votes
3 answers
9k views

I want to format price in integer to properly formatted currency. Example 10000 to or ₹10,000 So, I am using the following commands in python import locale locale.setlocale(locale.LC_MONETARY, '...
Avtar Singh's user avatar
0 votes
1 answer
10k views

Starting from the following CSV data, loaded into a pandas data frame... Buchung;Betrag;Saldo 27.06.2016;-1.000,00;42.374,95 02.06.2016;500,00;43.374,95 01.06.2016;-1.000,00;42.874,95 13.05.2016;-500,...
clstaudt's user avatar
  • 22.7k
1 vote
2 answers
5k views

This might be a duplicated question but since I have read all the comments about it and I don't solve my question I have to ask again. I am working with a dataframe where I Have a column with this ...
Borja_042's user avatar
  • 1,071
2 votes
1 answer
6k views

my code has: def sep(num, lang='en', none_is_zero=False): if num is None: if none_is_zero is False: return None else: return 0 try: locale....
91DarioDev's user avatar
  • 1,730
4 votes
2 answers
2k views

This is my first trial in translating pygtk glade; I have created Rockdome.mo file on the following dir:./locale/ar/LC_MESSAGES/Rockdome.mo def apply_locale(self , lang): domain = "...
esnadr's user avatar
  • 445
0 votes
3 answers
1k views

I'm using XGBoost for feature importance, I want to select the features that give me the 90 % of importance, so at first I build a Dataframe beacause I need it for excel and then I write a while cycle ...
Gabriele Valvo's user avatar
8 votes
1 answer
2k views

I have a small script in python, that make use of locale to format a number from 1.000,00 to 1,000.00 import re, locale locale.setlocale(locale.LC_ALL, 'es_PE.UTF-8') locale.atof(number) Then when ...
Romel Gomez's user avatar

15 30 50 per page