Update _index.md

This commit is contained in:
Jeroen Bouma
2022-03-15 11:58:06 +01:00
committed by GitHub
parent 8c4ecb948a
commit e9ddb8c6e9

View File

@@ -1,5 +1,5 @@
```
usage: bigmac [-c COUNTRIES] [--raw] [-h] [--export {png,jpg,pdf,svg}]
usage: bigmac [--codes] [-c COUNTRIES] [-h] [--export {csv,json,xlsx,png,jpg,pdf,svg}] [--raw]
```
The notion that in the long run exchange rates should move towards the rate that would equalise the prices of an identical basket of goods and services (in this case, a burger) in any two countries. Burgernomics was never intended as a precise gauge of currency misalignment, merely a tool to make exchange-rate theory more digestible. Yet the Big Mac index has become a global standard, included in several economic textbooks and the subject of dozens of academic studies.
@@ -7,24 +7,24 @@ Big Mac prices are from McDonald’s directly and from reporting around the worl
The Big Mac PPP exchange rate between two countries is obtained by dividing the price of a Big Mac in one country (in its currency) by the price of a Big Mac in another country (in its currency).
Source: https://data.nasdaq.com/data/ECONOMIST-the-economist-big-mac-index
List of country codes for this feature: https://static.quandl.com/ECONOMIST_Descriptions/economist_country_codes.csv
Source of the data can be found [here](https://data.nasdaq.com/data/ECONOMIST-the-economist-big-mac-index) and a list of country codes for this feature can be found [here](https://static.quandl.com/ECONOMIST_Descriptions/economist_country_codes.csv).
```
optional arguments:
--codes Flag to show all country codes (default: False)
-c COUNTRIES, --countries COUNTRIES
Country codes to get data for. (default: USA)
--raw Show raw data (default: False)
-h, --help show this help message (default: False)
--export {png,jpg,pdf,svg}
Export or figure into png, jpg, pdf, svg (default: )
--export {csv,json,xlsx,png,jpg,pdf,svg}
Export raw data into csv, json, xlsx and figure into png, jpg, pdf, svg (default: )
--raw Flag to display raw data (default: False)
```
Sample usage, which gets the index for 7 different countries:
Sample usage, which gets the index for 5 different countries:
```
bigmac -c USA,EUR,MEX,CAN,UAE,RUS
bigmac -c USA,EUR,MEX,CAN,RUS
```
<img size="1400" alt="Big Mac Index" src="https://user-images.githubusercontent.com/18151143/141603738-ffa86906-4e1e-48b4-97b8-ed51f1806089.png">
![bigmac](https://user-images.githubusercontent.com/46355364/158362967-8353fa50-2eb1-43b0-9cbb-bc3c3aec2e2a.png)