{"action":"created","comment":{"url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/comments/50444660","id":50444660,"diff_hunk":"@@ -97,45 +97,38 @@ Formatting Numbers\n Most reports use at least some units of measurement. PrettyPandas currently \n supports percentages, money, and a more general unit method.\n \n-* :py:meth:`as_percent <PrettyPandas.as_percent>`\n-* :py:meth:`as_money <PrettyPandas.as_money>`\n-* :py:meth:`as_unit <PrettyPandas.as_unit>`\n+* :py:meth:`as_percent <prettypandas.PrettyPandas.as_percent>`\n+* :py:meth:`as_currency <prettypandas.PrettyPandas.as_currency>`\n+* :py:meth:`as_unit <prettypandas.PrettyPandas.as_unit>`\n \n The ``as_unit`` method takes a positional ``unit`` argument which indicates the\n string representing the unit to be used and a ``location`` argument to specify\n whether the unit should be a prefix or suffix to the value. \n \n+The ``as_currency`` and ``as_percent`` methods are localized to use whatever\n+units your Python distribution thinks are best for you. If you aren't getting\n+the correct units use the :py:meth:`set_locale\n+<prettypandas.PrettyPandas.set_locale>` method to specify your locale. \n+\n+If you need to use a different currency, just pass it to ``currency='...'`` to\n+change it.\n+\n The ``as_money`` method takes optional ``currency`` and ``location`` arguments\n which work just like the ``as_unit`` method. By default the currency is in\n dollars. \n \n .. note:: \n-    Many currency symbols are unicode characters, which means Python 2 doesn't\n-    support them by default. You can use `unicode literals`_ (e.g. ``u'€'``) or\n-    import the unicode literal behaviour from Python 3:\n+    Python 2 doesn't unicode literals by default. You can use `unicode","path":"docs/source/quickstart.rst","position":57,"original_position":57,"commit_id":"607595d3aed7d7250e5406ee5100becbdc2038e4","original_commit_id":"607595d3aed7d7250e5406ee5100becbdc2038e4","user":{"login":"HHammond","id":3064019,"avatar_url":"https://avatars.githubusercontent.com/u/3064019?v=3","gravatar_id":"","url":"https://api.github.com/users/HHammond","html_url":"https://github.com/HHammond","followers_url":"https://api.github.com/users/HHammond/followers","following_url":"https://api.github.com/users/HHammond/following{/other_user}","gists_url":"https://api.github.com/users/HHammond/gists{/gist_id}","starred_url":"https://api.github.com/users/HHammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HHammond/subscriptions","organizations_url":"https://api.github.com/users/HHammond/orgs","repos_url":"https://api.github.com/users/HHammond/repos","events_url":"https://api.github.com/users/HHammond/events{/privacy}","received_events_url":"https://api.github.com/users/HHammond/received_events","type":"User","site_admin":false},"body":"typo","created_at":"2016-01-21T18:52:47Z","updated_at":"2016-01-21T18:52:47Z","html_url":"https://github.com/HHammond/PrettyPandas/pull/24#discussion_r50444660","pull_request_url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/comments/50444660"},"html":{"href":"https://github.com/HHammond/PrettyPandas/pull/24#discussion_r50444660"},"pull_request":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24","id":56757771,"html_url":"https://github.com/HHammond/PrettyPandas/pull/24","diff_url":"https://github.com/HHammond/PrettyPandas/pull/24.diff","patch_url":"https://github.com/HHammond/PrettyPandas/pull/24.patch","issue_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues/24","number":24,"state":"open","locked":false,"title":"Use Babel for currency formatting","user":{"login":"HHammond","id":3064019,"avatar_url":"https://avatars.githubusercontent.com/u/3064019?v=3","gravatar_id":"","url":"https://api.github.com/users/HHammond","html_url":"https://github.com/HHammond","followers_url":"https://api.github.com/users/HHammond/followers","following_url":"https://api.github.com/users/HHammond/following{/other_user}","gists_url":"https://api.github.com/users/HHammond/gists{/gist_id}","starred_url":"https://api.github.com/users/HHammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HHammond/subscriptions","organizations_url":"https://api.github.com/users/HHammond/orgs","repos_url":"https://api.github.com/users/HHammond/repos","events_url":"https://api.github.com/users/HHammond/events{/privacy}","received_events_url":"https://api.github.com/users/HHammond/received_events","type":"User","site_admin":false},"body":"Addresses https://github.com/HHammond/PrettyPandas/issues/21\r\n\r\n* Adds locale support to percentages and currencies :euro: :yen: :dollar: \r\n* Adds the option to set locale for all formatting\r\n* Offloads formatting to Babel for locale specific tools\r\n* Deprecates `as_money` with warning to use `as_currency` instead,","created_at":"2016-01-21T14:41:41Z","updated_at":"2016-01-21T18:52:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d90cbfdbd8152174eb1f0055f5ba6743a823513","assignee":null,"milestone":{"url":"https://api.github.com/repos/HHammond/PrettyPandas/milestones/1","html_url":"https://github.com/HHammond/PrettyPandas/milestones/v0.0.2","labels_url":"https://api.github.com/repos/HHammond/PrettyPandas/milestones/1/labels","id":1531039,"number":1,"title":"v0.0.2","description":null,"creator":{"login":"HHammond","id":3064019,"avatar_url":"https://avatars.githubusercontent.com/u/3064019?v=3","gravatar_id":"","url":"https://api.github.com/users/HHammond","html_url":"https://github.com/HHammond","followers_url":"https://api.github.com/users/HHammond/followers","following_url":"https://api.github.com/users/HHammond/following{/other_user}","gists_url":"https://api.github.com/users/HHammond/gists{/gist_id}","starred_url":"https://api.github.com/users/HHammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HHammond/subscriptions","organizations_url":"https://api.github.com/users/HHammond/orgs","repos_url":"https://api.github.com/users/HHammond/repos","events_url":"https://api.github.com/users/HHammond/events{/privacy}","received_events_url":"https://api.github.com/users/HHammond/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-01-21T13:56:35Z","updated_at":"2016-01-21T17:33:56Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24/commits","review_comments_url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24/comments","review_comment_url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues/24/comments","statuses_url":"https://api.github.com/repos/HHammond/PrettyPandas/statuses/607595d3aed7d7250e5406ee5100becbdc2038e4","head":{"label":"HHammond:babel_currencies","ref":"babel_currencies","sha":"607595d3aed7d7250e5406ee5100becbdc2038e4","user":{"login":"HHammond","id":3064019,"avatar_url":"https://avatars.githubusercontent.com/u/3064019?v=3","gravatar_id":"","url":"https://api.github.com/users/HHammond","html_url":"https://github.com/HHammond","followers_url":"https://api.github.com/users/HHammond/followers","following_url":"https://api.github.com/users/HHammond/following{/other_user}","gists_url":"https://api.github.com/users/HHammond/gists{/gist_id}","starred_url":"https://api.github.com/users/HHammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HHammond/subscriptions","organizations_url":"https://api.github.com/users/HHammond/orgs","repos_url":"https://api.github.com/users/HHammond/repos","events_url":"https://api.github.com/users/HHammond/events{/privacy}","received_events_url":"https://api.github.com/users/HHammond/received_events","type":"User","site_admin":false},"repo":{"id":49782151,"name":"PrettyPandas","full_name":"HHammond/PrettyPandas","owner":{"login":"HHammond","id":3064019,"avatar_url":"https://avatars.githubusercontent.com/u/3064019?v=3","gravatar_id":"","url":"https://api.github.com/users/HHammond","html_url":"https://github.com/HHammond","followers_url":"https://api.github.com/users/HHammond/followers","following_url":"https://api.github.com/users/HHammond/following{/other_user}","gists_url":"https://api.github.com/users/HHammond/gists{/gist_id}","starred_url":"https://api.github.com/users/HHammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HHammond/subscriptions","organizations_url":"https://api.github.com/users/HHammond/orgs","repos_url":"https://api.github.com/users/HHammond/repos","events_url":"https://api.github.com/users/HHammond/events{/privacy}","received_events_url":"https://api.github.com/users/HHammond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HHammond/PrettyPandas","description":"A Pandas Styler class for making beautiful tables","fork":false,"url":"https://api.github.com/repos/HHammond/PrettyPandas","forks_url":"https://api.github.com/repos/HHammond/PrettyPandas/forks","keys_url":"https://api.github.com/repos/HHammond/PrettyPandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HHammond/PrettyPandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HHammond/PrettyPandas/teams","hooks_url":"https://api.github.com/repos/HHammond/PrettyPandas/hooks","issue_events_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues/events{/number}","events_url":"https://api.github.com/repos/HHammond/PrettyPandas/events","assignees_url":"https://api.github.com/repos/HHammond/PrettyPandas/assignees{/user}","branches_url":"https://api.github.com/repos/HHammond/PrettyPandas/branches{/branch}","tags_url":"https://api.github.com/repos/HHammond/PrettyPandas/tags","blobs_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HHammond/PrettyPandas/statuses/{sha}","languages_url":"https://api.github.com/repos/HHammond/PrettyPandas/languages","stargazers_url":"https://api.github.com/repos/HHammond/PrettyPandas/stargazers","contributors_url":"https://api.github.com/repos/HHammond/PrettyPandas/contributors","subscribers_url":"https://api.github.com/repos/HHammond/PrettyPandas/subscribers","subscription_url":"https://api.github.com/repos/HHammond/PrettyPandas/subscription","commits_url":"https://api.github.com/repos/HHammond/PrettyPandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/HHammond/PrettyPandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/HHammond/PrettyPandas/contents/{+path}","compare_url":"https://api.github.com/repos/HHammond/PrettyPandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HHammond/PrettyPandas/merges","archive_url":"https://api.github.com/repos/HHammond/PrettyPandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HHammond/PrettyPandas/downloads","issues_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues{/number}","pulls_url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls{/number}","milestones_url":"https://api.github.com/repos/HHammond/PrettyPandas/milestones{/number}","notifications_url":"https://api.github.com/repos/HHammond/PrettyPandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HHammond/PrettyPandas/labels{/name}","releases_url":"https://api.github.com/repos/HHammond/PrettyPandas/releases{/id}","created_at":"2016-01-16T16:56:00Z","updated_at":"2016-01-21T18:14:58Z","pushed_at":"2016-01-21T18:51:52Z","git_url":"git://github.com/HHammond/PrettyPandas.git","ssh_url":"git@github.com:HHammond/PrettyPandas.git","clone_url":"https://github.com/HHammond/PrettyPandas.git","svn_url":"https://github.com/HHammond/PrettyPandas","homepage":null,"size":2869,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":15,"default_branch":"master"}},"base":{"label":"HHammond:master","ref":"master","sha":"c1fbc93bc669e07254da23c43e247343e843dfb6","user":{"login":"HHammond","id":3064019,"avatar_url":"https://avatars.githubusercontent.com/u/3064019?v=3","gravatar_id":"","url":"https://api.github.com/users/HHammond","html_url":"https://github.com/HHammond","followers_url":"https://api.github.com/users/HHammond/followers","following_url":"https://api.github.com/users/HHammond/following{/other_user}","gists_url":"https://api.github.com/users/HHammond/gists{/gist_id}","starred_url":"https://api.github.com/users/HHammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HHammond/subscriptions","organizations_url":"https://api.github.com/users/HHammond/orgs","repos_url":"https://api.github.com/users/HHammond/repos","events_url":"https://api.github.com/users/HHammond/events{/privacy}","received_events_url":"https://api.github.com/users/HHammond/received_events","type":"User","site_admin":false},"repo":{"id":49782151,"name":"PrettyPandas","full_name":"HHammond/PrettyPandas","owner":{"login":"HHammond","id":3064019,"avatar_url":"https://avatars.githubusercontent.com/u/3064019?v=3","gravatar_id":"","url":"https://api.github.com/users/HHammond","html_url":"https://github.com/HHammond","followers_url":"https://api.github.com/users/HHammond/followers","following_url":"https://api.github.com/users/HHammond/following{/other_user}","gists_url":"https://api.github.com/users/HHammond/gists{/gist_id}","starred_url":"https://api.github.com/users/HHammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HHammond/subscriptions","organizations_url":"https://api.github.com/users/HHammond/orgs","repos_url":"https://api.github.com/users/HHammond/repos","events_url":"https://api.github.com/users/HHammond/events{/privacy}","received_events_url":"https://api.github.com/users/HHammond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HHammond/PrettyPandas","description":"A Pandas Styler class for making beautiful tables","fork":false,"url":"https://api.github.com/repos/HHammond/PrettyPandas","forks_url":"https://api.github.com/repos/HHammond/PrettyPandas/forks","keys_url":"https://api.github.com/repos/HHammond/PrettyPandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HHammond/PrettyPandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HHammond/PrettyPandas/teams","hooks_url":"https://api.github.com/repos/HHammond/PrettyPandas/hooks","issue_events_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues/events{/number}","events_url":"https://api.github.com/repos/HHammond/PrettyPandas/events","assignees_url":"https://api.github.com/repos/HHammond/PrettyPandas/assignees{/user}","branches_url":"https://api.github.com/repos/HHammond/PrettyPandas/branches{/branch}","tags_url":"https://api.github.com/repos/HHammond/PrettyPandas/tags","blobs_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HHammond/PrettyPandas/statuses/{sha}","languages_url":"https://api.github.com/repos/HHammond/PrettyPandas/languages","stargazers_url":"https://api.github.com/repos/HHammond/PrettyPandas/stargazers","contributors_url":"https://api.github.com/repos/HHammond/PrettyPandas/contributors","subscribers_url":"https://api.github.com/repos/HHammond/PrettyPandas/subscribers","subscription_url":"https://api.github.com/repos/HHammond/PrettyPandas/subscription","commits_url":"https://api.github.com/repos/HHammond/PrettyPandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/HHammond/PrettyPandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/HHammond/PrettyPandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/HHammond/PrettyPandas/contents/{+path}","compare_url":"https://api.github.com/repos/HHammond/PrettyPandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HHammond/PrettyPandas/merges","archive_url":"https://api.github.com/repos/HHammond/PrettyPandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HHammond/PrettyPandas/downloads","issues_url":"https://api.github.com/repos/HHammond/PrettyPandas/issues{/number}","pulls_url":"https://api.github.com/repos/HHammond/PrettyPandas/pulls{/number}","milestones_url":"https://api.github.com/repos/HHammond/PrettyPandas/milestones{/number}","notifications_url":"https://api.github.com/repos/HHammond/PrettyPandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HHammond/PrettyPandas/labels{/name}","releases_url":"https://api.github.com/repos/HHammond/PrettyPandas/releases{/id}","created_at":"2016-01-16T16:56:00Z","updated_at":"2016-01-21T18:14:58Z","pushed_at":"2016-01-21T18:51:52Z","git_url":"git://github.com/HHammond/PrettyPandas.git","ssh_url":"git@github.com:HHammond/PrettyPandas.git","clone_url":"https://github.com/HHammond/PrettyPandas.git","svn_url":"https://github.com/HHammond/PrettyPandas","homepage":null,"size":2869,"stargazers_count":15,"watchers_count":15,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24"},"html":{"href":"https://github.com/HHammond/PrettyPandas/pull/24"},"issue":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/issues/24"},"comments":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/HHammond/PrettyPandas/statuses/607595d3aed7d7250e5406ee5100becbdc2038e4"}}}}