- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已遵循 https://codereview.stackexchange.com/questions/148853/convert-an-amount-to-indian-notation 中给出的提示
能够以印度逗号格式显示数字,其中使用以下命令将 123456789
显示为 1,23,34,56,789
:
print("INR {}".format(currency_in_indian_format(123456789))).
但是,我无法扩展此功能以显示 pandas 数据框中的所有值。有什么方法可以通过修改命令来完成此操作:
pd.options.display.float_format = '{:,.3f}'.format
最佳答案
如果是印度卢比,请使用:
from babel.numbers import format_currency
print(format_currency(123456789, 'INR', locale='en_IN').replace(u'\xa0', u' '))
输出:
₹ 12,34,56,789.00
注意 - 您的预期输出中数字 3 重复两次,因此与我的不匹配。
关于python - 印度逗号样式的 Pandas 数据框输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54498898/
我知道西欧 Windows 的默认编码是 ISO-8859-1,网络标准的默认编码是 UTF8,但我希望(谷歌让我失望)有人知道 Windows/Visual Studio/C# 的默认编码印度的软件
我正在尝试使用 twitter4j 的流媒体方法从印度地区捕获推文。我正在使用低于纬度和经度的值,但我得到的结果低于异常值。 纬度/经度无效:8.07、68.12、37.10、97.42 这是我的代码
导入请求 x = requests.get(' https://www1.nseindia.com/live_market/dynaContent/live_watch/equities_stock_
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 8年前关闭。 Improve this que
我正在评估 iText 作为 Java swing 应用程序的 PDFGenerator。输出应该是“马拉地语”,这是一种与印地语类似但不相同的印度本地语言。 出于评估目的,这是我尝试打印的文本: म
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 11 年前。 Improve thi
是否有任何工具/网站可以让我以多种印度语言(卡纳达语、马拉地语、泰米尔语、印地语等)中的一种输入一些文本并将其翻译成英语。 谷歌翻译目前只支持印度语言中的印地语。 最佳答案 我意识到这是一个很老的问题
我无法找到在 android-google-billing-pop-up 中显示介绍价格的方法, 我的问题: as you can see that introductory price are no
我是一名优秀的程序员,十分优秀!