title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
Use dispatch_to_series where possible
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 74f760f382c76..d577cfbbd460d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4806,13 +4806,14 @@ def _arith_op(left, right): return ops.dispatch_to_series(this, other, _arith_op) else: result = _arith_op(t...
Broken off from #22534, since that ended up surfacing a bug elsewhere.
https://api.github.com/repos/pandas-dev/pandas/pulls/22572
2018-09-01T17:27:14Z
2018-09-05T11:29:54Z
2018-09-05T11:29:54Z
2018-09-05T13:43:02Z
DOC: Updating str_repeat docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..776058bd45d22 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -675,20 +675,42 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True): def str_repeat(arr, repeats): """ - Duplicate each stri...
https://api.github.com/repos/pandas-dev/pandas/pulls/22571
2018-09-01T14:30:12Z
2018-09-18T12:40:46Z
2018-09-18T12:40:46Z
2018-10-04T16:08:24Z
DOC: Updating str_pad docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..c32431ac253b2 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1314,23 +1314,57 @@ def str_index(arr, sub, start=0, end=None, side='left'): def str_pad(arr, width, side='left', fillchar=' '): """ - Pad strin...
Added Examples to docstring. Added documentation to each part of docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/22570
2018-09-01T14:29:42Z
2018-09-25T16:49:13Z
2018-09-25T16:49:13Z
2018-09-25T17:16:07Z
DOC: Updating str_slice docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 861739f6c694c..5a23951145cb4 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1437,17 +1437,69 @@ def str_rsplit(arr, pat=None, n=None): def str_slice(arr, start=None, stop=None, step=None): """ - Slice substrings from eac...
Added Examples to docstring. Added documentation to each part of docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/22569
2018-09-01T14:29:01Z
2018-10-04T18:56:00Z
2018-10-04T18:56:00Z
2018-10-04T19:13:49Z
DOC: Formatting in Series.str.extractall
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..75d3349f93540 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -942,19 +942,23 @@ def str_extractall(arr, pat, flags=0): Parameters ---------- - pat : string - Regular expression pattern with captu...
In Series.str.extractall, corrected the formatting in the return value and added a period at the end of the parameter descriptions. Can also clarify descriptions if useful. - [ ] closes #xxxx - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``...
https://api.github.com/repos/pandas-dev/pandas/pulls/22565
2018-09-01T12:34:03Z
2018-09-18T12:46:36Z
2018-09-18T12:46:36Z
2018-09-18T12:46:36Z
BUG: Fix (22477) dtype=str converts NaN to 'n'
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index da48d10e9ef58..ba29a17057d02 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1443,6 +1443,7 @@ Reshaping - Bug in :func:`merge_asof` where confusing error message raised when attempting to merge ...
- [x] closes #22477 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Now: ``` >>> import pandas as pd >>> result = pd.Series(index=range(5), dtype=str) >>> result 0 NaN 1 NaN 2 NaN 3 NaN 4 NaN dtype: object ``` This i...
https://api.github.com/repos/pandas-dev/pandas/pulls/22564
2018-09-01T12:08:09Z
2018-11-20T15:26:30Z
2018-11-20T15:26:30Z
2018-11-20T15:27:16Z
DOC: Deleted 'replaced' from Returns docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..79122a677fd09 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -558,7 +558,10 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True): Returns ------- - replaced : Series/Index of objects...
Deleted the word 'replaced' from the Returns section of the docstring, since it is an unnecessary local variable name.
https://api.github.com/repos/pandas-dev/pandas/pulls/22563
2018-09-01T11:50:19Z
2018-09-02T16:07:00Z
2018-09-02T16:07:00Z
2018-09-02T16:07:48Z
DOC: fix return type of str.extract
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..e078f6ce3d5c7 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -854,8 +854,9 @@ def str_extract(arr, pat, flags=0, expand=True): pat : string Regular expression pattern with capturing groups. flags : ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22562
2018-09-01T09:53:33Z
2018-09-03T16:37:59Z
2018-09-03T16:37:59Z
2018-09-03T16:37:59Z
BUG: DataFrame.apply not adding a frequency if freq=None (#22150)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..fe74258325902 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -635,7 +635,7 @@ Datetimelike - Bug in :meth:`DataFrame.eq` comparison against ``NaT`` incorrectly returning ``True`` o...
- [x] closes #22150 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22561
2018-09-01T08:55:02Z
2018-09-18T12:29:00Z
2018-09-18T12:28:59Z
2018-09-18T12:29:02Z
TST: Continue collecting arithmetic tests
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index 9ede1a62aaf2e..d3957330f11e4 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -42,6 +42,30 @@ def test_operator_series_comparison_zerorank(self): expected = ...
This is split off of #22350, which may have been too ambitious. tests/test_arithmetic.py is moved to tests/arithmetic/test_timedelta64.py. Aside from being moved it is untouched.
https://api.github.com/repos/pandas-dev/pandas/pulls/22559
2018-09-01T01:07:59Z
2018-09-08T02:48:04Z
2018-09-08T02:48:04Z
2018-09-08T03:24:32Z
[ENH] pull in warning for dialect change from pandas-gbq
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..2ba4a6d58d20f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -170,9 +170,9 @@ Other Enhancements - :meth:`Series.droplevel` and :meth:`DataFrame.droplevel` are now implemented (:is...
- [x] ~closes~ towards https://github.com/pydata/pandas-gbq/issues/195 - [x] tests added / passed (N/A) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22557
2018-08-31T17:41:20Z
2018-09-18T12:29:48Z
2018-09-18T12:29:48Z
2018-09-18T12:29:51Z
CLN: modernize string formatting
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index 42dda15ea2cbb..1efef480f3a29 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -55,8 +55,9 @@ cpdef map_indices_{{name}}(ndarray[{{c_type}}] index): Better to d...
Broken off from #22283. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22553
2018-08-31T15:01:08Z
2018-09-01T17:28:02Z
2018-09-01T17:28:02Z
2018-09-01T17:31:18Z
Correct assert_frame_equal doc string
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 1eedb9e2a8274..089e35e8e93b2 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1306,33 +1306,40 @@ def assert_frame_equal(left, right, check_dtype=True, check_categorical=True, check_lik...
Correct default values in assert_frame_equal doc string
https://api.github.com/repos/pandas-dev/pandas/pulls/22552
2018-08-31T13:36:39Z
2018-09-03T16:46:55Z
2018-09-03T16:46:55Z
2018-09-03T16:46:55Z
Fix incorrect DTI/TDI indexing; warn before dropping tzinfo
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 8445a28a51a5d..7d7dc7f0f17b5 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -525,6 +525,7 @@ Datetimelike API Changes - :class:`DateOffset` objects are now immutable. Attempting to alter one of t...
Slight hodge-podge. #21333 is about `to_period` method on DatetimeIndex silently dropping timezone info. This PR makes `DatetimeIndex.to_period` and `Timestamp.to_period` issue a warning when losing timezone info. #20464 is entirely unrelated, notes that `pd.date_range('1970-01-01', period=2).get_loc(pd.Timede...
https://api.github.com/repos/pandas-dev/pandas/pulls/22549
2018-08-31T03:12:23Z
2018-09-08T02:44:22Z
2018-09-08T02:44:21Z
2018-09-08T03:11:14Z
Typo: UCT -> UTC
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index a287557297cc9..f5d1007dfbbbb 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -2228,7 +2228,7 @@ To remove timezone from tz-aware ``DatetimeIndex``, use ``tz_localize(None)`` or didx.tz_convert(None) # tz_convert...
- [(no issue)] closes #xxxx - [(didn't change code)] tests added / passed - [(didn't change .py files)] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [(seems unnecessary)] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22548
2018-08-30T22:07:46Z
2018-08-31T10:00:27Z
2018-08-31T10:00:27Z
2018-08-31T10:00:30Z
CLN: use 'codes' rather than 'values' internally in Categorical
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index fa8ce61f1f4bc..9b7320bf143c2 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1736,7 +1736,7 @@ def fillna(self, value=None, method=None, limit=None): raise NotImplementedError...
In some places a variable has the name ``values``, where ``codes`` would be more logical, as we're dealing with codes. This makes it a bit easier to understand what we're looking at when reading IMO,
https://api.github.com/repos/pandas-dev/pandas/pulls/22547
2018-08-30T21:18:20Z
2018-08-31T10:01:27Z
2018-08-31T10:01:27Z
2018-08-31T10:02:47Z
DOC: Fix copy-pasted name in `.day_name` docstring
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 1dd34cdf73ab5..59d2f33b00c63 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -793,17 +793,27 @@ def month_name(self, locale=None): """ Return the month names of the DateTimeIndex ...
Just a small change... Feel free to close and include this change in any other typo-fixing commit if you like. :blush:
https://api.github.com/repos/pandas-dev/pandas/pulls/22544
2018-08-30T16:38:49Z
2018-09-08T03:02:22Z
2018-09-08T03:02:22Z
2018-09-08T03:02:26Z
Added capture_stderr decorator to test_validate_docstrings
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 1eedb9e2a8274..1f6214e64f9c2 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -673,7 +673,7 @@ def capture_stderr(f): AssertionError: assert 'foo\n' == 'bar\n' """ - @wraps(f) + @compat.wraps(f) def wrapper(*arg...
- [X] closes #22483 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Originally thought it would be nice to have this as a class decorator, but usage of this conflicts with the `capsys` fixture used by `test_bad_examples` so had to pick and choos...
https://api.github.com/repos/pandas-dev/pandas/pulls/22543
2018-08-30T15:13:19Z
2018-09-04T21:47:45Z
2018-09-04T21:47:45Z
2020-01-16T00:34:28Z
DOC: Improve the docstring of DataFrame.equals()
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 85bd6065314f4..dd5552151f61b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1303,8 +1303,85 @@ def __invert__(self): def equals(self, other): """ - Determines if two NDFrame objects contain the same elements....
- [X] closes #22462 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``` ################################################################################ ##################### Docstring (pandas.DataFrame.equals) ##################### ########...
https://api.github.com/repos/pandas-dev/pandas/pulls/22539
2018-08-30T01:41:21Z
2018-09-05T23:34:52Z
2018-09-05T23:34:52Z
2018-09-05T23:34:52Z
DEPR: deprecate integer add/sub with DTI/TDI/PI/Timestamp/Period
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index de111072bef02..22427e1ada1ad 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -955,6 +955,56 @@ Deprecations - :meth:`Timestamp.tz_localize`, :meth:`DatetimeIndex.tz_localize`, and :meth:`Series.tz...
Discussed in #21939; these operations cause headaches and internal-inconsistencies (e.g. ATM `Timedelta` is the only one of the related classes that doesn't support integer ops) - [x] closes #21939 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry...
https://api.github.com/repos/pandas-dev/pandas/pulls/22535
2018-08-29T18:12:08Z
2018-11-01T00:50:33Z
2018-11-01T00:50:33Z
2018-12-16T15:53:46Z
TST: Move tests/scripts to scripts/tests
diff --git a/Makefile b/Makefile index 4a82566cf726e..4a4aca21e1b78 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ build: clean_pyc python setup.py build_ext --inplace lint-diff: - git diff master --name-only -- "*.py" | grep "pandas" | xargs flake8 + git diff master --name-only -- "*.py" | grep -E "pandas...
Moves the `tests/scripts` directory to `scripts/tests`, as these tests don't really belong in the top-level `pandas` directory (they test the `scripts` directory, not `pandas`).
https://api.github.com/repos/pandas-dev/pandas/pulls/22531
2018-08-29T00:59:27Z
2018-09-01T21:56:36Z
2018-09-01T21:56:36Z
2018-09-01T21:57:47Z
CLN: remove unused np version check
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index fe993ecc0cdd7..fdcb41da46303 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -18,8 +18,6 @@ cnp.import_array() cimport util from lib import maybe_convert_objects -is_numpy_prior_1_6_2 = LooseVersion(np.__version__...
https://api.github.com/repos/pandas-dev/pandas/pulls/22530
2018-08-28T18:21:00Z
2018-08-29T11:00:54Z
2018-08-29T11:00:54Z
2018-08-29T13:40:40Z
TST: fixturize series/test_alter_axes.py
diff --git a/pandas/tests/series/conftest.py b/pandas/tests/series/conftest.py new file mode 100644 index 0000000000000..80a4e81c443ed --- /dev/null +++ b/pandas/tests/series/conftest.py @@ -0,0 +1,43 @@ +import pytest + +import pandas.util.testing as tm + +from pandas import Series + + +@pytest.fixture +def datetime_s...
- [x] prep for #22225, in the sense that it preempts (and splits off) the test-related changes that have been required on the DataFrame-side of the PR (see #22236) - [x] tests modified / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` In particular, it takes the fixture-like attributes...
https://api.github.com/repos/pandas-dev/pandas/pulls/22526
2018-08-28T06:23:12Z
2018-09-05T23:43:36Z
2018-09-05T23:43:36Z
2018-09-09T21:22:46Z
Updated condition to skip for pytables build issue on numpy 1.15 #22098
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index cb8ad5e3ea46f..a6f586c7f2638 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -16,6 +16,7 @@ _np_version_under1p14 = _nlv < LooseVersion('1.14') _np_version_under1p15 = _nlv < LooseVersion('1.15')...
- [ ] closes #22098 - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22522
2018-08-27T14:05:32Z
2018-08-31T10:09:40Z
2018-08-31T10:09:40Z
2018-08-31T10:09:42Z
TST: Streaming of S3 files
diff --git a/pandas/tests/io/test_s3.py b/pandas/tests/io/test_s3.py index 7a3062f470ce8..a2c3d17f8754a 100644 --- a/pandas/tests/io/test_s3.py +++ b/pandas/tests/io/test_s3.py @@ -1,3 +1,7 @@ +import pytest + +from pandas import read_csv +from pandas.compat import BytesIO from pandas.io.common import is_s3_url @@...
Issue #17135 was resolved by an upstream change, this is just a unit test to avoid regressions.
https://api.github.com/repos/pandas-dev/pandas/pulls/22520
2018-08-27T13:05:00Z
2018-08-29T12:26:44Z
2018-08-29T12:26:44Z
2018-08-29T12:39:27Z
API: Make .shift always copy (Fixes #22397)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index f2ec08c61a6d8..5621476d3d4e7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -544,6 +544,7 @@ Other API Changes - :class:`Index` subtraction will attempt to operate element-wise instead of raising...
- [x] closes #22397 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22517
2018-08-27T02:16:57Z
2018-09-15T12:25:21Z
2018-09-15T12:25:21Z
2018-09-15T17:53:00Z
DOC: Fix to_latex docstring.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 85bd6065314f4..1e2c0e17dad53 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2521,69 +2521,107 @@ def to_xarray(self): coords=coords, ) - _shared_docs['to_latex'...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Fix the DataFrame.to_latex docstring to match `scripts/validate_docstrings.py` as explained in #22459 and add an example. The docstring was previously in a variable that was only used in to_latex. I put it in the met...
https://api.github.com/repos/pandas-dev/pandas/pulls/22516
2018-08-26T19:32:47Z
2018-09-08T03:10:33Z
2018-09-08T03:10:33Z
2018-09-08T03:10:37Z
Fix test_sql pytest fixture warnings
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 824e5a2b23df3..e4df7043919ae 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -253,9 +253,13 @@ def _get_exec(self): else: return self.conn.cursor() - def _load_iris_data(self, datapath):...
- [y] closes #22338 - [y] tests added / passed - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` See Travis CI Python 3.6 build [before](https://travis-ci.org/pandas-dev/pandas/jobs/419432794) and [after](https://travis-ci.org/pandas-dev/pandas/jobs/420824121) my changes get rid of the warning f...
https://api.github.com/repos/pandas-dev/pandas/pulls/22515
2018-08-26T18:42:53Z
2018-09-14T01:54:18Z
2018-09-14T01:54:18Z
2018-09-14T01:54:18Z
CLN: use self.dtype internally in Categorical
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index c4144d2e8b086..fa8ce61f1f4bc 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -500,8 +500,7 @@ def _from_sequence(cls, scalars, dtype=None, copy=False): def copy(self): """ Cop...
Some clean-up that makes the code a bit easier to read IMO.
https://api.github.com/repos/pandas-dev/pandas/pulls/22513
2018-08-26T17:23:50Z
2018-08-30T19:42:21Z
2018-08-30T19:42:21Z
2018-08-30T19:58:09Z
ENH: better MultiIndex.__repr__
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index 0e68cddde8bc7..fb9b9db428e34 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -182,15 +182,15 @@ on a deeper level. Defined Levels ~~~~~~~~~~~~~~ -The repr of a ``MultiIndex`` shows ...
closes #13480 closes #12423 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Proposal to make a new repr for MultiIndex. Displaying MultiIndex will be based on displaying vertically stacked tuples, as discussed in #13480. This makes it easier t...
https://api.github.com/repos/pandas-dev/pandas/pulls/22511
2018-08-26T08:00:56Z
2019-06-19T01:05:34Z
2019-06-19T01:05:34Z
2019-06-19T01:06:02Z
DOC: Update series apply docstring. GH22459
diff --git a/pandas/core/series.py b/pandas/core/series.py index 36ca2c0c6e097..c9b1a2c45eab3 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3288,23 +3288,27 @@ def transform(self, func, axis=0, *args, **kwargs): def apply(self, func, convert_dtype=True, args=(), **kwds): """ - ...
- [X] refs #22459 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Updated `Series.apply` docstring to resolve errors raised from scripts/validate_docstrings.py from #22459.
https://api.github.com/repos/pandas-dev/pandas/pulls/22510
2018-08-26T03:07:06Z
2018-11-24T20:00:47Z
2018-11-24T20:00:47Z
2018-11-24T20:00:58Z
BUG: silent overflow in DateTimeArray subtraction
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3e22084d98234..21e45294c87a3 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -582,6 +582,7 @@ Datetimelike - Bug in :class:`DataFrame` comparisons against ``Timestamp``-like objects failing to rai...
- [x] closes #22492 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22508
2018-08-26T01:07:01Z
2018-08-31T10:10:59Z
2018-08-31T10:10:59Z
2018-08-31T20:11:08Z
Fix DataFrame.to_string() justification (2)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 6c91b6374b8af..c067adc8936a2 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -762,6 +762,7 @@ I/O - :func:`read_sas()` will correctly parse sas7bdat files with many columns (:issue:`22628`) - :fu...
- [x] closes #16839, closes #13032 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry 'Competes' with #22437 which attempts to revert `% d` to `%d` as suggested here: https://github.com/pandas-dev/pandas/issues/13032#issue-151973347 That turned o...
https://api.github.com/repos/pandas-dev/pandas/pulls/22505
2018-08-25T14:24:20Z
2018-09-25T12:55:05Z
2018-09-25T12:55:05Z
2018-09-25T12:55:09Z
DOC: Updated docstrings related to DateTimeIndex. GH22459
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index f87059ba1f017..33a234c74d01e 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1413,7 +1413,8 @@ def date_range(start=None, end=None, periods=None, freq=None, tz=None, >>> pd.date_range(s...
- [ ] closes #xxxx - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Updated `pandas.date_range` and `pandas.bdate_range` docstrings to resolve errors raised from `scripts/validate_docstrings.py` from #22459. Also added an example to `pandas.bdate...
https://api.github.com/repos/pandas-dev/pandas/pulls/22504
2018-08-25T10:29:06Z
2018-11-04T14:59:20Z
2018-11-04T14:59:20Z
2018-11-04T14:59:24Z
CLN: Remove versionadded in groupby.rst
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index cf8ba84ecd4f8..fecc336049a40 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -103,8 +103,6 @@ consider the following ``DataFrame``: .. note:: - .. versionadded:: 0.20 - A string passed to ``groupby`` may refer to either a ...
Follow-up to https://github.com/pandas-dev/pandas/pull/22415#pullrequestreview-148462071.
https://api.github.com/repos/pandas-dev/pandas/pulls/22503
2018-08-25T09:11:46Z
2018-08-28T12:04:47Z
2018-08-28T12:04:47Z
2018-08-28T19:26:01Z
CI: Bump to NumPy compat to 1.9.3
diff --git a/ci/circle-27-compat.yaml b/ci/circle-27-compat.yaml index b5be569eb28a4..5e9842f4742c5 100644 --- a/ci/circle-27-compat.yaml +++ b/ci/circle-27-compat.yaml @@ -7,7 +7,7 @@ dependencies: - cython=0.28.2 - jinja2=2.8 - numexpr=2.4.4 # we test that we correctly don't use an unsupported numexpr - - n...
1.9.2 doesn't seem to be available in `/pkgs/main`. We're seeing errors like ``` ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory ``` when importing numpy. Switching to 1.9.3 (which is available in main) solves that for me locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/22499
2018-08-24T13:41:26Z
2018-08-24T14:20:12Z
2018-08-24T14:20:12Z
2018-08-24T14:26:30Z
CLN: Simplify read_csv tz offset parsing
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 08fb0172adcff..8d37bf4c84d5d 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -1632,19 +1632,17 @@ def _infer_types(self, values, na_values, try_num_bool=True): if try_num_bool: try: - result = lib.maybe...
I _think_ after #22457 we do not need the `np.asarray` calls that were introduced in #22380
https://api.github.com/repos/pandas-dev/pandas/pulls/22494
2018-08-24T04:43:59Z
2018-08-29T12:31:53Z
2018-08-29T12:31:53Z
2018-08-29T15:56:04Z
BUG:reorder type check/conversion so wide_to_long handles str arg for…
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 618d7454c67fe..9d559acfa59e7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -802,6 +802,7 @@ Reshaping - Bug in :meth:`DataFrame.replace` raises ``RecursionError`` when replacing empty lists (:is...
closes #22468 - [x] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22490
2018-08-23T22:17:05Z
2018-09-23T20:11:03Z
2018-09-23T20:11:03Z
2018-09-24T01:28:42Z
BUG: resample with TimedeltaIndex, fenceposts are off
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3a360b09ae789..1979bde796452 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -709,6 +709,7 @@ Groupby/Resample/Rolling datetime-like index leading to incorrect results and also segfault. (:issue...
- [x] closes #13022 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22488
2018-08-23T19:59:09Z
2018-09-05T11:31:04Z
2018-09-05T11:31:04Z
2018-09-05T11:31:07Z
API: better error-handling for df.set_index
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 2c142bdd7185b..d3cc0dfc866ed 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -714,6 +714,8 @@ Other API Changes - :class:`pandas.io.formats.style.Styler` supports a ``number-format`` property when...
- [x] closes #22484 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry split off of #22236, and so builds on top of it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22486
2018-08-23T15:18:46Z
2018-10-19T13:13:39Z
2018-10-19T13:13:38Z
2018-10-22T14:16:10Z
BUG: loffset has no effect when passing in a numpy.timedelta64
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 7ed92935a0991..2bfc57d7f5dcd 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -707,6 +707,7 @@ Groupby/Resample/Rolling - Multiple bugs in :func:`pandas.core.Rolling.min` with ``closed='left'` and ...
- [x] closes #7687 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22482
2018-08-23T12:52:52Z
2018-09-04T11:09:18Z
2018-09-04T11:09:18Z
2018-09-04T11:09:21Z
BUG: fix Series(extension array) + extension array values addition
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 8171840c96b6e..a02152a123b48 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -1218,7 +1218,7 @@ def dispatch_to_extension_op(op, left, right): new_right = [new_right] new_right = list(new_right) elif is_extensi...
- [x] closes #22478 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22479
2018-08-23T04:57:40Z
2018-10-03T07:28:08Z
2018-10-03T07:28:07Z
2018-10-03T11:51:01Z
DOC: Fix DataFrame.to_csv docstring and add an example. GH22459
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 85bd6065314f4..6039da839010a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9359,80 +9359,100 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None, quotechar='"', line_terminator='\n', chunksi...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fix the DataFrame.to_csv docstring to match `scripts/validate_docstrings.py` as explained in #22459. I also added an example. Is the whatsnew entry needed for documentation too? ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22475
2018-08-23T01:39:36Z
2018-09-23T15:32:58Z
2018-09-23T15:32:58Z
2018-09-24T09:29:02Z
DOC: Updating Series.agg docstring
diff --git a/ci/doctests.sh b/ci/doctests.sh index fee33a0f93f40..2af5dbd26aeb1 100755 --- a/ci/doctests.sh +++ b/ci/doctests.sh @@ -28,7 +28,7 @@ if [ "$DOCTEST" ]; then fi pytest --doctest-modules -v pandas/core/series.py \ - -k"-agg -map -nlargest -nonzero -nsmallest -reindex -searchsorted -to_dic...
With reference to: #22459. I have fixed up the agg/map doc strings for `pandas/core/series.py` so they now pass our doc tests. CC @jorisvandenbossche Thanks,
https://api.github.com/repos/pandas-dev/pandas/pulls/22474
2018-08-23T00:19:44Z
2018-08-24T07:28:07Z
2018-08-24T07:28:07Z
2018-08-26T18:33:41Z
BUG: resample Grouper in a list grouping on a column with NaT throws an error
diff --git a/pandas/tests/groupby/test_grouping.py b/pandas/tests/groupby/test_grouping.py index 58e9797dbeea5..737e8a805f3ce 100644 --- a/pandas/tests/groupby/test_grouping.py +++ b/pandas/tests/groupby/test_grouping.py @@ -534,6 +534,23 @@ def test_grouping_labels(self, mframe): exp_labels = np.array([2, 2, ...
- [x] closes #14715 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22470
2018-08-22T20:53:16Z
2018-08-28T12:22:29Z
2018-08-28T12:22:28Z
2018-08-28T12:22:32Z
remove numpy_helper and some unneeded util functions
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index b7a1471ae5a9e..9c906a00bd4fe 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -104,10 +104,7 @@ cdef class IndexEngine: loc = self.get_loc(key) value = convert_scalar(arr, value) - if PySlice_Check(loc) or u...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22469
2018-08-22T17:36:20Z
2018-08-29T12:43:57Z
2018-08-29T12:43:57Z
2018-08-29T13:41:04Z
TEST: groupby(as_index=False, sort=False).aggregate formerly (?) gave unexpected results with a list-like function
diff --git a/pandas/tests/groupby/aggregate/test_other.py b/pandas/tests/groupby/aggregate/test_other.py index 606539a564323..61db4cee1ab02 100644 --- a/pandas/tests/groupby/aggregate/test_other.py +++ b/pandas/tests/groupby/aggregate/test_other.py @@ -512,3 +512,14 @@ def test_agg_category_nansum(observed): if ob...
- [x] closes #18473 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22467
2018-08-22T15:08:05Z
2018-08-29T12:32:42Z
2018-08-29T12:32:42Z
2018-08-29T12:32:45Z
DOC: confusing wording in Dataframe.quantile, term 'a la`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 052952103e28c..b79c83cccd5ab 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7249,8 +7249,7 @@ def f(s): def quantile(self, q=0.5, axis=0, numeric_only=True, interpolation='linear'): """ - Return value...
- [x] closes #22463 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22464
2018-08-22T13:53:19Z
2018-08-22T13:54:23Z
2018-08-22T13:54:23Z
2023-03-06T06:03:58Z
BUG: Retain timezone information in to_datetime if box=False
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index d7feb6e547b22..0f5ef1caf1d96 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -237,7 +237,7 @@ without timezone localization. This is inconsistent from parsing the same datetime string with :class:...
- [x] closes #22446 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Don't think this requires a whatsnew entry since this was introduced in (and part of) #21822 which is slated for v0.24.0
https://api.github.com/repos/pandas-dev/pandas/pulls/22457
2018-08-22T06:58:21Z
2018-08-24T03:29:53Z
2018-08-24T03:29:53Z
2018-08-24T03:30:45Z
MAINT: Reset sys.path if docstrings import fails
diff --git a/pandas/tests/scripts/test_validate_docstrings.py b/pandas/tests/scripts/test_validate_docstrings.py index cebcbf5a61465..29da40cd78d22 100644 --- a/pandas/tests/scripts/test_validate_docstrings.py +++ b/pandas/tests/scripts/test_validate_docstrings.py @@ -471,6 +471,9 @@ def import_scripts(self): ...
Follow-up to https://github.com/pandas-dev/pandas/pull/22413#discussion_r211459766 cc @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/22456
2018-08-22T06:45:30Z
2018-08-22T10:03:49Z
2018-08-22T10:03:49Z
2018-08-25T06:07:35Z
DOC: various doc build fixes
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index e50e792201d26..0c843dd39b56f 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -729,7 +729,7 @@ Int64Index and RangeIndex Prior to 0.18.0, the ``Int64Index`` would provide the default index for all ``NDFrame`` objects. ``RangeI...
Up to a clean doc build :-)
https://api.github.com/repos/pandas-dev/pandas/pulls/13502
2016-06-23T15:30:18Z
2016-06-24T12:04:12Z
2016-06-24T12:04:12Z
2016-06-24T12:04:18Z
DOC: fix accessor docs for sphinx > 1.3 (GH12161)
diff --git a/doc/source/conf.py b/doc/source/conf.py index 87510d13ee484..6ceeee4ad6afb 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -318,6 +318,7 @@ # Add custom Documenter to handle attributes/methods of an AccessorProperty # eg pandas.Series.str and pandas.Series.dt (see GH9322) +import sphinx fr...
closes #12161 With this change, the links in the api summary to the accessor methods should work again.
https://api.github.com/repos/pandas-dev/pandas/pulls/13499
2016-06-23T12:38:50Z
2016-06-23T15:37:45Z
2016-06-23T15:37:45Z
2016-06-23T15:37:45Z
TST: Clean up tests of DataFrame.sort_{index,values}
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4b35953b4282..15d4bb6b5a537 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -68,8 +68,12 @@ # --------------------------------------------------------------------- # Docstring templates -_shared_doc_kwargs = dict(axes='index, columns', ...
Before taking a stab at #10806, I looked at the relevant tests and they didn't make much sense to me. This commit fixes: - Some expected results were obtained by running code identical to what's being tested. (i.e. test could never fail) - Removed duplicate assertions testing the same functionality both in `test_sort_...
https://api.github.com/repos/pandas-dev/pandas/pulls/13496
2016-06-22T07:15:59Z
2016-07-11T18:21:06Z
2016-07-11T18:21:06Z
2016-07-11T18:47:08Z
DOC/WIP: travis notebook doc build
diff --git a/ci/requirements-2.7_DOC_BUILD.run b/ci/requirements-2.7_DOC_BUILD.run index 507ce9ea5aac5..b87a41df4191d 100644 --- a/ci/requirements-2.7_DOC_BUILD.run +++ b/ci/requirements-2.7_DOC_BUILD.run @@ -1,7 +1,9 @@ ipython +ipykernel sphinx nbconvert nbformat +notebook matplotlib scipy lxml diff --git a/do...
Just want to see the output log from the pull request.
https://api.github.com/repos/pandas-dev/pandas/pulls/13493
2016-06-21T01:05:58Z
2016-06-23T13:28:02Z
2016-06-23T13:28:02Z
2017-04-05T02:06:58Z
DOC: find kernelspec
diff --git a/doc/make.py b/doc/make.py index 05bf618ee677e..8e7b1d95dbafb 100755 --- a/doc/make.py +++ b/doc/make.py @@ -116,6 +116,11 @@ def cleanup_nb(nb): pass +def get_kernel(): + """Find the kernel name for your python version""" + return 'python%s' % sys.version_info.major + + def execute_...
xref https://github.com/pydata/pandas/pull/13487 Problem was the notebook was written with a python3 kernel, but the doc build is python2. There are potentially problems here if you have non-default kernel names in your environment...
https://api.github.com/repos/pandas-dev/pandas/pulls/13491
2016-06-20T12:29:13Z
2016-06-20T14:34:09Z
2016-06-20T14:34:09Z
2017-04-05T02:06:52Z
BUG: Series/Index results in datetime/timedelta incorrectly if inputs are all nan/nat like
diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt index 70c466ed51681..39cb4a26d413c 100644 --- a/doc/source/whatsnew/v0.19.0.txt +++ b/doc/source/whatsnew/v0.19.0.txt @@ -484,8 +484,9 @@ Bug Fixes - Bug in ``Series.str.extractall()`` with ``str`` index raises ``ValueError`` (:issue:`13...
- [x] closes #13467 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/13477
2016-06-18T04:12:59Z
2016-07-11T07:31:10Z
2016-07-11T07:31:10Z
2016-07-11T07:52:53Z
In gbq, use googleapiclient instead of apiclient
diff --git a/doc/source/whatsnew/v0.18.2.txt b/doc/source/whatsnew/v0.18.2.txt index b9afa7fcb7959..64644bd9a7a26 100644 --- a/doc/source/whatsnew/v0.18.2.txt +++ b/doc/source/whatsnew/v0.18.2.txt @@ -528,3 +528,5 @@ Bug Fixes - Bug in ``Categorical.remove_unused_categories()`` changes ``.codes`` dtype to platform i...
- [ x ] closes #13454 - [ x ] tests added / passed - [ x ] passes `git diff upstream/master | flake8 --diff` - [ x ] whatsnew entry All gbq tests pass locally ``` tony@tonypc:~/parthea-pandas/pandas/io/tests$ nosetests test_gbq.py -v test_read_gbq_with_corrupted_private_key_json_should_fail (pandas.io.tests.test_gbq....
https://api.github.com/repos/pandas-dev/pandas/pulls/13458
2016-06-16T02:16:25Z
2016-07-07T07:26:12Z
2016-07-07T07:26:12Z
2016-07-07T14:28:02Z
DOC: Corrected Series.str.extract documentation error
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 2f9f8ec936e78..ca8e701d0ce17 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -543,7 +543,7 @@ def str_extract(arr, pat, flags=0, expand=None): each group. Any capture group names in regular expression pat will be used for c...
Really small documentation fix, that rather confused me as I was first reading it (given the documentation contradicts itself). I believe this is the correct resolution. Let me know if I need to actually compile/test anything.
https://api.github.com/repos/pandas-dev/pandas/pulls/13449
2016-06-15T13:15:00Z
2016-06-15T13:25:13Z
2016-06-15T13:25:13Z
2016-06-15T13:35:01Z
BUG: Fix for .extractall (single group with quantifier) #13382
diff --git a/doc/source/whatsnew/v0.18.2.txt b/doc/source/whatsnew/v0.18.2.txt index 1e95af2df247b..d5998aba6001b 100644 --- a/doc/source/whatsnew/v0.18.2.txt +++ b/doc/source/whatsnew/v0.18.2.txt @@ -335,6 +335,7 @@ Bug Fixes - Bug in ``SeriesGroupBy.transform`` with datetime values and missing groups (:issue:`13191`...
- [X] closes #13382 - [X] tests added / passed - [X] passes `git diff upstream/master | flake8 --diff` - [X] whatsnew entry Note that I had to fix it based on this [thread](http://stackoverflow.com/questions/2111759/whats-the-best-practice-for-handling-single-value-tuples-in-python), rather than directly with `[x for ...
https://api.github.com/repos/pandas-dev/pandas/pulls/13397
2016-06-08T12:35:01Z
2016-06-08T15:27:07Z
2016-06-08T15:27:07Z
2016-06-08T15:48:40Z
COMPAT, TST: allow numpy array comparisons with complex dtypes
diff --git a/pandas/core/common.py b/pandas/core/common.py index d26c59e62de30..28bae362a3411 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -349,7 +349,24 @@ def array_equivalent(left, right, strict_nan=False): right = right.view('i8') # NaNs cannot occur otherwise. - return np.ar...
Traces back to bug in NumPy `v1.7.1` in which the `array_equivalent` method could not compare NumPy arrays with complicated dtypes. As `pandas` relies on this function to check NumPy array equality during testing, this commit adds a fallback method for doing so. Closes #13388.
https://api.github.com/repos/pandas-dev/pandas/pulls/13392
2016-06-07T19:41:20Z
2016-06-07T22:18:39Z
2016-06-07T22:18:39Z
2016-06-07T22:19:11Z
CLN: extract window functions from algox.pyx and create window.pyx
diff --git a/pandas/algos.pyx b/pandas/algos.pyx index 7884d9c41845c..f1fd0204e2fd2 100644 --- a/pandas/algos.pyx +++ b/pandas/algos.pyx @@ -31,38 +31,17 @@ float16 = np.dtype(np.float16) float32 = np.dtype(np.float32) float64 = np.dtype(np.float64) -cdef np.int8_t MINint8 = np.iinfo(np.int8).min -cdef np.int16_t M...
makes it a little simpler to iterate on pieces of the cython code.
https://api.github.com/repos/pandas-dev/pandas/pulls/13380
2016-06-06T13:15:42Z
2016-06-06T14:33:23Z
2016-06-06T14:33:23Z
2016-06-06T14:33:23Z
Typo correction
diff --git a/ci/cron/go_doc.sh b/ci/cron/go_doc.sh deleted file mode 100755 index 89659577d0e7f..0000000000000 --- a/ci/cron/go_doc.sh +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/bash - -# This is a one-command cron job for setting up -# a virtualenv-based, linux-based, py2-based environment -# for building the Pandas docum...
Corrected a small typo found when reviewing the script.
https://api.github.com/repos/pandas-dev/pandas/pulls/13369
2016-06-05T14:23:02Z
2016-06-05T18:06:10Z
2016-06-05T18:06:10Z
2016-06-05T18:06:10Z
DOC: Added additional example for groupby by indexer.
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 4cde1fed344a8..484efd12c5d78 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -1014,6 +1014,23 @@ Regroup columns of a DataFrame according to their sum, and sum the aggregated on df df.groupby(df.sum(), axis=1).sum() +Groupb...
- [x] closes #13271 - [ ] tests added / passed - [ ] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/13276
2016-05-25T04:01:05Z
2016-06-28T22:18:03Z
2016-06-28T22:18:02Z
2016-06-28T22:23:40Z
BUG: .loc with duplicated label may have incorrect index dtype
diff --git a/doc/source/whatsnew/v0.18.0.txt b/doc/source/whatsnew/v0.18.0.txt index d4ed68b9f4343..42444e05783c2 100644 --- a/doc/source/whatsnew/v0.18.0.txt +++ b/doc/source/whatsnew/v0.18.0.txt @@ -112,3 +112,7 @@ Bug Fixes - Bug in ``.loc`` against ``CategoricalIndex`` may result in normal ``Index`` (:issue:`11586...
`.loc` result with duplicated keys may have incorred `Index` dtype. ``` import pandas as pd ser = pd.Series([0.1, 0.2], index=pd.Index([1, 2], name='idx')) # OK ser.loc[[2, 2, 1]].index # Int64Index([2, 2, 1], dtype='int64', name=u'idx') # NG, Int64Index(dtype=object) ser.loc[[3, 2, 3]].index # Int64Index([3, 2, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/11497
2015-11-01T12:05:05Z
2015-11-29T18:01:15Z
2015-11-29T18:01:15Z
2015-11-29T19:42:00Z
Fix #10770 by adding days_in_month to docs
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 1d21f96a7d539..2bc96d1b7b1aa 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -484,6 +484,7 @@ There are several time/date properties that one can access from ``Timestamp`` or dayofweek,"The day of the week with Monda...
Fix https://github.com/pydata/pandas/issues/10770 by adding days_in_month to Time/Date Components. Am I right in thinking `days_in_month` (rather than `daysinmonth`) is the right name to use going forward? Is there anywhere else in the documentation that it should be added that I missed?
https://api.github.com/repos/pandas-dev/pandas/pulls/11486
2015-10-30T19:25:38Z
2015-10-30T22:08:05Z
2015-10-30T22:08:05Z
2015-10-31T04:22:11Z
BUG: Holiday observance rules could not be applied
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 2bc96d1b7b1aa..01b342213de07 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -1043,10 +1043,14 @@ An example of how holidays and holiday calendars are defined: cal.holidays(datetime(2012, 1, 1), datetime(2012, 12, 31...
Closes #11477 Closes #11533 There were some other bugs here that I added tests for. For example, `holiday.dates` for MLK day was returning all holidays from the holiday start date up to the end date rather than just between the range.
https://api.github.com/repos/pandas-dev/pandas/pulls/11484
2015-10-30T14:11:20Z
2015-11-14T14:57:23Z
2015-11-14T14:57:23Z
2015-11-14T14:57:29Z
DOC: Linguistic edit to CONTRIBUTING.md
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 284ac2fc5b169..352acee23df2d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,43 +4,22 @@ Contributing to pandas Where to start? --------------- -All contributions, bug reports, bug fixes, documentation improvements, -enhancements and ideas are welcome. -...
Also fixed a dead link to the Nose testing docs.
https://api.github.com/repos/pandas-dev/pandas/pulls/11469
2015-10-29T10:57:32Z
2015-11-09T22:22:10Z
2015-11-09T22:22:10Z
2015-11-10T09:54:56Z
CLN: move routines for filling missing data from core/common.py to core/missing.py
diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py index 9decd5e212cbf..e304684036766 100644 --- a/pandas/core/categorical.py +++ b/pandas/core/categorical.py @@ -10,6 +10,7 @@ from pandas.core.algorithms import factorize from pandas.core.base import PandasObject, PandasDelegate import pandas.core....
This PR moves the routines used for filling missing data into their own module as suggested in PR #11445. Thoughts on re-naming `interpolate_1d()` and `interpolate_2d()`? They way they are currently named makes them sound like they're the same functions for arrays of differing dimensions. However, `interpolate_1d()` i...
https://api.github.com/repos/pandas-dev/pandas/pulls/11462
2015-10-28T18:54:11Z
2015-10-28T21:49:00Z
2015-10-28T21:49:00Z
2015-10-28T21:56:56Z
CLN/PERF: remove used functions; use C skip list for rolling median
diff --git a/asv_bench/benchmarks/gil.py b/asv_bench/benchmarks/gil.py index eeca2d54381b2..fdeace108f76e 100644 --- a/asv_bench/benchmarks/gil.py +++ b/asv_bench/benchmarks/gil.py @@ -366,3 +366,73 @@ def time_period_to_datetime(self): def run(period): period.to_timestamp() run(self.peri...
removes some unused code reverts this commit https://github.com/pydata/pandas/commit/a40226e5c4c3d29e5e2383433c5f0b94c3c0ecc1 performance consideration ``` import pandas import numpy arr = numpy.random.rand(1000000) %timeit pandas.rolling_median(arr, 1000) ``` master ``` 1 loops, best of 3: 4.94 s per loop ``` br...
https://api.github.com/repos/pandas-dev/pandas/pulls/11450
2015-10-28T00:13:33Z
2015-11-02T11:44:57Z
2015-11-02T11:44:57Z
2015-11-02T11:45:02Z
DOC: Improvements in panel apply docstring
diff --git a/pandas/core/panel.py b/pandas/core/panel.py index da0ab7bc59440..f05e5a8357877 100644 --- a/pandas/core/panel.py +++ b/pandas/core/panel.py @@ -3,33 +3,33 @@ """ # pylint: disable=E1103,W0231,W0212,W0621 from __future__ import division -from pandas.compat import (map, zip, range, lrange, lmap, u, Ordere...
Not sure what the bar is for a PR here - this is a mild but meaningful improvement - in particular re the option to supply numbers & a tuple - by no means perfect though
https://api.github.com/repos/pandas-dev/pandas/pulls/11449
2015-10-28T00:04:37Z
2015-11-07T14:54:27Z
2015-11-07T14:54:27Z
2015-11-07T17:25:24Z
DOC:Remove supression from ipython directive to make object visible
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index b5a382ce24342..e517e9ab9935d 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -257,20 +257,21 @@ GroupBy with MultiIndex With :ref:`hierarchically-indexed data <advanced.hierarchical>`, it's quite natural to group by one of the leve...
Fix for https://github.com/pydata/pandas/issues/11223 @TomAugspurger should these two Ipython blocks be merged into one? (this is what it looks like at the mo) ![pandas-11223](https://cloud.githubusercontent.com/assets/4982858/10770424/2013049a-7ce3-11e5-9f64-f8a66c98b961.png)
https://api.github.com/repos/pandas-dev/pandas/pulls/11443
2015-10-27T19:37:12Z
2015-11-14T19:32:53Z
2015-11-14T19:32:53Z
2015-11-14T19:32:56Z
CI: Py3.5 / numpy 1.10 testing
diff --git a/ci/requirements-3.5.build b/ci/requirements-3.5.build index de36b1afb9fa4..9558cf00ddf5c 100644 --- a/ci/requirements-3.5.build +++ b/ci/requirements-3.5.build @@ -1,4 +1,4 @@ python-dateutil pytz -numpy=1.9.3 +numpy cython diff --git a/ci/requirements-3.5.run b/ci/requirements-3.5.run index 91938675280...
closes #11187 closes #11138
https://api.github.com/repos/pandas-dev/pandas/pulls/11439
2015-10-27T12:38:40Z
2015-10-27T13:18:42Z
2015-10-27T13:18:42Z
2015-10-27T13:18:42Z
BUG: fix UnicodeEncodeError with to_sql and unicode column names (GH11431)
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 7178be1ffefd2..025aee17acec4 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -130,6 +130,13 @@ Bug Fixes - Bug in ``squeeze()`` with zero length arrays (:issue:`11230`, :issue:`8999`) - Bug in ``...
Closes #11431 Still have to add tests
https://api.github.com/repos/pandas-dev/pandas/pulls/11432
2015-10-26T10:09:32Z
2015-11-16T12:15:32Z
2015-11-16T12:15:32Z
2015-11-16T12:15:32Z
CLN: (more) boundscheck warnings in tslib
diff --git a/pandas/tslib.pyx b/pandas/tslib.pyx index 2fa406f880cdd..afb15badf433c 100644 --- a/pandas/tslib.pyx +++ b/pandas/tslib.pyx @@ -4240,6 +4240,8 @@ cdef inline int m8_weekday(int64_t val): cdef int64_t DAY_NS = 86400000000000LL +@cython.wraparound(False) +@cython.boundscheck(False) def date_normalize(n...
https://github.com/pydata/pandas/pull/11404#issuecomment-150928024
https://api.github.com/repos/pandas-dev/pandas/pulls/11429
2015-10-25T15:58:35Z
2015-10-25T19:59:49Z
2015-10-25T19:59:49Z
2015-10-27T02:08:54Z
BUG: vectorized DateOffset match non-vectorized
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 01b342213de07..50f104f4529fc 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -954,6 +954,52 @@ These can be used as arguments to ``date_range``, ``bdate_range``, constructors for ``DatetimeIndex``, as well as various oth...
closes #11370 Also added a bit of documentation on the semantics for anchored offsets currently blocked by #11406 - either need to change the vectorized or non-vectorized implementation of `QuarterBegin` As discussed in that issue, my opinion is the vectorized version is the "right" (or at least consistent) one.
https://api.github.com/repos/pandas-dev/pandas/pulls/11427
2015-10-24T21:09:45Z
2015-12-13T20:42:04Z
2015-12-13T20:42:03Z
2016-01-15T01:03:40Z
DOC: fix cython example (failed on Windows) (GH6002)
diff --git a/doc/source/enhancingperf.rst b/doc/source/enhancingperf.rst index 028e6d064a561..d98801f4a7afe 100644 --- a/doc/source/enhancingperf.rst +++ b/doc/source/enhancingperf.rst @@ -274,8 +274,8 @@ advanced cython techniques: ...: return s * dx ...: @cython.boundscheck(False) ...: @cytho...
Closes #6002 The signature of `apply_integrate_f_wrap` (http://pandas-docs.github.io/pandas-docs-travis/enhancingperf.html#more-advanced-techniques) used `Py_ssize_t` but on Windows that gives an error, as the dataframe is generated with numpy random arrays, which gives int32 on Windows, while `Py_ssize_t` is int64 o...
https://api.github.com/repos/pandas-dev/pandas/pulls/11426
2015-10-24T10:51:23Z
2015-11-01T21:09:58Z
2015-11-01T21:09:58Z
2015-11-01T21:09:58Z
DOC: add some examples to Index set operations
diff --git a/pandas/core/index.py b/pandas/core/index.py index 7049ac33feac6..003e444672d85 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -1469,7 +1469,7 @@ def __xor__(self, other): def union(self, other): """ - Form the union of two Index objects and sorts if possible + ...
I was wondering for a second in which direction the Index.difference worked, so thought some examples could clarify this
https://api.github.com/repos/pandas-dev/pandas/pulls/11425
2015-10-24T10:03:17Z
2015-10-25T14:06:38Z
2015-10-25T14:06:38Z
2015-10-25T14:06:38Z
ENH: namedtuple's fields as columns
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 2762d84d73ba0..418d306a2de7f 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -30,6 +30,7 @@ Other Enhancements - ``pd.read_*`` functions can now also accept :class:`python:pathlib.Path`, or :cla...
Resolves https://github.com/pydata/pandas/issues/11181 Is this testing OK? Or do we need to test with differing lengths of tuples etc?
https://api.github.com/repos/pandas-dev/pandas/pulls/11416
2015-10-23T00:44:21Z
2015-10-23T20:30:33Z
2015-10-23T20:30:33Z
2015-10-24T01:11:48Z
Bug in merging datetime64[ns, tz] dtypes #11405
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 989b05003d76f..06ab19b6e4a40 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -74,7 +74,7 @@ Bug Fixes - Bug in ``.to_latex()`` output broken when the index has a name (:issue: `10660`) - Bug in...
closes #11405
https://api.github.com/repos/pandas-dev/pandas/pulls/11410
2015-10-22T12:19:57Z
2015-10-23T16:43:22Z
2015-10-23T16:43:22Z
2017-03-24T17:23:46Z
CLN: period boundscheck warnings
diff --git a/pandas/src/period.pyx b/pandas/src/period.pyx index b431bb58bc991..cfc50afc8f9f3 100644 --- a/pandas/src/period.pyx +++ b/pandas/src/period.pyx @@ -20,6 +20,7 @@ from pandas import compat from pandas.tseries import offsets from pandas.tseries.tools import parse_time_string +cimport cython from datetim...
follow up to fix warnings in https://github.com/pydata/pandas/pull/11263#issuecomment-149641296
https://api.github.com/repos/pandas-dev/pandas/pulls/11404
2015-10-21T22:50:07Z
2015-10-24T02:02:51Z
2015-10-24T02:02:51Z
2015-10-25T14:28:02Z
BUG: drop_duplicates drops non-duplicate rows in the presence of integer columns
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 2bb9920b6f177..70226ca302a60 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -92,7 +92,7 @@ Bug Fixes - Bug in ``pivot_table`` with ``margins=True`` when indexes are of ``Categorical`` dtype (:iss...
Fixes GH #11376
https://api.github.com/repos/pandas-dev/pandas/pulls/11403
2015-10-21T21:39:13Z
2015-10-24T00:18:23Z
2015-10-24T00:18:23Z
2015-10-24T00:47:51Z
ENH: Improve the error message in to_gbq when schema does not match #11359
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index bdfbf08b37e57..989b05003d76f 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -30,6 +30,7 @@ Other Enhancements - ``pd.read_*`` functions can now also accept :class:`python:pathlib.Path`, or :cla...
See the discussion in #11359
https://api.github.com/repos/pandas-dev/pandas/pulls/11401
2015-10-21T11:19:10Z
2015-10-21T15:28:55Z
2015-10-21T15:28:55Z
2015-10-21T15:30:48Z
BUG: using .ix with a multi-index indexer
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index cd3c3848523f0..eafd4973b5253 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -70,7 +70,7 @@ Bug Fixes - Bug in ``HDFStore.append`` with strings whose encoded length exceded the max unencoded lengt...
closes #11372 Add an optional argument to _NDFrameIndexer to indicate if the indexer is from a MultiIndex
https://api.github.com/repos/pandas-dev/pandas/pulls/11400
2015-10-21T08:40:16Z
2015-10-27T11:17:08Z
2015-10-27T11:17:08Z
2015-10-27T13:25:20Z
BLD: add CFLAGS `-fgnu89-inline` on FreeBSD 10+
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index bdfbf08b37e57..ea26fdd90c4da 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -115,3 +115,7 @@ Bug Fixes - Fixed a bug that prevented the construction of an empty series of dtype ``datetime64[ns...
closes #10510
https://api.github.com/repos/pandas-dev/pandas/pulls/11398
2015-10-21T05:08:15Z
2015-11-10T12:12:36Z
2015-11-10T12:12:36Z
2015-11-10T12:13:06Z
Revert "BLD: conda"
diff --git a/ci/install_conda.sh b/ci/install_conda.sh index 204dba58641c4..8d99034a86109 100755 --- a/ci/install_conda.sh +++ b/ci/install_conda.sh @@ -71,7 +71,7 @@ wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O mini bash miniconda.sh -b -p $HOME/miniconda || exit 1 conda config --set...
This reverts commit 0c8a8e1372aef137ec71f0ba9c7af58cb4a2a8ac. closes #11394
https://api.github.com/repos/pandas-dev/pandas/pulls/11397
2015-10-21T02:33:09Z
2015-10-21T10:15:06Z
2015-10-21T10:15:06Z
2015-10-21T10:15:06Z
TST: remove invalid symbol warnings
diff --git a/pandas/io/tests/test_data.py b/pandas/io/tests/test_data.py index ad0e05f91d184..29970aef760f2 100644 --- a/pandas/io/tests/test_data.py +++ b/pandas/io/tests/test_data.py @@ -103,13 +103,15 @@ def test_get_multi1(self): @network def test_get_multi_invalid(self): sl = ['AAPL', 'AMZN', 'I...
https://api.github.com/repos/pandas-dev/pandas/pulls/11396
2015-10-21T02:09:17Z
2015-10-21T10:15:22Z
2015-10-21T10:15:22Z
2015-10-21T10:15:22Z
BUG: GH11344 in pandas.json when file to read is big
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 989b05003d76f..3b2ec3837cdd8 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -111,7 +111,7 @@ Bug Fixes - Bug in ``DataFrame.to_latex()`` produces an extra rule when ``header=False`` (:issue:`7124...
closes #11344 taken from esnme/ultrajson#145 test code ``` import json import pandas from pandas.compat import zip, range SIZE = 5*10**7 FILENAME = 'generated.json' with open(FILENAME, 'w') as fileh: json.dump(dict(zip(range(SIZE), range(SIZE))), fileh) with open(FILENAME) as fileh: pandas.json.load(fileh) `...
https://api.github.com/repos/pandas-dev/pandas/pulls/11393
2015-10-21T01:08:58Z
2015-10-23T16:57:20Z
2015-10-23T16:57:20Z
2015-10-23T16:57:37Z
TST: make a couple of tests slow / remove some warnings
diff --git a/ci/requirements-2.7_SLOW.pip b/ci/requirements-2.7_SLOW.pip new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/io/ga.py b/pandas/io/ga.py index 5525b34951524..a6f9c9ed9467f 100644 --- a/pandas/io/ga.py +++ b/pandas/io/ga.py @@ -4,13 +4,6 @@ 3. Goto APIs and register for OAuth2.0 f...
https://api.github.com/repos/pandas-dev/pandas/pulls/11391
2015-10-20T23:21:57Z
2015-10-21T12:23:28Z
2015-10-21T12:23:28Z
2015-10-21T12:23:28Z
BUG: pivot table bug with Categorical indexes, #10993
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index ea2b85d983ade..bdfbf08b37e57 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -87,7 +87,7 @@ Bug Fixes - Bug in list-like indexing with a mixed-integer Index (:issue:`11320`) - +- Bug in ``pivo...
closes #10993 replaces #10989 So issue #10993 involves the insertion of a key into a multi-index that has as one of its levels a `CategoricalIndex`. This causes the semantics to break down because we are inserting an new key. Existing ``` In [16]: df = DataFrame({'A' : [1,2], 'B' : [3,4] }) In [17]: df.columns = ...
https://api.github.com/repos/pandas-dev/pandas/pulls/11371
2015-10-19T11:39:15Z
2015-10-20T17:29:50Z
2015-10-20T17:29:50Z
2015-10-20T20:47:02Z
BUG: GH11235 where pd.eval doesn't handle unary ops in lists
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 989b05003d76f..afb143ac78df1 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -94,7 +94,7 @@ Bug Fixes - +- Bug in ``pd.eval`` where unary ops in a list error (:issue:`11235`) - Bug in ``sque...
closes #11235
https://api.github.com/repos/pandas-dev/pandas/pulls/11366
2015-10-19T05:40:18Z
2015-10-23T20:41:12Z
2015-10-23T20:41:12Z
2015-10-23T20:41:17Z
fixed pathlib tests on windows
diff --git a/pandas/io/tests/test_common.py b/pandas/io/tests/test_common.py index 003068a702246..73cae1130c740 100644 --- a/pandas/io/tests/test_common.py +++ b/pandas/io/tests/test_common.py @@ -43,12 +43,12 @@ def test_stringify_path_pathlib(self): rel_path = common._stringify_path(Path('.')) self....
as requested here: https://github.com/pydata/pandas/issues/11033#issuecomment-148924778 i can’t test on windows unfortunately.
https://api.github.com/repos/pandas-dev/pandas/pulls/11362
2015-10-18T08:36:40Z
2015-10-18T16:02:57Z
2015-10-18T16:02:57Z
2015-10-18T16:03:53Z
DOC: added exp weighting clarifications from #8861
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index dfb9fab19bf31..cc114a2519d92 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -528,10 +528,18 @@ In general, a weighted moving average is calculated as y_t = \frac{\sum_{i=0}^t w_i x_{t-i}}{\sum_{i=0}^t w_i}, ...
I integrated the comments in #8861 from @seth-p into the exponential weighted moment functions docs.
https://api.github.com/repos/pandas-dev/pandas/pulls/11361
2015-10-18T04:23:02Z
2015-11-01T10:27:53Z
2015-11-01T10:27:53Z
2015-11-01T10:28:53Z
WIP: avoid some numpy warnings #8537
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 7c4701b61c18d..ea2b85d983ade 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -41,6 +41,7 @@ API changes - Regression from 0.16.2 for output formatting of long floats/nan, restored in (:issue:`1130...
closes #8537 - avoid numpy comparison to `None` warnings - change null indexing from `ValueError` to `TypeError` (more consistent with other errors) - elementwise comparisons with index names xref #11162 - elementwise comparisons vs string-likes
https://api.github.com/repos/pandas-dev/pandas/pulls/11356
2015-10-17T16:30:40Z
2015-10-18T23:52:37Z
2015-10-18T23:52:37Z
2015-10-18T23:52:37Z
PERF: fast inf checking in to_excel
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index dcea59545aae3..6a739873a032f 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -43,6 +43,7 @@ "numexpr": [], "pytables": [], "openpyxl": [], + "xlsxwriter": [], "xlrd": [], "xlwt"...
Adds new functions to check for infinity rather than calling `np.isposinf` and `np.isneginf`, which were (surprising to me) a significant drag on `to_excel`. I also added `xlsxwriter` to the asv build configuration. `openpyxl` is still failing, I'm assuming something do with the specific version on conda? ``` be...
https://api.github.com/repos/pandas-dev/pandas/pulls/11352
2015-10-17T01:20:27Z
2015-10-17T15:08:44Z
2015-10-17T15:08:44Z
2015-10-21T22:41:46Z
DEPR: remove some SparsePanel deprecation warnings in testing
diff --git a/pandas/core/panel.py b/pandas/core/panel.py index 08ef82835830c..da0ab7bc59440 100644 --- a/pandas/core/panel.py +++ b/pandas/core/panel.py @@ -680,8 +680,8 @@ def _combine(self, other, func, axis=0): elif np.isscalar(other): return self._combine_const(other, func) else: - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/11347
2015-10-16T22:05:26Z
2015-10-18T16:03:57Z
2015-10-18T16:03:56Z
2015-10-18T16:03:57Z
BUG: bug in comparisons vs tuples, #11339
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 6d4b61bb97f22..c5ae364e4a528 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -64,8 +64,8 @@ Bug Fixes - Bug in ``HDFStore.select`` when comparing with a numpy scalar in a where clause (:issue:`1...
closes #11339
https://api.github.com/repos/pandas-dev/pandas/pulls/11345
2015-10-16T16:01:39Z
2015-10-16T21:51:18Z
2015-10-16T21:51:18Z
2015-10-16T21:51:18Z
ENH: Add Index.fillna
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 38629ee7baaea..3618c31b65116 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -1367,6 +1367,31 @@ with duplicates dropped. idx1.sym_diff(idx2) idx1 ^ idx2 +Missing values +~~~~~~~~~~~~~~ + +.. _indexing.missing: + +.. ve...
Closes #10089. - `value` can only accept scalar. - `MultiIndex.fillna` raises `NotImplementedError` because `isnull` is not defined for MI. - Moved `hasnans` and related properties to base `Index`.
https://api.github.com/repos/pandas-dev/pandas/pulls/11343
2015-10-16T14:22:08Z
2015-11-13T16:05:41Z
2015-11-13T16:05:41Z
2015-11-13T21:17:44Z
TST: tests for list skiprows in read_excel
diff --git a/pandas/io/tests/data/testskiprows.xls b/pandas/io/tests/data/testskiprows.xls new file mode 100644 index 0000000000000..21ccd30ec62da Binary files /dev/null and b/pandas/io/tests/data/testskiprows.xls differ diff --git a/pandas/io/tests/data/testskiprows.xlsm b/pandas/io/tests/data/testskiprows.xlsm new fi...
Closes #4903 This seemed to be fixed already, so just adding tests
https://api.github.com/repos/pandas-dev/pandas/pulls/11340
2015-10-16T02:49:53Z
2015-10-16T07:53:21Z
2015-10-16T07:53:21Z
2016-07-21T16:02:53Z
CLN: GH11271 move _get_handle, UTF encoders to io.common
diff --git a/pandas/core/common.py b/pandas/core/common.py index 724843d379f64..c6e774b5077db 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -5,8 +5,6 @@ import re import collections import numbers -import codecs -import csv import types from datetime import datetime, timedelta from functools i...
closes #11271
https://api.github.com/repos/pandas-dev/pandas/pulls/11330
2015-10-15T00:01:39Z
2015-10-15T22:21:38Z
2015-10-15T22:21:38Z
2015-10-15T22:21:45Z
BUG: Bug in DataFrame.replace with a datetime64[ns, tz] and a non-compat to_replace #11326
diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index e9614ec4f2290..512aacad8a837 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -72,9 +72,15 @@ Bug Fixes - Bug in ``HDFStore.select`` when comparing with a numpy scalar in a where clause (:issue:`...
closes #11326 xref #11153
https://api.github.com/repos/pandas-dev/pandas/pulls/11329
2015-10-14T19:26:29Z
2015-10-17T15:04:49Z
2015-10-17T15:04:49Z
2015-10-17T15:04:49Z