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)
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)
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)
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)
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)
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)
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)
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)
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)
* BUG: underflow on Timestamp creation
* undo change to lower bound
* change lower bound; but keep rounding to us
(cherry picked from commit 65362aa4f0)
``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)
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)
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)
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
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.
`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.
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.
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
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.
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
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
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)
closes#14293
Author: Jeff Reback <jeff@reback.net>
Closes#14294 from jreback/groupby and squashes the following commits:
82d19dd [Jeff Reback] PERF: faster grouping