Commit Graph

14346 Commits

Author SHA1 Message Date
Jeff Reback f453f9e094 [Backport #14466] BUG: incorrect broadcasting that could casuse dtype coercion in a groupby-transform
closes #14457

Author: Jeff Reback <jeff@reback.net>

Closes #14466 from jreback/transform and squashes the following commits:

ce595b9 [Jeff Reback] BUG: incorrect broadcasting that could casuse dtype coercion in a groupby-transform

(cherry picked from commit f99f050aaf)
2016-11-02 11:47:40 +01:00
Jon M. Mease 1b53159657 [Backport #14342] Bug: Error when key-only Grouper is passed to groupby in a list (GH14334)
closes #14334

Author: Jon M. Mease <jon.mease@jhuapl.edu>

Closes #14342 from jmmease/bug_14334 and squashes the following commits:

5e96797 [Jon M. Mease] Add tests for grouping on two columns
cee5ce6 [Jon M. Mease] Added bug description to new test case
f9ef05b [Jon M. Mease] Moved whatsnew to 0.19.1 and clarified description
14a4ae6 [Jon M. Mease] Added whatsnew for GH 14334
9805c30 [Jon M. Mease] Fix for GH 14334
dfd3e09 [Jon M. Mease] Added test case for GH 14334

(cherry picked from commit 48520083ae)
2016-11-02 11:46:35 +01:00
paul-mannino f77c1082d1 [Backport #14431] BUG: Fix issue with inserting duplicate columns in a dataframe
closes #14291
closes #14431

(cherry picked from commit 2e77536bdf)
2016-11-02 11:44:57 +01:00
Joe Jevnik 441990729b [Backport #14359] BUG: block mutation of read-only array in series
Author: Joe Jevnik <joe@quantopian.com>

Closes #14359 from llllllllll/series-setitem and squashes the following commits:

9925327 [Joe Jevnik] BUG: fix a bug in Series.__setitem__ that allowed the mutatation of read-only arrays

(cherry picked from commit 5cf6d9406c)
2016-11-02 11:44:08 +01:00
David Krych 6400cdd3c1 [Backport 14346] BUG: GH14323 Union of differences from DatetimeIndex incorrect
closes #14323

Sets freq to None when doing a difference operation on a DatetimeIndex
or TimedeltaIndex, rather than retaining the frequency (which can
cause  problems with downstream operations). Frequency of PeriodIndex
is retained.

Author: David Krych <davidk@ciphercap.com>

Closes #14346 from Liam3851/dtind_diff_14323 and squashes the following commits:

1dbf582 [David Krych] BUG: GH14323 Union of differences from DatetimeIndex incorrect

(cherry picked from commit bee90a7c50)
2016-11-02 00:54:04 +01:00
Keshav Ramaswamy 9bca038aae [Backport #14452] DOC: updated docstring in .to_datetime() for out-of-bounds timestamps
with errors='ignore'

closes #14448

Author: Keshav Ramaswamy <keshav.ramaswamy@gmail.com>
Author: Keshav Ramaswamy <keshav.ramaswamy@infor.com>

Closes #14452 from keshavramaswamy/master and squashes the following commits:

5468fc5 [Keshav Ramaswamy] added link to timestamp limitations in docstring
3aa78cf [Keshav Ramaswamy] edit docstring to fit python standards
8bfa58e [Keshav Ramaswamy] edited docstring to fit python standards
5ed8ef5 [Keshav Ramaswamy] edut docstring to fit Python Standards
7402de4 [Keshav Ramaswamy] edited docstring to fit python standards
c16ad6b [Keshav Ramaswamy] added timestamp limitations and default behavior to docstring
0db07b5 [Keshav Ramaswamy] updated docstring in .to_datetime()

(cherry picked from commit 18fba53089)
2016-11-02 00:26:01 +01:00
Chris b2e81269dd [Backport #14475] BLD: don't require cython on sdist install
closes #14475
closes #14204

(cherry picked from commit 192b1cd510)
2016-11-02 00:25:22 +01:00
Joris Van den Bossche 154883bef2 [Backport #14481] BUG: fix empty intersection of RangeIndex (GH14364)
closes #14364

Author: Joris Van den Bossche <jorisvandenbossche@gmail.com>

Closes #14481 from jorisvandenbossche/bug-rangeindex-empty and squashes the following commits:

823e83d [Joris Van den Bossche] BUG: fix empty intersection of RangeIndex (GH14364)

(cherry picked from commit fe2ebc15d6)
2016-11-02 00:23:46 +01:00
Thiago Serafim 6ff4108211 [Backport #14473] ERR: Fix GH13139: better error message on invalid pd.eval and df.query input
closes #13139

Added test case to check for invalid input(empy string) on pd.eval('')
and df.query('').  Used existing helper function(_check_expression)

Author: Thiago Serafim <thiago.serafim@gmail.com>

Closes #14473 from tserafim/issue#13139 and squashes the following commits:

77483dd [Thiago Serafim] ERR: correctly raise ValueError on empty input to pd.eval() and df.query() (#13139)
9a5c55f [Thiago Serafim] Fix GH13139: better error message on invalid pd.eval and df.query input

(cherry picked from commit 13088842a7)
2016-11-02 00:23:20 +01:00
Sinhrks 920122c524 [Backport #14424] BUG: String indexing against object dtype may raise AttributeError (#14424)
(cherry picked from commit 233d51dd09)
2016-11-02 00:22:37 +01:00
Joris Van den Bossche 70d20b64e9 [Backport #14430] DOC: correct DataFrame.pivot docstring (#14430)
The mention of panels that are created is not correct. You get a multi-index
(cherry picked from commit aff20eb2d0)
2016-11-02 00:21:59 +01:00
gfyoung c93ba9f8f2 [Backport 14453] BUG: Catch overflow in both directions for checked add (#14453)
1) Add checks to ensure that add overflow does not
   occur both in the positive or negative directions.
2) Add benchmarks to ensure that operations involving
   this checked add function are significantly impacted.
(cherry picked from commit 83a380c95f)
2016-11-02 00:21:21 +01:00
Michael Felt 89bb7241a7 [Backport 14441] Update unpack_template.h (#14441)
USE_CASE_RANGE is a GNU C feature. This change will activate
USE_CASE_RANGE on any platform when using GNU C and not on any platform
when a different compiler is being used.

closes #14373
(cherry picked from commit 794f792954)
2016-11-02 00:20:42 +01:00
chris-b1 68ca401f23 [Backport 14433] BUG: underflow on Timestamp creation (#14433)
* BUG: underflow on Timestamp creation

* undo change to lower bound

* change lower bound; but keep rounding to us

(cherry picked from commit 65362aa4f0)
2016-11-02 00:19:17 +01:00
sinhrks 4ac32957f3 BUG: pivot_table may raise TypeError without values
``pivot_table`` raises TypeError`` when ``index`` or ``columns`` is array-like and
``values`` is not specified.

Author: sinhrks <sinhrks@gmail.com>

Closes #14380 from sinhrks/pivot_table_bug and squashes the following commits:

be426db [sinhrks] BUG: pivot_table may raise TypeError without values

(cherry picked from commit 921ce47c1a)
2016-11-02 00:15:23 +01:00
Iván Vallés Pérez b0e4589194 [Backport #14434] ERR: Checks for left_index and right_index merge parameters
Author: Iván Vallés Pérez <ivanvallesperez@gmail.com>

Closes #14434 from ivallesp/add-check-for-merge-indices and squashes the following commits:

e18b7c9 [Iván Vallés Pérez] Add some checks for assuring that the left_index and right_index parameters have correct types. Tests added.

(cherry picked from commit 2d3a739b44)
2016-11-01 23:44:21 +01:00
dubourg 9857248cf6 [Backport #14449] Type codes and categories as lists instead of tuples in _factorize_from_iterables (fixes #14438)
(cherry picked from commit 0b6946bbe8)
2016-11-01 23:42:38 +01:00
Jeff Reback a1e73ee2ae [Backport #14429] PERF: improved perf in .to_json when lines=True
closes #14408

(cherry picked from commit 7cad3f16bc)
2016-11-01 23:41:04 +01:00
Brandon M. Burroughs 2683e81404 [Backport ##14416] BUG: Concat with axis rows
closes #14369

Author: Brandon M. Burroughs <brandonmburroughs@gmail.com>

Closes #14416 from brandonmburroughs/concat_with_axis_rows and squashes the following commits:

9aa260d [Brandon M. Burroughs] Changing axis handling to depend on object passed
49442be [Brandon M. Burroughs] Using dataframe _get_axis_number instance method
64702fb [Brandon M. Burroughs] Updating documentation for concat
fdd5260 [Brandon M. Burroughs] Removing duplicate expected dfs
3f08b07 [Brandon M. Burroughs] Adding concat tests for axis 0, 1, and 'index'
cf3f998 [Brandon M. Burroughs] Adding ValueError test for concat Series axis 'columns'
a6694b9 [Brandon M. Burroughs] Updating documentation
584ebd2 [Brandon M. Burroughs] BUG: Allow concat to take string axis names

(cherry picked from commit fd3be00bc4)
2016-11-01 23:37:59 +01:00
chris-b1 6a3755b0b7 PERF: Period factorization (#14419) 2016-10-15 21:27:11 +02:00
Jon Mease e70252b794 Bug: Grouping by index and column fails on DataFrame with single index (GH14327) (#14428)
Existing logic under "if level is not None:" assumed that index was a MultiIndex.
Now we check and also handle the case where an Index is passed in with a None grouper.
This resolves GH 14327
2016-10-15 21:25:41 +02:00
Josh Owen 286b9b94d9 BUG: fix json with lines=True for quoted special characters
closes #14391
closes #14390
2016-10-15 09:37:20 -04:00
Jeff Reback 7d40f18718 DOC: pydata/pandas -> pandas-dev/pandas (#14409) 2016-10-13 21:59:21 +02:00
Jeff Reback a40e185bd1 BUG: Bug in localizing an ambiguous timezone when a boolean is passed
closes #14402
closes #14405
2016-10-13 06:13:33 -04:00
Adam Chainz 4d7c6e7d98 Convert readthedocs links for their .org -> .io migration for hosted projects (#14406)
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.
2016-10-13 00:10:31 +02:00
Jeff Reback e9d17cda78 DOC: formatting in basics.rst 2016-10-12 17:10:13 -04:00
chris-b1 1369e12035 BLD/CI: cython cache pxd files (#14363) 2016-10-12 11:15:49 +02:00
bkandel d98e982ecb BUG: set_levels set illegal levels. (#14236)
`MultiIndex.set_levels`, when passed in illegal level values, raises an error.
When `inplace=True`, though, the illegal level values are still accepted. This
commit fixes that behavior by checking that the proposed level values are legal
before setting them.
2016-10-10 14:30:22 +02:00
Jeff Reback 0407991b19 DOC: add whitespace to v0.19.1 bug fix section 2016-10-09 13:45:57 -04:00
Jeff Reback f9ebeaeb08 change impl details slightly for #14292 2016-10-09 13:36:26 -04:00
Ben Kandel 16b64f1cc2 BUG: Fix concat key name
closes #14252
Fixes a bug where `pd.concat` didn't propagate the names of keys used to
create  a hierarchical index.

Author: Ben Kandel <ben.kandel@gmail.com>

Closes #14292 from bkandel/fix_concat_key_name and squashes the following commits:

cdc76f6 [Ben Kandel] take out _ensure_index
4a301f8 [Ben Kandel] put back in Index coercion
d8e2c17 [Ben Kandel] remove coercion to Index before _ensure_index
44932cc [Ben Kandel] changed whatsnew entry to 0.19.1
c51df19 [Ben Kandel] _ensure_index
b54b081 [Ben Kandel] simplified logic
3256119 [Ben Kandel] typo
789ecd4 [Ben Kandel] use _ensure_index
350e724 [Ben Kandel] simplified logic
9615a69 [Ben Kandel] extra tests
5c0108b [Ben Kandel] comments
dd3c4cc [Ben Kandel] comments
5cd8392 [Ben Kandel] added test for names
bc5f1fb [Ben Kandel] cleanup
ef6db68 [Ben Kandel] BUG: Propagate key names in concat.
2016-10-09 13:32:51 -04:00
Joris Van den Bossche daba8e5523 DOC: add 0.19.1 whatsnew file (#14366) 2016-10-07 21:25:31 +02:00
Tom Bird ee374ee3bc DOC: to_csv warns regarding quoting behaviour for floats #14195 (#14228)
Added a small warning that if `float_format` is set then floats will be quoted even if csv.QUOTE_NONNUMERIC is set
2016-10-06 18:04:57 +02:00
Joris Van den Bossche 61bb4edd71 DOC: fix formatting issue with msgpack table 2016-10-06 17:57:34 +02:00
mattrijk 58542e8336 TST: #14345 fixes TestDatetimeIndexOps test_nat AssertionErrors on 32-bit
closes #14345

Author: mattrijk <matthewrijk@gmail.com>

Closes #14347 from MattRijk/issue#14345 and squashes the following commits:

73ad3d7 [mattrijk] line 2710 formatting update for whitespace
ea4f151 [mattrijk] second formatting update for whitespace
262492f [mattrijk] TST: #14345 fixes TestDatetimeIndexOps test_nat AssertionErors
2016-10-06 06:22:55 -04:00
Arash Rouhani 507e037334 docs: Remove old warning from dsintro.rst (#14365)
The warning is about something that have been fixed for almost 3 years. Every time a new user excited about pandas start reading the docs, they have to waste brain-cycles ignoring that big red warning bubble.
2016-10-06 11:25:23 +02:00
Jeff Reback 96b364a4a3 DOC: minor v0.19.0 whatsnew corrections 2016-10-02 13:40:51 -04:00
Joris Van den Bossche b97dbd01e4 RLS: v0.19.0 2016-10-02 15:53:05 +02:00
Joris Van den Bossche 69aef3b362 DOC: update release notes 2016-10-02 15:48:03 +02:00
Joris Van den Bossche ef17f8d90d DOC: Latest fixes for whatsnew file 2016-10-02 15:47:43 +02:00
Nicolas Bonnotte 04f6cde531 to_latex encoding follows the documentation (py2 ascii, py3 utf8) (#14329)
* to_latex: encoding default follows the documentation (py2 ascii, py3 utf8)

* Adapt tests: codecs.open with explicit encoding parameter
2016-10-02 13:56:58 +02:00
Joris Van den Bossche db79aa717a DOC: fix some sphinx build issues (#14332)
* DOC: proper rst syntax for table

* DOC: fix 'Unexpected indentation'

* DOC: fix links to offset aliases
2016-10-02 10:58:10 +02:00
Joris Van den Bossche f256ad8138 TST: fix period tests for numpy 1.9.3 (GH14183) (#14331) 2016-10-02 10:45:53 +02:00
Joris Van den Bossche 6dcc23862b BUG: fix alignment in series ops (GH14227) (#14230)
* BUG: fix alignment in series ops (GH14227)

* BUG: fix align in case of different tz but aligning values
2016-09-30 23:23:35 +02:00
Chris ad92aeec3a BUG: date slicing with reverse sorted index
closes #14316

Author: Chris <cbartak@gmail.com>

Closes #14317 from chris-b1/rev-date-slice and squashes the following commits:

04feea1 [Chris] add comment / clarity
dbace2b [Chris] BUG: date slicing with rev index
2016-09-30 06:06:49 -04:00
Joris Van den Bossche b99cb7ab22 TST/TEMP: fix pyqt to 4.x for plotting tests 2016-09-30 11:30:44 +02:00
Jeff Reback 5033a4a799 PERF: unnecessary materialization of a MultiIndex.values when introspecting memory (#14308)
closes #14308
2016-09-28 14:01:18 -04:00
Chris c084bc1807 DOC: expand doc for numeric_only
closes #10480

Author: Chris <cbartak@gmail.com>

Closes #14309 from chris-b1/numeric-only-doc and squashes the following commits:

c9657fc [Chris] DOC: expand doc for numeric_only
2016-09-28 06:08:11 -04:00
Christopher C. Aycock df50e88f6d BUG: Index.copy() honors 'name' parameter (#14302)
closes #14302

Author: Christopher C. Aycock <christopher.aycock@twosigma.com>

Closes #14303 from chrisaycock/master and squashes the following commits:

bbfc79f [Christopher C. Aycock] BUG: Index.copy() honors 'name' parameter (#14302)
2016-09-27 19:42:09 -04:00
Jeff Reback 71df09cfb3 PERF: faster grouping
closes #14293

Author: Jeff Reback <jeff@reback.net>

Closes #14294 from jreback/groupby and squashes the following commits:

82d19dd [Jeff Reback] PERF: faster grouping
2016-09-27 18:08:52 -04:00