Commit ·
e584e0e
verified ·
0
Parent(s):
Duplicate from openfoodfacts/open-prices
Browse filesCo-authored-by: Raphaël <raphael0202@users.noreply.huggingface.co>
- .gitattributes +58 -0
- README.md +73 -0
- prices.parquet +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
# Audio files - uncompressed
|
| 38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
# Audio files - compressed
|
| 42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
# Image files - uncompressed
|
| 48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
# Image files - compressed
|
| 53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
# Video files - compressed
|
| 57 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: odbl
|
| 3 |
+
pretty_name: Open Prices Dataset
|
| 4 |
+
dataset_info:
|
| 5 |
+
config_name: default
|
| 6 |
+
configs:
|
| 7 |
+
- config_name: default
|
| 8 |
+
data_files:
|
| 9 |
+
- split: prices
|
| 10 |
+
path: prices.parquet
|
| 11 |
+
tags:
|
| 12 |
+
- price
|
| 13 |
+
- food
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Open Prices
|
| 19 |
+
|
| 20 |
+
## What is Open Prices?
|
| 21 |
+
|
| 22 |
+
[Open Prices](https://prices.openfoodfacts.org/) is a project to collect and share prices of products around the world.
|
| 23 |
+
It's a publicly available dataset that can be used for research, analysis, and more. Open Prices is developed and maintained by Open Food Facts.
|
| 24 |
+
|
| 25 |
+
There are currently few companies that own large databases of product prices at the barcode level.
|
| 26 |
+
These prices are not freely available, but sold at a high price to private actors, researchers and other organizations that can afford them.
|
| 27 |
+
|
| 28 |
+
Open Prices aims to democratize access to price data by collecting and sharing product prices under an open licence. The data is available under the [Open Database License (ODbL)](https://opendatacommons.org/licenses/odbl/1.0/), which means that it can be used for any purpose, as long as you credit Open Prices and share any modifications you make to the dataset. Images submitted as proof are licensed under the [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/).
|
| 29 |
+
|
| 30 |
+
## Dataset description
|
| 31 |
+
|
| 32 |
+
This dataset contains in Parquet format all price information contained in the Open Prices database. The dataset is updated daily.
|
| 33 |
+
|
| 34 |
+
Here is a description of the most important columns:
|
| 35 |
+
|
| 36 |
+
- `id`: The ID of the price in DB
|
| 37 |
+
- `product_code`: The barcode of the product, null if the product is a "raw" product (fruit, vegetable, etc.)
|
| 38 |
+
- `category_tag`: The category of the product, only present for "raw" products. We follow Open Food Facts category taxonomy for category IDs.
|
| 39 |
+
- `labels_tags`: The labels of the product, only present for "raw" products. We follow Open Food Facts label taxonomy for label IDs.
|
| 40 |
+
- `origins_tags`: The origins of the product, only present for "raw" products. We follow Open Food Facts origin taxonomy for origin IDs.
|
| 41 |
+
- `price`: The price of the product, with the discount if any.
|
| 42 |
+
- `price_is_discounted`: Whether the price is discounted or not.
|
| 43 |
+
- `price_without_discount`: The price of the product without discount, null if the price is not discounted.
|
| 44 |
+
- `price_per`: The unit for which the price is given (e.g. "KILOGRAM", "UNIT")
|
| 45 |
+
- `currency`: The currency of the price
|
| 46 |
+
- `location_osm_id`: The OpenStreetMap ID of the location where the price was recorded. We use OpenStreetMap to identify uniquely the store where the price was recorded.
|
| 47 |
+
- `location_osm_type`: The type of the OpenStreetMap location (e.g. "NODE", "WAY")
|
| 48 |
+
- `location_id`: The ID of the location in the Open Prices database
|
| 49 |
+
- `date`: The date when the price was recorded
|
| 50 |
+
- `proof_id`: The ID of the proof of the price in the Open Prices DB
|
| 51 |
+
- `owner`: a hash of the owner of the price, for privacy.
|
| 52 |
+
- `created`: The date when the price was created in the Open Prices DB
|
| 53 |
+
- `updated`: The date when the price was last updated in the Open Prices DB
|
| 54 |
+
- `proof_file_path`: The path to the proof file in the Open Prices DB
|
| 55 |
+
- `proof_type`: The type of the proof. Possible values are `RECEIPT`, `PRICE_TAG`, `GDPR_REQUEST`, `SHOP_IMPORT`
|
| 56 |
+
- `proof_date`: The date of the proof
|
| 57 |
+
- `proof_currency`: The currency of the proof, should be the same as the price currency
|
| 58 |
+
- `proof_created`: The datetime when the proof was created in the Open Prices DB
|
| 59 |
+
- `proof_updated`: The datetime when the proof was last updated in the Open Prices DB
|
| 60 |
+
- `location_osm_display_name`: The display name of the OpenStreetMap location
|
| 61 |
+
- `location_osm_address_city`: The city of the OpenStreetMap location
|
| 62 |
+
- `location_osm_address_postcode`: The postcode of the OpenStreetMap location
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
## How can I download images?
|
| 66 |
+
|
| 67 |
+
All images can be accessed under the `https://prices.openfoodfacts.org/img/` base URL. You just have to concatenate the `proof_file_path` column to this base URL to get the full URL of the image (ex: https://prices.openfoodfacts.org/img/0010/lqGHf3ZcVR.webp).
|
| 68 |
+
|
| 69 |
+
## Can I contribute to Open Prices?
|
| 70 |
+
|
| 71 |
+
Of course! You can contribute by adding prices, trough the [Open Prices website](https://prices.openfoodfacts.org/) or through Open Food Facts mobile app.
|
| 72 |
+
|
| 73 |
+
To participate in the technical development, you can check the [Open Prices GitHub repository](https://github.com/openfoodfacts/open-prices).
|
prices.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9cd2edd1a9e2647c7603b6785f14ac1ab86e79d9f6c2481ff08e3a64b166c51a
|
| 3 |
+
size 17867621
|