Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: math480-2016
Views: 779
1
[
2
{
3
"url": "https://api.github.com/repos/pydata/pandas/issues/13120",
4
"repository_url": "https://api.github.com/repos/pydata/pandas",
5
"labels_url": "https://api.github.com/repos/pydata/pandas/issues/13120/labels{/name}",
6
"comments_url": "https://api.github.com/repos/pydata/pandas/issues/13120/comments",
7
"events_url": "https://api.github.com/repos/pydata/pandas/issues/13120/events",
8
"html_url": "https://github.com/pydata/pandas/issues/13120",
9
"id": 153805107,
10
"number": 13120,
11
"title": "Index construction fails (or produces erroneous result) with memoryview as input.",
12
"user": {
13
"login": "ssanderson",
14
"id": 1588357,
15
"avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=3",
16
"gravatar_id": "",
17
"url": "https://api.github.com/users/ssanderson",
18
"html_url": "https://github.com/ssanderson",
19
"followers_url": "https://api.github.com/users/ssanderson/followers",
20
"following_url": "https://api.github.com/users/ssanderson/following{/other_user}",
21
"gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}",
22
"starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}",
23
"subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions",
24
"organizations_url": "https://api.github.com/users/ssanderson/orgs",
25
"repos_url": "https://api.github.com/users/ssanderson/repos",
26
"events_url": "https://api.github.com/users/ssanderson/events{/privacy}",
27
"received_events_url": "https://api.github.com/users/ssanderson/received_events",
28
"type": "User",
29
"site_admin": false
30
},
31
"labels": [
32
{
33
"url": "https://api.github.com/repos/pydata/pandas/labels/Compat",
34
"name": "Compat",
35
"color": "0052cc"
36
},
37
{
38
"url": "https://api.github.com/repos/pydata/pandas/labels/Difficulty%20Intermediate",
39
"name": "Difficulty Intermediate",
40
"color": "fbca04"
41
},
42
{
43
"url": "https://api.github.com/repos/pydata/pandas/labels/Dtypes",
44
"name": "Dtypes",
45
"color": "e102d8"
46
},
47
{
48
"url": "https://api.github.com/repos/pydata/pandas/labels/Effort%20Medium",
49
"name": "Effort Medium",
50
"color": "006b75"
51
},
52
{
53
"url": "https://api.github.com/repos/pydata/pandas/labels/Timeseries",
54
"name": "Timeseries",
55
"color": "AFEEEE"
56
}
57
],
58
"state": "open",
59
"locked": false,
60
"assignee": null,
61
"milestone": {
62
"url": "https://api.github.com/repos/pydata/pandas/milestones/32",
63
"html_url": "https://github.com/pydata/pandas/milestones/Next%20Major%20Release",
64
"labels_url": "https://api.github.com/repos/pydata/pandas/milestones/32/labels",
65
"id": 933188,
66
"number": 32,
67
"title": "Next Major Release",
68
"description": "after 0.18.0 of course",
69
"creator": {
70
"login": "jreback",
71
"id": 953992,
72
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=3",
73
"gravatar_id": "",
74
"url": "https://api.github.com/users/jreback",
75
"html_url": "https://github.com/jreback",
76
"followers_url": "https://api.github.com/users/jreback/followers",
77
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
78
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
79
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
80
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
81
"organizations_url": "https://api.github.com/users/jreback/orgs",
82
"repos_url": "https://api.github.com/users/jreback/repos",
83
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
84
"received_events_url": "https://api.github.com/users/jreback/received_events",
85
"type": "User",
86
"site_admin": false
87
},
88
"open_issues": 941,
89
"closed_issues": 133,
90
"state": "open",
91
"created_at": "2015-01-13T10:53:19Z",
92
"updated_at": "2016-05-09T15:54:35Z",
93
"due_on": "2016-08-31T04:00:00Z",
94
"closed_at": null
95
},
96
"comments": 11,
97
"created_at": "2016-05-09T15:36:11Z",
98
"updated_at": "2016-05-09T17:35:40Z",
99
"closed_at": null,
100
"body": "#### Code Sample, a copy-pastable example if possible\r\n\r\nFirst noted in discussion here: https://github.com/quantopian/zipline/pull/1190/files/fe5a2a888a498d838c3cc43de2c33ac08b20d2a7#r62506342. This most often matters when passing a value typed in Cython as something like `int64_t[:]`.\r\n\r\nSimple repro cases:\r\n\r\nDatetimeIndex construction fails (looks like trying to parse strings?), and vanilla Index construction returns an array of unicode strings.\r\n```\r\nIn [6]: import pandas as pd; import numpy as np\r\n\r\nIn [7]: pd.__version__, np.__version__\r\nOut[7]: ('0.18.1+20.gaf7bdd3', '1.11.0')\r\n\r\nIn [8]: m = memoryview(np.arange(5))\r\n\r\nIn [9]: pd.DatetimeIndex(m)\r\n---------------------------------------------------------------------------\r\nValueError Traceback (most recent call last)\r\n<ipython-input-9-09b855a663a4> in <module>()\r\n----> 1 pd.DatetimeIndex(m)\r\n\r\n/home/ssanderson/clones/pandas/pandas/util/decorators.pyc in wrapper(*args, **kwargs)\r\n 89 else:\r\n 90 kwargs[new_arg_name] = new_arg_value\r\n---> 91 return func(*args, **kwargs)\r\n 92 return wrapper\r\n 93 return _deprecate_kwarg\r\n\r\n/home/ssanderson/clones/pandas/pandas/tseries/index.pyc in __new__(cls, data, freq, start, end, periods, copy, name, tz, verify_integrity, normalize, closed, ambiguous, dtype, **kwargs)\r\n 283 data = tslib.parse_str_array_to_datetime(data, freq=freq,\r\n 284 dayfirst=dayfirst,\r\n--> 285 yearfirst=yearfirst)\r\n 286 else:\r\n 287 data = tools.to_datetime(data, errors='raise')\r\n\r\n/home/ssanderson/clones/pandas/pandas/tslib.pyx in pandas.tslib.parse_str_array_to_datetime (pandas/tslib.c:39610)()\r\n 2175 except ValueError:\r\n 2176 if is_coerce:\r\n-> 2177 iresult[i] = NPY_NAT\r\n 2178 continue\r\n 2179 raise\r\n\r\nValueError:\r\n\r\nIn [10]: pd.Index(m)\r\nOut[10]: Index([u'', u'', u'', u'', u''], dtype='object')\r\n```\r\n\r\n#### Expected Output\r\n\r\nI'd expect this to either error immediately or provide the same result as coercing the provided memoryview into a numpy array.\r\n\r\n#### output of ``pd.show_versions()``\r\n\r\n```\r\nIn [6]: pd.show_versions()\r\n\r\nINSTALLED VERSIONS\r\n------------------\r\ncommit: af7bdd3883c8d61e9d9388d3aa699930eee7fff8\r\npython: 2.7.10.final.0\r\npython-bits: 64\r\nOS: Linux\r\nOS-release: 4.2.0-16-generic\r\nmachine: x86_64\r\nprocessor: x86_64\r\nbyteorder: little\r\nLC_ALL: None\r\nLANG: en_US.UTF-8\r\n\r\npandas: 0.18.1+20.gaf7bdd3\r\nnose: None\r\npip: 8.1.0\r\nsetuptools: 20.2.2\r\nCython: 0.24\r\nnumpy: 1.11.0\r\nscipy: None\r\nstatsmodels: None\r\nxarray: None\r\nIPython: 4.2.0\r\nsphinx: None\r\npatsy: None\r\ndateutil: 2.5.3\r\npytz: 2016.3\r\nblosc: None\r\nbottleneck: None\r\ntables: None\r\nnumexpr: None\r\nmatplotlib: None\r\nopenpyxl: None\r\nxlrd: None\r\nxlwt: None\r\nxlsxwriter: None\r\nlxml: None\r\nbs4: None\r\nhtml5lib: None\r\nhttplib2: None\r\napiclient: None\r\nsqlalchemy: None\r\npymysql: None\r\npsycopg2: None\r\njinja2: None\r\nboto: None\r\npandas_datareader: None\r\n```\r\n\r\ncc @jbredeche"
101
},
102
{
103
"url": "https://api.github.com/repos/pydata/pandas/issues/13119",
104
"repository_url": "https://api.github.com/repos/pydata/pandas",
105
"labels_url": "https://api.github.com/repos/pydata/pandas/issues/13119/labels{/name}",
106
"comments_url": "https://api.github.com/repos/pydata/pandas/issues/13119/comments",
107
"events_url": "https://api.github.com/repos/pydata/pandas/issues/13119/events",
108
"html_url": "https://github.com/pydata/pandas/issues/13119",
109
"id": 153736417,
110
"number": 13119,
111
"title": "BUG: resample with datetime64 data on series looses dtype",
112
"user": {
113
"login": "jorisvandenbossche",
114
"id": 1020496,
115
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=3",
116
"gravatar_id": "",
117
"url": "https://api.github.com/users/jorisvandenbossche",
118
"html_url": "https://github.com/jorisvandenbossche",
119
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
120
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
121
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
122
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
123
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
124
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
125
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
126
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
127
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
128
"type": "User",
129
"site_admin": false
130
},
131
"labels": [
132
{
133
"url": "https://api.github.com/repos/pydata/pandas/labels/Bug",
134
"name": "Bug",
135
"color": "e10c02"
136
},
137
{
138
"url": "https://api.github.com/repos/pydata/pandas/labels/Difficulty%20Intermediate",
139
"name": "Difficulty Intermediate",
140
"color": "fbca04"
141
},
142
{
143
"url": "https://api.github.com/repos/pydata/pandas/labels/Effort%20Low",
144
"name": "Effort Low",
145
"color": "006b75"
146
},
147
{
148
"url": "https://api.github.com/repos/pydata/pandas/labels/Resample",
149
"name": "Resample",
150
"color": "207de5"
151
}
152
],
153
"state": "open",
154
"locked": false,
155
"assignee": null,
156
"milestone": {
157
"url": "https://api.github.com/repos/pydata/pandas/milestones/40",
158
"html_url": "https://github.com/pydata/pandas/milestones/0.18.2",
159
"labels_url": "https://api.github.com/repos/pydata/pandas/milestones/40/labels",
160
"id": 1639795,
161
"number": 40,
162
"title": "0.18.2",
163
"description": "",
164
"creator": {
165
"login": "jreback",
166
"id": 953992,
167
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=3",
168
"gravatar_id": "",
169
"url": "https://api.github.com/users/jreback",
170
"html_url": "https://github.com/jreback",
171
"followers_url": "https://api.github.com/users/jreback/followers",
172
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
173
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
174
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
175
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
176
"organizations_url": "https://api.github.com/users/jreback/orgs",
177
"repos_url": "https://api.github.com/users/jreback/repos",
178
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
179
"received_events_url": "https://api.github.com/users/jreback/received_events",
180
"type": "User",
181
"site_admin": false
182
},
183
"open_issues": 162,
184
"closed_issues": 27,
185
"state": "open",
186
"created_at": "2016-03-11T21:24:45Z",
187
"updated_at": "2016-05-09T17:09:26Z",
188
"due_on": "2016-06-14T04:00:00Z",
189
"closed_at": null
190
},
191
"comments": 1,
192
"created_at": "2016-05-09T09:27:49Z",
193
"updated_at": "2016-05-09T12:36:41Z",
194
"closed_at": null,
195
"body": "From SO: http://stackoverflow.com/questions/37106810/bug-in-python-pandas-pandas-series-resample-vs-pandas-dataframe-resample\r\n\r\n```\r\nIn [7]: import datetime as dt\r\n\r\nIn [8]: df = pd.DataFrame([[dt.datetime(2016,1,31,15)], [dt.datetime(2016,2,7,17)]], index=[dt.datetime(2016,1,31,15), dt.datetime(2016,2,7,17)], columns=['timestamp'])\r\n\r\nIn [10]: df\r\nOut[10]:\r\n timestamp\r\n2016-01-31 15:00:00 2016-01-31 15:00:00\r\n2016-02-07 17:00:00 2016-02-07 17:00:00\r\n\r\nIn [11]: df.resample('D').first().timestamp\r\nOut[11]:\r\n2016-01-31 2016-01-31 15:00:00\r\n2016-02-01 NaT\r\n2016-02-02 NaT\r\n2016-02-03 NaT\r\n2016-02-04 NaT\r\n2016-02-05 NaT\r\n2016-02-06 NaT\r\n2016-02-07 2016-02-07 17:00:00\r\nFreq: D, Name: timestamp, dtype: datetime64[ns]\r\n\r\nIn [12]: df.timestamp.resample('D').first()\r\nOut[12]:\r\n2016-01-31 1.454252e+18\r\n2016-02-01 NaN\r\n2016-02-02 NaN\r\n2016-02-03 NaN\r\n2016-02-04 NaN\r\n2016-02-05 NaN\r\n2016-02-06 NaN\r\n2016-02-07 1.454864e+18\r\nFreq: D, Name: timestamp, dtype: float64\r\n\r\n```\r\n\r\nTested it with latest master"
196
},
197
{
198
"url": "https://api.github.com/repos/pydata/pandas/issues/13117",
199
"repository_url": "https://api.github.com/repos/pydata/pandas",
200
"labels_url": "https://api.github.com/repos/pydata/pandas/issues/13117/labels{/name}",
201
"comments_url": "https://api.github.com/repos/pydata/pandas/issues/13117/comments",
202
"events_url": "https://api.github.com/repos/pydata/pandas/issues/13117/events",
203
"html_url": "https://github.com/pydata/pandas/pull/13117",
204
"id": 153670017,
205
"number": 13117,
206
"title": "BUG: GH12896 where extra elements are returned in MultiIndex slicing",
207
"user": {
208
"login": "kawochen",
209
"id": 10709573,
210
"avatar_url": "https://avatars.githubusercontent.com/u/10709573?v=3",
211
"gravatar_id": "",
212
"url": "https://api.github.com/users/kawochen",
213
"html_url": "https://github.com/kawochen",
214
"followers_url": "https://api.github.com/users/kawochen/followers",
215
"following_url": "https://api.github.com/users/kawochen/following{/other_user}",
216
"gists_url": "https://api.github.com/users/kawochen/gists{/gist_id}",
217
"starred_url": "https://api.github.com/users/kawochen/starred{/owner}{/repo}",
218
"subscriptions_url": "https://api.github.com/users/kawochen/subscriptions",
219
"organizations_url": "https://api.github.com/users/kawochen/orgs",
220
"repos_url": "https://api.github.com/users/kawochen/repos",
221
"events_url": "https://api.github.com/users/kawochen/events{/privacy}",
222
"received_events_url": "https://api.github.com/users/kawochen/received_events",
223
"type": "User",
224
"site_admin": false
225
},
226
"labels": [
227
{
228
"url": "https://api.github.com/repos/pydata/pandas/labels/Bug",
229
"name": "Bug",
230
"color": "e10c02"
231
},
232
{
233
"url": "https://api.github.com/repos/pydata/pandas/labels/Indexing",
234
"name": "Indexing",
235
"color": "0b02e1"
236
},
237
{
238
"url": "https://api.github.com/repos/pydata/pandas/labels/MultiIndex",
239
"name": "MultiIndex",
240
"color": "207de5"
241
}
242
],
243
"state": "open",
244
"locked": false,
245
"assignee": null,
246
"milestone": null,
247
"comments": 0,
248
"created_at": "2016-05-08T18:22:44Z",
249
"updated_at": "2016-05-08T18:37:38Z",
250
"closed_at": null,
251
"pull_request": {
252
"url": "https://api.github.com/repos/pydata/pandas/pulls/13117",
253
"html_url": "https://github.com/pydata/pandas/pull/13117",
254
"diff_url": "https://github.com/pydata/pandas/pull/13117.diff",
255
"patch_url": "https://github.com/pydata/pandas/pull/13117.patch"
256
},
257
"body": " - [x] closes #12896\r\n - [ ] tests added / passed\r\n - [x] passes ``git diff upstream/master | flake8 --diff``\r\n - [x] whatsnew entry\r\n\r\nIs this the right way to do this?\r\n\r\ncc @MaximilianR "
258
},
259
{
260
"url": "https://api.github.com/repos/pydata/pandas/issues/13116",
261
"repository_url": "https://api.github.com/repos/pydata/pandas",
262
"labels_url": "https://api.github.com/repos/pydata/pandas/issues/13116/labels{/name}",
263
"comments_url": "https://api.github.com/repos/pydata/pandas/issues/13116/comments",
264
"events_url": "https://api.github.com/repos/pydata/pandas/issues/13116/events",
265
"html_url": "https://github.com/pydata/pandas/pull/13116",
266
"id": 153661517,
267
"number": 13116,
268
"title": "Validate Timestamp with invalid offset raises ValueError",
269
"user": {
270
"login": "gliptak",
271
"id": 50109,
272
"avatar_url": "https://avatars.githubusercontent.com/u/50109?v=3",
273
"gravatar_id": "",
274
"url": "https://api.github.com/users/gliptak",
275
"html_url": "https://github.com/gliptak",
276
"followers_url": "https://api.github.com/users/gliptak/followers",
277
"following_url": "https://api.github.com/users/gliptak/following{/other_user}",
278
"gists_url": "https://api.github.com/users/gliptak/gists{/gist_id}",
279
"starred_url": "https://api.github.com/users/gliptak/starred{/owner}{/repo}",
280
"subscriptions_url": "https://api.github.com/users/gliptak/subscriptions",
281
"organizations_url": "https://api.github.com/users/gliptak/orgs",
282
"repos_url": "https://api.github.com/users/gliptak/repos",
283
"events_url": "https://api.github.com/users/gliptak/events{/privacy}",
284
"received_events_url": "https://api.github.com/users/gliptak/received_events",
285
"type": "User",
286
"site_admin": false
287
},
288
"labels": [
289
{
290
"url": "https://api.github.com/repos/pydata/pandas/labels/Error%20Reporting",
291
"name": "Error Reporting",
292
"color": "ffa0ff"
293
},
294
{
295
"url": "https://api.github.com/repos/pydata/pandas/labels/Timeseries",
296
"name": "Timeseries",
297
"color": "AFEEEE"
298
}
299
],
300
"state": "open",
301
"locked": false,
302
"assignee": null,
303
"milestone": null,
304
"comments": 0,
305
"created_at": "2016-05-08T15:25:36Z",
306
"updated_at": "2016-05-08T17:32:03Z",
307
"closed_at": null,
308
"pull_request": {
309
"url": "https://api.github.com/repos/pydata/pandas/pulls/13116",
310
"html_url": "https://github.com/pydata/pandas/pull/13116",
311
"diff_url": "https://github.com/pydata/pandas/pull/13116.diff",
312
"patch_url": "https://github.com/pydata/pandas/pull/13116.patch"
313
},
314
"body": " - [x] closes #11630\r\n - [x] tests added / passed\r\n - [x] passes ``git diff upstream/master | flake8 --diff``\r\n - [ ] whatsnew entry\r\n\r\n"
315
},
316
{
317
"url": "https://api.github.com/repos/pydata/pandas/issues/13115",
318
"repository_url": "https://api.github.com/repos/pydata/pandas",
319
"labels_url": "https://api.github.com/repos/pydata/pandas/issues/13115/labels{/name}",
320
"comments_url": "https://api.github.com/repos/pydata/pandas/issues/13115/comments",
321
"events_url": "https://api.github.com/repos/pydata/pandas/issues/13115/events",
322
"html_url": "https://github.com/pydata/pandas/pull/13115",
323
"id": 153658327,
324
"number": 13115,
325
"title": "[BUG] Reading multiindex, incorrectly names columns without name.",
326
"user": {
327
"login": "brandys11",
328
"id": 5340467,
329
"avatar_url": "https://avatars.githubusercontent.com/u/5340467?v=3",
330
"gravatar_id": "",
331
"url": "https://api.github.com/users/brandys11",
332
"html_url": "https://github.com/brandys11",
333
"followers_url": "https://api.github.com/users/brandys11/followers",
334
"following_url": "https://api.github.com/users/brandys11/following{/other_user}",
335
"gists_url": "https://api.github.com/users/brandys11/gists{/gist_id}",
336
"starred_url": "https://api.github.com/users/brandys11/starred{/owner}{/repo}",
337
"subscriptions_url": "https://api.github.com/users/brandys11/subscriptions",
338
"organizations_url": "https://api.github.com/users/brandys11/orgs",
339
"repos_url": "https://api.github.com/users/brandys11/repos",
340
"events_url": "https://api.github.com/users/brandys11/events{/privacy}",
341
"received_events_url": "https://api.github.com/users/brandys11/received_events",
342
"type": "User",
343
"site_admin": false
344
},
345
"labels": [
346
{
347
"url": "https://api.github.com/repos/pydata/pandas/labels/Bug",
348
"name": "Bug",
349
"color": "e10c02"
350
},
351
{
352
"url": "https://api.github.com/repos/pydata/pandas/labels/IO%20Excel",
353
"name": "IO Excel",
354
"color": "bfe5bf"
355
}
356
],
357
"state": "open",
358
"locked": false,
359
"assignee": null,
360
"milestone": null,
361
"comments": 1,
362
"created_at": "2016-05-08T14:18:28Z",
363
"updated_at": "2016-05-08T14:57:28Z",
364
"closed_at": null,
365
"pull_request": {
366
"url": "https://api.github.com/repos/pydata/pandas/pulls/13115",
367
"html_url": "https://github.com/pydata/pandas/pull/13115",
368
"diff_url": "https://github.com/pydata/pandas/pull/13115.diff",
369
"patch_url": "https://github.com/pydata/pandas/pull/13115.patch"
370
},
371
"body": " - [x] closes #12453\r\n - [x] tests added / passed\r\n - [x] passes ``git diff upstream/master | flake8 --diff``\r\n - [x] whatsnew entry\r\n\r\nFixed reading and writing of Multiindex. \r\nIn a situation where Multiindex looked like this:\r\n\r\n| One | Two |\r\n| ------ | ----- |\r\n| X | |\r\n\r\nit was changed to: \r\n\r\n| One | Two |\r\n| ------ | ----- |\r\n| X | X |"
372
}
373
]
374
375