projects/guix·blob java-team · refs

89 lines · 3.5 KiB

1# This patch was imported from Debian:
2# https://sources.debian.org/src/python-vega-datasets/0.9%2Bdfsg-1/debian/patches/remove-la-riots-related-code.patch/
3# According to the Debian package, the license of this dataset is not clear and it is not available from Los Angeles Times for European users.
4Index: vega_datasets/vega_datasets/tests/test_local_datasets.py
5===================================================================
6--- vega_datasets.orig/vega_datasets/tests/test_local_datasets.py
7+++ vega_datasets/vega_datasets/tests/test_local_datasets.py
8@@ -75,7 +75,6 @@ def test_cars_column_names():
9 [
10 ("cars", "Year"),
11 ("stocks", "date"),
12- ("la-riots", "death_date"),
13 ("iowa-electricity", "year"),
14 ("seattle-weather", "date"),
15 ("seattle-temps", "date"),
16Index: vega_datasets/vega_datasets/core.py
17===================================================================
18--- vega_datasets.orig/vega_datasets/core.py
19+++ vega_datasets/vega_datasets/core.py
20@@ -322,11 +322,6 @@ class IowaElectricity(Dataset):
21 _pd_read_kwds = {"parse_dates": ["year"]}
22
23
24-class LARiots(Dataset):
25- name = "la-riots"
26- _pd_read_kwds = {"parse_dates": ["death_date"]}
27-
28-
29 class Miserables(Dataset):
30 name = "miserables"
31 _return_type = tuple
32Index: vega_datasets/vega_datasets/datasets.json
33===================================================================
34--- vega_datasets.orig/vega_datasets/datasets.json
35+++ vega_datasets/vega_datasets/datasets.json
36@@ -143,10 +143,6 @@
37 "filename": "jobs.json",
38 "format": "json"
39 },
40- "la-riots": {
41- "filename": "la-riots.csv",
42- "format": "csv"
43- },
44 "londonBoroughs": {
45 "filename": "londonBoroughs.json",
46 "format": "json"
47@@ -279,4 +275,4 @@
48 "filename": "zipcodes.csv",
49 "format": "csv"
50 }
51-}
52\ No newline at end of file
53+}
54Index: vega_datasets/vega_datasets/local_datasets.json
55===================================================================
56--- vega_datasets.orig/vega_datasets/local_datasets.json
57+++ vega_datasets/vega_datasets/local_datasets.json
58@@ -8,7 +8,6 @@
59 "driving": "_data/driving.json",
60 "iowa-electricity": "_data/iowa-electricity.csv",
61 "iris": "_data/iris.json",
62- "la-riots": "_data/la-riots.csv",
63 "ohlc": "_data/ohlc.json",
64 "seattle-temps": "_data/seattle-temps.csv",
65 "seattle-weather": "_data/seattle-weather.csv",
66@@ -16,4 +15,4 @@
67 "stocks": "_data/stocks.csv",
68 "us-employment": "_data/us-employment.csv",
69 "wheat": "_data/wheat.json"
70-}
71\ No newline at end of file
72+}
73Index: vega_datasets/vega_datasets/dataset_info.json
74===================================================================
75--- vega_datasets.orig/vega_datasets/dataset_info.json
76+++ vega_datasets/vega_datasets/dataset_info.json
77@@ -49,12 +49,6 @@
78 "R. A. Fisher (1936). 'The use of multiple measurements in taxonomic problems'. Annals of Eugenics. 7 (2): 179-188."
79 ]
80 },
81- "la-riots" : {
82- "description" : "More than 60 people lost their lives amid the looting and fires that ravaged Los Angeles for five days starting on April 29, 1992. This dataset contains metadata about each person, including the geographic coordinates of their death. It was compiled and published by the Los Angeles Times Data Desk [1]_.",
83- "references" : [
84- "http://spreadsheets.latimes.com/la-riots-deaths/"
85- ]
86- },
87 "ohlc" : {
88 "description" : "This dataset contains the performance of the Chicago Board Options Exchange `Volatility Index <https://en.wikipedia.org/wiki/VIX>`_ in the summer of 2009."
89 },