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
implement bits of numpy_helper in cython where possible
diff --git a/pandas/_libs/src/numpy_helper.h b/pandas/_libs/src/numpy_helper.h index 6c2029fff8a1a..844be9b292be3 100644 --- a/pandas/_libs/src/numpy_helper.h +++ b/pandas/_libs/src/numpy_helper.h @@ -18,33 +18,6 @@ The full license is in the LICENSE file, distributed with this software. PANDAS_INLINE npy_int64 get_...
Like with the transition to tslibs.np_datetime, this implements pieces of numpy_helper.h directly in cython in util.pxd. The generated C should be equivalent to existing versions, but that is worth double-checking. One dependency is removed from setup.py that was missed in #19415, should have been deleted there.
https://api.github.com/repos/pandas-dev/pandas/pulls/19450
2018-01-30T00:33:23Z
2018-01-31T11:30:22Z
2018-01-31T11:30:22Z
2018-02-11T21:58:35Z
Continue de-nesting core.ops
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index ba8a15b60ba56..6ea4a81cb52a1 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -39,8 +39,7 @@ ABCSeries, ABCDataFrame, ABCIndex, - ABCPeriodIndex, - ABCSparseSeries) + ABCSparseSeries, ABCSparseArray) def _gen_eval_kwargs(...
- Move `isinstance(other, ABCDataFrame)` checks to consistently be the first thing checked in Series ops - Remove `force` kwarg, define it in the one place it is used. - Remove kludge for `PeriodIndex` - Handle categorical_dtype earlier in arith_method_SERIES, decreasing complexity of the closure. - Handle ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19448
2018-01-29T18:27:20Z
2018-02-02T11:29:53Z
2018-02-02T11:29:53Z
2018-02-04T16:43:27Z
catch PerformanceWarning
diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py index 38e5753d1752d..8feee6e6cff68 100644 --- a/pandas/tests/series/test_operators.py +++ b/pandas/tests/series/test_operators.py @@ -19,6 +19,7 @@ from pandas.core.indexes.timedeltas import Timedelta import pandas.core.nanops ...
- [x] closes #19409
https://api.github.com/repos/pandas-dev/pandas/pulls/19446
2018-01-29T17:16:36Z
2018-01-29T23:59:33Z
2018-01-29T23:59:33Z
2018-02-04T16:41:18Z
Simple solutions for users running into problems running large queries in pandas.read_gbq()
diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py index b452b0cf5ddd4..b5027adfa7a41 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -1,4 +1,5 @@ """ Google BigQuery support """ +import datetime def _try_import(): @@ -23,6 +24,8 @@ def _try_import(): def read_gbq(query, project_id=None, index_col=None, ...
- This solves the `allowLargeResults` problem users bump into when running large queries using `pandas.read_gbq()`. Here is an example: ``` > import pandas > project_id = '' # add your project id: > q = """ SELECT contributor_id, FROM [bigquery-publi...
https://api.github.com/repos/pandas-dev/pandas/pulls/19445
2018-01-29T17:10:17Z
2018-01-29T23:58:00Z
null
2023-05-11T01:17:16Z
Change Future to DeprecationWarning for make_block_same_class
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index ec884035fe0c4..f3e5e4c99a899 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -230,7 +230,7 @@ def make_block_same_class(self, values, placement=None, ndim=None, if dtype is not None: # issue 19431 fastpa...
xref https://github.com/pandas-dev/pandas/pull/19434 @jreback I didn't want to further discuss on the PR, so let's do that here :-) By having it as a FutureWarning, we only annoy users, and the fastparquet developers are already aware of it. BTW, we do exactly the same for pyarrow's 'misuse' of internal API, we...
https://api.github.com/repos/pandas-dev/pandas/pulls/19442
2018-01-29T13:00:15Z
2018-01-29T21:39:09Z
2018-01-29T21:39:09Z
2018-01-29T21:39:13Z
BUG: Fix problem with SparseDataFrame not persisting to csv
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 1890636bc8e1a..ae1d05ecdb008 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -497,7 +497,6 @@ I/O - Bug in :func:`DataFrame.to_parquet` where an exception was raised if the write destination is S3...
- [x] closes #19384 - [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/19441
2018-01-29T08:03:44Z
2018-02-01T19:26:16Z
2018-02-01T19:26:16Z
2018-02-01T19:26:21Z
TST: fix test for MultiIndexPyIntEngine on 32 bit
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 9582264a8c716..65332ae7153e2 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -1611,7 +1611,7 @@ def test_pyint_engine(self): index = MultiIndex.from_tuples(keys) assert in...
- [x] closes #19439 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` It was just a problem in the test.
https://api.github.com/repos/pandas-dev/pandas/pulls/19440
2018-01-29T07:47:08Z
2018-01-29T14:07:03Z
2018-01-29T14:07:03Z
2018-01-30T04:47:31Z
BUG: don't assume series is length > 0
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 69965f44d87a8..e8d2ec5eb0d9e 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -555,7 +555,7 @@ Sparse - Bug in which creating a ``SparseDataFrame`` from a dense ``Series`` or an unsupported type ...
- [x] closes #19368 - [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/19438
2018-01-29T07:08:02Z
2018-02-06T01:24:54Z
null
2018-02-06T01:25:22Z
CI: pin fastparquet <= 0.1.3
diff --git a/ci/requirements-2.7.sh b/ci/requirements-2.7.sh index e3bd5e46026c5..81a45eaca8620 100644 --- a/ci/requirements-2.7.sh +++ b/ci/requirements-2.7.sh @@ -4,4 +4,4 @@ source activate pandas echo "install 27" -conda install -n pandas -c conda-forge feather-format pyarrow=0.4.1 fastparquet +conda install -...
https://api.github.com/repos/pandas-dev/pandas/pulls/19435
2018-01-28T20:52:05Z
2018-01-28T22:13:06Z
null
2018-01-28T22:13:06Z
[#19431] Regression in make_block_same_class (tests failing for new fastparquet release)
diff --git a/doc/source/io.rst b/doc/source/io.rst index ae04996b4fddf..4199f161501ec 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4537,7 +4537,7 @@ See the documentation for `pyarrow <http://arrow.apache.org/docs/python/>`__ and .. note:: These engines are very similar and should read/write nearly...
- [x] closes https://github.com/pandas-dev/pandas/issues/19431 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry `dtype` seems still in use at: https://github.com/minggli/pandas/blob/2f4fc0790a5e5c51eb80bbfadf4c80f0bb424c56/pandas/core/internals....
https://api.github.com/repos/pandas-dev/pandas/pulls/19434
2018-01-28T18:59:58Z
2018-01-29T12:43:00Z
2018-01-29T12:43:00Z
2018-01-29T12:46:08Z
BUG: groupby with resample using on parameter errors when selecting column to apply function
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 69965f44d87a8..3b7c3ee916e17 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -548,7 +548,7 @@ Groupby/Resample/Rolling - Bug in :func:`DataFrame.resample` which silently ignored unsupported (or mi...
- [x] closes #17813 - [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/19433
2018-01-28T16:56:33Z
2018-02-05T11:13:45Z
null
2018-02-05T11:14:50Z
Misc typos
diff --git a/asv_bench/benchmarks/replace.py b/asv_bench/benchmarks/replace.py index 6330a2b36c516..41208125e8f32 100644 --- a/asv_bench/benchmarks/replace.py +++ b/asv_bench/benchmarks/replace.py @@ -44,15 +44,15 @@ class Convert(object): goal_time = 0.5 params = (['DataFrame', 'Series'], ['Timestamp', 'Ti...
Found via `codespell -q 3`
https://api.github.com/repos/pandas-dev/pandas/pulls/19430
2018-01-28T14:22:35Z
2018-01-29T14:14:34Z
2018-01-29T14:14:34Z
2018-01-29T14:22:40Z
DOC: Spellcheck of categorical.rst and visualization.rst
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index 7364167611730..efcc04d688334 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -19,10 +19,11 @@ Categorical Data This is an introduction to pandas categorical data type, including a short comparison with R's ``factor`...
Minor changes to the documentation, specifically `categorical.rst` and `visualization.rst`: * Function references as links. * Backticks ` `` ` around Series, DataFrame. * Minor rephrasing of sentences, spelling, etc. * For plots such as lag plots, Andrews plot, Radviz, I added links to Wikipedia entries. Comme...
https://api.github.com/repos/pandas-dev/pandas/pulls/19428
2018-01-28T11:29:28Z
2018-01-31T23:54:16Z
2018-01-31T23:54:16Z
2018-02-01T05:29:38Z
DOC/ERR: better error message on no common merge keys
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ca625f492b61f..54dba831f7216 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -667,6 +667,7 @@ Reshaping - Bug in :func:`DataFrame.stack`, :func:`DataFrame.unstack`, :func:`Series.unstack` which we...
- [o] closes #19391 - [o] tests passed - [o] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - Let MergeError emit values keyword arguments - Add `DataFrame.join` on `See also` section of `pandas.merge`
https://api.github.com/repos/pandas-dev/pandas/pulls/19427
2018-01-28T08:30:26Z
2018-02-06T14:16:14Z
2018-02-06T14:16:13Z
2018-02-06T14:59:55Z
CLN: GH19404 Changing function signature to match logic
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6e777281b11e1..0174dc47f2144 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1906,7 +1906,7 @@ def to_pickle(self, path, compression='infer', return to_pickle(self, path, compression=compression, p...
- [x] closes #19404 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/19425
2018-01-27T18:09:39Z
2018-02-01T13:26:37Z
2018-02-01T13:26:36Z
2018-02-01T13:26:40Z
BUG: maybe_convert_objects with convert_datetime
diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx index 1fa07dbed6822..17fbc46ea550d 100644 --- a/pandas/_libs/src/inference.pyx +++ b/pandas/_libs/src/inference.pyx @@ -1333,9 +1333,20 @@ def maybe_convert_objects(ndarray[object] objects, bint try_float=0, seen.object_ = 1 ...
- [ Y] closes #19359 - [ Y] tests added / passed - [ Y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ Y] whatsnew entry: bug fix for GH19359
https://api.github.com/repos/pandas-dev/pandas/pulls/19423
2018-01-27T08:23:33Z
2018-10-11T01:54:27Z
null
2019-01-21T00:34:28Z
Remove src/numpy.pxd
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 996ece063b980..bfea4ff9915ac 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -8,10 +8,14 @@ from cpython.slice cimport PySlice_Check import numpy as np cimport numpy as cnp -from numpy cimport (ndarray, float64_t, int32_t, int64_...
The existence of the src/numpy.pxd file causes ambiguity as to where cimports are coming from. src/numpy.pxd? cython's numpy/__init__.pxd? What about the np.get_include() uses in setup.py? This PR gets rid of the unnecessary file by picking out the one definition that is actually needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/19418
2018-01-27T00:29:53Z
2018-01-27T16:33:25Z
2018-01-27T16:33:25Z
2018-01-27T18:29:05Z
Remove unused files from src/klib
diff --git a/pandas/_libs/src/klib/ktypes.h b/pandas/_libs/src/klib/ktypes.h deleted file mode 100644 index 981f17372a2d5..0000000000000 --- a/pandas/_libs/src/klib/ktypes.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __KTYPES_H -#define __KTYPES_H - -/* compipler specific configuration */ - -#endif /* __KTYPES_H */ diff --...
De-couple ujson from numpy_helper
https://api.github.com/repos/pandas-dev/pandas/pulls/19415
2018-01-26T18:45:41Z
2018-01-27T01:06:43Z
2018-01-27T01:06:43Z
2018-01-31T06:49:26Z
Refactor out libwriters, fix references to Timestamp, Timedelta
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index c3a654b01022c..e1d59f807a7fd 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -21,14 +21,7 @@ from cpython cimport (Py_INCREF, PyTuple_SET_ITEM, PyBytes_Check, PyUnicode_Check, ...
- [ ] 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/19413
2018-01-26T17:49:43Z
2018-02-01T11:33:01Z
2018-02-01T11:33:01Z
2018-02-11T21:57:03Z
[#7292] BUG: asfreq / pct_change strange behavior
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 4dde76dee46a5..b5b52c7b9c89b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -419,6 +419,7 @@ Datetimelike - Bug in ``.astype()`` to non-ns timedelta units would hold the incorrect dtype (:issue:`...
- [x] closes https://github.com/pandas-dev/pandas/issues/7292 - [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/19410
2018-01-26T12:46:18Z
2018-01-31T11:34:13Z
2018-01-31T11:34:12Z
2018-01-31T11:37:19Z
Pin Thrift to 0.10.*
diff --git a/ci/requirements-3.6_WIN.run b/ci/requirements-3.6_WIN.run index db2d429a2a4ff..3042888763863 100644 --- a/ci/requirements-3.6_WIN.run +++ b/ci/requirements-3.6_WIN.run @@ -12,5 +12,6 @@ numexpr pytables matplotlib blosc +thrift=0.10* fastparquet pyarrow
fastparquet compatibility in https://github.com/dask/fastparquet/pull/281, which will be released before long. But let's pin for now.
https://api.github.com/repos/pandas-dev/pandas/pulls/19408
2018-01-26T08:16:35Z
2018-01-26T10:11:58Z
2018-01-26T10:11:58Z
2018-02-16T11:54:28Z
DOC: catch warnings in test_feather & other
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 4508d5c1e1781..6e1b6e14861c3 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -215,7 +215,10 @@ def read(self, path, columns=None, **kwargs): # We need to retain the original path(str) while also # pass the S3File()....
https://api.github.com/repos/pandas-dev/pandas/pulls/19407
2018-01-26T03:50:33Z
2018-01-26T11:54:08Z
2018-01-26T11:54:08Z
2018-01-26T12:44:46Z
standardize cimports of numpy as "cnp"
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 9a7af71e74574..5d17488963b1c 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1,20 +1,14 @@ # cython: profile=False -cimport numpy as np -import numpy as np - cimport cython from cython cimport Py_ssize_t -np.import_array() - ...
In a few files this collects scattered numpy imports and puts them all in one place. Removes unnecessary `np.import_ufunc()` calls. - [ ] 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/19405
2018-01-26T01:19:49Z
2018-01-27T01:09:11Z
2018-01-27T01:09:11Z
2018-01-31T06:49:26Z
Make DateOffset.kwds a property
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 66e88e181ac0f..9cebe09280eba 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -341,6 +341,7 @@ Other API Changes - :func:`DatetimeIndex.shift` and :func:`TimedeltaIndex.shift` will now raise ``Null...
Returning to an older goal of making DateOffset immutable, this PR moves towards getting rid of `DateOffset.kwds` by making it a property instead of regular attribute. This uses the `_get_attributes_dict` pattern, albeit without actually using a `_get_attributes_dict` method. I expect this to entail a small perf pe...
https://api.github.com/repos/pandas-dev/pandas/pulls/19403
2018-01-26T00:07:48Z
2018-02-02T11:32:49Z
2018-02-02T11:32:49Z
2018-02-04T16:42:54Z
DOC: correct merge_ordered example
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 8ee30bf72d313..99ea2c4fe4688 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -194,19 +194,17 @@ def merge_ordered(left, right, on=None, 5 e 3 b >>> merge_ordered(A, B, fill_method='ffil...
- update of incorrect documentation example for merge_ordered. - adding a test corresponding to this example. - [ ] closes #19393 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19401
2018-01-25T22:41:27Z
2018-01-26T11:23:45Z
2018-01-26T11:23:45Z
2018-01-26T11:23:46Z
DOC: changes to use code-block declaration
diff --git a/doc/source/developer.rst b/doc/source/developer.rst index 5c3b114ce7299..0ef097da090f2 100644 --- a/doc/source/developer.rst +++ b/doc/source/developer.rst @@ -153,7 +153,7 @@ Libraries can use the decorators pandas objects. All of these follow a similar convention: you decorate a class, providing the nam...
- [ ] closes #19400 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19400
2018-01-25T21:57:20Z
2018-01-26T11:18:38Z
2018-01-26T11:18:37Z
2018-01-26T11:18:38Z
Fix invalid relativedelta_kwds
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 7509c502f27ed..473a4bb72e6d9 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1245,7 +1245,6 @@ Offsets - Bug in :class:`FY5253` where ``datetime`` addition and subtraction incremented incorrectly...
- [ ] 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/19398
2018-01-25T19:16:02Z
2018-07-20T13:29:26Z
2018-07-20T13:29:26Z
2020-04-05T17:40:50Z
Remove unused Index attributes
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 74c6abeb0ad12..626f3dc86556a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -141,12 +141,10 @@ class Index(IndexOpsMixin, PandasObject): _join_precedence = 1 # Cython methods - _arrmap = libalgos.a...
https://api.github.com/repos/pandas-dev/pandas/pulls/19397
2018-01-25T19:11:18Z
2018-01-27T01:12:24Z
2018-01-27T01:12:24Z
2018-01-31T06:49:27Z
Centralize ops kwarg specification
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 3db2dd849ccee..ba8a15b60ba56 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -39,7 +39,8 @@ ABCSeries, ABCDataFrame, ABCIndex, - ABCPeriodIndex) + ABCPeriodIndex, + ABCSparseSeries) def _gen_eval_kwargs(name): @@ -109,6 ...
Follow-up to #19346, making **kwargs more explicit, documenting how they are chosen, moving one method from `Panel` that belongs in `core.ops`. - [ ] 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/19396
2018-01-25T17:58:22Z
2018-01-27T01:20:21Z
2018-01-27T01:20:21Z
2018-01-31T06:49:27Z
Separate non-scalar tests from test_timestamps
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index 65dd166e1f6a8..e0fc6c470fe57 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -428,6 +428,16 @@ def test_applymap(self): result = frame.applymap(func) tm.assert...
Getting DataFrame, Series, Index tests out of tests.scalars and organizing them better, should make it easier to go and parametrize some older tests, in particular arithmetic and comparisons.
https://api.github.com/repos/pandas-dev/pandas/pulls/19385
2018-01-24T23:18:41Z
2018-01-25T12:01:56Z
2018-01-25T12:01:56Z
2018-01-31T06:49:34Z
Remove unused from _libs.parsers
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 932ae8b1a33d0..efe61716d0831 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -7,9 +7,8 @@ import warnings from csv import QUOTE_MINIMAL, QUOTE_NONNUMERIC, QUOTE_NONE -from libc.stdio cimport fopen, fclose -from libc.stdl...
- [ ] 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/19380
2018-01-24T19:26:23Z
2018-01-25T11:54:45Z
2018-01-25T11:54:45Z
2018-01-31T06:49:29Z
BUG SparseDataFrame with dense Series (#19374)
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 4dde76dee46a5..246eab386b2ab 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -512,7 +512,7 @@ Groupby/Resample/Rolling Sparse ^^^^^^ -- +- Bug in which creating a ``SparseDataFrame`` from a den...
- [X] closes #19374 - [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/19377
2018-01-24T18:04:21Z
2018-01-27T01:10:16Z
2018-01-27T01:10:16Z
2018-01-27T01:10:47Z
Add CategoricalDtype to deprecated core.categorical shim
diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py index 17435dfc48bde..530a3ecb5f378 100644 --- a/pandas/core/categorical.py +++ b/pandas/core/categorical.py @@ -5,3 +5,4 @@ FutureWarning, stacklevel=2) from pandas.core.arrays import Categorical # noqa +from pandas.core.dtypes.dtyp...
At least fastparquet was using it
https://api.github.com/repos/pandas-dev/pandas/pulls/19373
2018-01-24T16:08:24Z
2018-01-25T01:07:53Z
2018-01-25T01:07:53Z
2018-02-13T21:58:38Z
implement ABCInterval
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index e1ffd450c9a68..0718f8bd2b970 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -109,6 +109,7 @@ cdef class Interval(IntervalMixin): cut, qcut : Convert arrays of continuous data into Categoricals/Series of ...
Avoid python-space import in lib - [ ] 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/19367
2018-01-24T03:48:45Z
2018-01-25T01:10:11Z
2018-01-25T01:10:11Z
2018-02-11T21:58:30Z
updated hist documentation
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 8b03d6ddde4ec..88b899ad60313 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -2156,10 +2156,18 @@ def hist_frame(data, column=None, by=None, grid=True, xlabelsize=None, The size of the figure to create in inches by d...
pandas.DataFrame.hist()/pandas.Series.hist() currently say that the `bins` keyword argument must be an integer, with a default value of 10. Since these methods are built off matplotlib, these actually seem to be more flexible (allowing sequences as well as integers). I don't know if there was a reason for this discrepa...
https://api.github.com/repos/pandas-dev/pandas/pulls/19366
2018-01-24T03:45:40Z
2018-02-01T13:15:43Z
2018-02-01T13:15:43Z
2018-06-22T06:48:58Z
implement Timedelta mod, divmod, rmod, rdivmod, fix and test scalar methods
diff --git a/doc/source/timedeltas.rst b/doc/source/timedeltas.rst index 50cff4c7bbdfb..9890c976c4e5a 100644 --- a/doc/source/timedeltas.rst +++ b/doc/source/timedeltas.rst @@ -283,6 +283,18 @@ Rounded division (floor-division) of a ``timedelta64[ns]`` Series by a scalar td // pd.Timedelta(days=3, hours=4) pd.T...
Implemented mod, divmod, rmod, rdivmod for Timedelta, along with tests. In the process turned up a few bugs. Conditional probability that there are more bugs is pretty good. - fixed offsets.Tick // Timedelta, Timedelta // offsets.Tick - fixed Timedelta [+-] timedelta64 returning timedelta64 instead of Timedelta ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19365
2018-01-24T03:32:19Z
2018-02-19T07:38:20Z
null
2023-05-11T01:17:14Z
Separate io helpers from _libs.lib
diff --git a/pandas/_libs/io_helper.pyx b/pandas/_libs/io_helper.pyx new file mode 100644 index 0000000000000..aa9af96c1bd6c --- /dev/null +++ b/pandas/_libs/io_helper.pyx @@ -0,0 +1,233 @@ +# -*- coding: utf-8 -*- + +cimport cython +from cython cimport Py_ssize_t + +from cpython cimport (PyString_Check, PyBytes_Check,...
Avoids overlap with #19360 where possible. Moved functions are cut/paste verbatim. I'm open to a better name than io_helpers, just wanted to avoid overlap with the stdlib name "io". Besides refactoring for its own sake, part of the goal is to get lib down the point where we can merge src/inference back into it...
https://api.github.com/repos/pandas-dev/pandas/pulls/19364
2018-01-23T17:06:24Z
2018-01-26T17:24:40Z
null
2018-02-04T16:41:33Z
remove unused convert_sql_column
diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx index e15f276b39bf8..39656239aae76 100644 --- a/pandas/_libs/src/inference.pyx +++ b/pandas/_libs/src/inference.pyx @@ -1390,10 +1390,6 @@ def maybe_convert_objects(ndarray[object] objects, bint try_float=0, return objects -def conver...
- [ ] 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/19363
2018-01-23T16:41:44Z
2018-01-24T11:10:06Z
2018-01-24T11:10:06Z
2018-02-11T21:59:32Z
Remove unused functions, cimports
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index f8371d4855803..15aef867ba413 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -73,10 +73,6 @@ cpdef object get_value_box(ndarray arr, object loc): return util.get_value_1d(arr, i) -def set_value_at(ndarray arr, object loc...
Miscellaneous cleanup, use `util.is_array` instead of `isinstance`, that kind of thing. - [ ] 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/19360
2018-01-23T04:42:09Z
2018-01-24T01:03:40Z
2018-01-24T01:03:40Z
2018-02-11T21:59:35Z
Added cast blacklist for certain transform agg funcs
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 7f697003f44b9..71492154419fb 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -506,6 +506,7 @@ Groupby/Resample/Rolling - Fixed regression in :func:`DataFrame.groupby` which would not emit an error...
- [X] closes #19200 - [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/19355
2018-01-23T01:25:58Z
2018-01-23T11:00:56Z
2018-01-23T11:00:56Z
2018-01-23T17:09:45Z
ENH: add IntervalIndex.get_loc_exact to look for exact matches only
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 77e013e1e4fb0..3070765b3db22 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -229,6 +229,10 @@ def time_getitem_list(self, monotonic): def time_loc_list(self, monotonic): monotoni...
- [x] closes #19349 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This PR add a 'exact' option to the parameter ``method`` on ``IntervalIndex.get_loc`` for accepting exact matches only. In addition to it's direct advantage, it will later ma...
https://api.github.com/repos/pandas-dev/pandas/pulls/19353
2018-01-22T21:18:53Z
2018-05-18T18:09:19Z
null
2018-05-18T18:09:19Z
TST: Clean up pickle compression tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index 4cf5c9da44697..4fe66d4cf7e1f 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -4,6 +4,7 @@ import numpy import pandas import dateutil +import pandas.util._test_decorators as td def pytest_addoption(parser): @@ -73,3 +74,22 @@ def ip(): is_da...
xref #19226 Move compression fixture to top-level ``conftest.py`` Clean-up compression tests in ``pandas/tests/io/test_pickle.py`` and add zip to the ``decompress_file`` testing utility Make some minor adjustments to the json and csv compression tests to skip zip compression when it's not valid
https://api.github.com/repos/pandas-dev/pandas/pulls/19350
2018-01-22T20:37:09Z
2018-01-24T10:06:44Z
2018-01-24T10:06:44Z
2018-01-24T10:06:52Z
fix and test index division by zero
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 26a7a78bb5c55..2b3dec3efaa64 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -204,6 +204,50 @@ Please note that the string `index` is not supported with the round trip format, new_df print(...
Related: #19336, this implements the most important parts of the parametrization requested there. - [ ] closes #xxxx - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19347
2018-01-22T17:42:33Z
2018-02-06T01:30:30Z
null
2018-02-06T04:44:39Z
clarify redirection in ops
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index e0aa0a4a415e1..3db2dd849ccee 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -41,6 +41,297 @@ ABCIndex, ABCPeriodIndex) + +def _gen_eval_kwargs(name): + """ + Find the keyword arguments to pass to numexpr for the given operation. +...
core.ops involves a _lot_ of redirection. This decreases some of that redirection (and some redundancy) by implementing functions that show the logic of how some of the args/kwargs are chosen. The goal is to make it so future debugging can be done without going through `func.im_func.func_closure[1].cell_contents.func...
https://api.github.com/repos/pandas-dev/pandas/pulls/19346
2018-01-22T16:53:32Z
2018-01-25T11:59:05Z
2018-01-25T11:59:05Z
2018-02-11T22:00:13Z
DOC GH19312
diff --git a/pandas/core/series.py b/pandas/core/series.py index be40f65186d2d..00ea4960f0ebf 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -490,7 +490,8 @@ def compress(self, condition, *args, **kwargs): def nonzero(self): """ - Return the indices of the elements that are non...
- [x] closes #19312 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19345
2018-01-22T15:54:49Z
2018-01-23T00:17:06Z
null
2023-05-11T01:17:13Z
LINT: Adding scripts directory to lint, and fixing flake issues on them (#18949)
diff --git a/ci/lint.sh b/ci/lint.sh index 98b33c0803d90..49bf9a690b990 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -30,6 +30,13 @@ if [ "$LINT" ]; then fi echo "Linting asv_bench/benchmarks/*.py DONE" + echo "Linting scripts/*.py" + flake8 scripts --filename=*.py + if [ $? -ne "0" ]; then + ...
- [X] closes #18949 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19344
2018-01-22T14:29:03Z
2018-01-24T01:20:21Z
2018-01-24T01:20:21Z
2018-01-24T01:21:09Z
MAINT: Remove pytest.warns in tests
diff --git a/ci/lint.sh b/ci/lint.sh index a96e0961304e7..98b33c0803d90 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -89,6 +89,14 @@ if [ "$LINT" ]; then if [ $? = "0" ]; then RET=1 fi + + # Check for pytest.warns + grep -r -E --include '*.py' 'pytest\.warns' pandas/tests/ + + if [ $? = "0" ]...
Per discussion in #18258, we are prohibiting its use in tests, at least for the time being.
https://api.github.com/repos/pandas-dev/pandas/pulls/19341
2018-01-22T10:22:50Z
2018-01-22T23:59:55Z
2018-01-22T23:59:55Z
2018-01-23T10:05:14Z
ENH: Add dtype parameter to IntervalIndex constructors and deprecate from_intervals
diff --git a/doc/source/api.rst b/doc/source/api.rst index 88419df1880ec..ddd09327935ce 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1617,7 +1617,6 @@ IntervalIndex Components IntervalIndex.from_arrays IntervalIndex.from_tuples IntervalIndex.from_breaks - IntervalIndex.from_intervals I...
- [X] closes #19262 - [X] closes #19263 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Summary: - Added support for a `dtype` parameter to all IntervalIndex constructors - Allows users to override the inferred dtype - Deprecated `Interva...
https://api.github.com/repos/pandas-dev/pandas/pulls/19339
2018-01-22T03:53:42Z
2018-01-25T01:29:03Z
2018-01-25T01:29:02Z
2018-01-25T01:31:16Z
remove BlockManager.reindex
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 5c3481ed6d4ff..c2d3d0852384c 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -4407,42 +4407,6 @@ def _blklocs(self): """ compat with BlockManager """ return None - def reindex(self, new_axis, indexer=No...
- [x] closes #19275 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19338
2018-01-22T03:32:00Z
2018-01-24T01:23:36Z
2018-01-24T01:23:35Z
2018-02-11T21:59:30Z
separate numeric tests so we can isolate division by zero
diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py index 05ccb25960b1f..554b3e15d8f10 100644 --- a/pandas/tests/series/test_operators.py +++ b/pandas/tests/series/test_operators.py @@ -596,77 +596,81 @@ def test_divide_decimal(self): assert_series_equal(expected, s) ...
The upcoming fix(es) for #19322 are going to involve parametrizing a bunch of variants of division by zero. This separates out the existing test cases into method-specific tests, some of which will be parametrized in upcoming PRs. This PR does not change the aggregate contents of the tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/19336
2018-01-22T00:21:09Z
2018-02-08T11:28:55Z
2018-02-08T11:28:55Z
2018-02-08T14:14:13Z
DOC: organize 0.23 bug fix whatsnew
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index fe5342c520196..ad0f4bdbcbac2 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -398,67 +398,82 @@ Bug Fixes ~~~~~~~~~ -Conversion -^^^^^^^^^^ +Datetimelike +^^^^^^^^^^^^ -- Bug in :class:`Inde...
https://api.github.com/repos/pandas-dev/pandas/pulls/19335
2018-01-21T22:27:38Z
2018-01-21T22:28:07Z
2018-01-21T22:28:07Z
2018-01-21T22:28:07Z
Split test_ops_compat into targeted tests
diff --git a/pandas/tests/indexes/timedeltas/test_arithmetic.py b/pandas/tests/indexes/timedeltas/test_arithmetic.py index 1a6aabc2f258f..ef6523a9eb270 100644 --- a/pandas/tests/indexes/timedeltas/test_arithmetic.py +++ b/pandas/tests/indexes/timedeltas/test_arithmetic.py @@ -442,39 +442,36 @@ def test_tdi_floordiv_tim...
This and a couple other test-organizing PRs are being split off of a WIP branch to fix division-by-zero consistency. - [ ] 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/19334
2018-01-21T22:05:37Z
2018-01-22T11:14:47Z
2018-01-22T11:14:47Z
2018-02-11T21:58:49Z
Fix Index __mul__-like ops with timedelta scalars
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index a4b943f995a33..7e03449f2ac57 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -744,6 +744,7 @@ Timedelta - Bug in :func:`Timedelta.__floordiv__`, :func:`Timedelta.__rfloordiv__` where operating wit...
Fixes the following current behavior for each of the numeric index classes and each of the basic timedelta-like scalars: ``` idx = pd.Index(range(3)) td = pd.Timedelta(days=1) >>> idx * td TypeError: can only perform ops with timedelta like values >>> td * idx TypeError: can only perform ops with timedelta l...
https://api.github.com/repos/pandas-dev/pandas/pulls/19333
2018-01-21T21:46:55Z
2018-02-22T01:37:34Z
2018-02-22T01:37:34Z
2018-02-22T05:45:23Z
Refactor test_parquet.py to use check_round_trip at module level
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index d472a5ed23c75..8a6a22abe23fa 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -110,48 +110,79 @@ def df_full(): pd.Timestamp('20130103')]}) -def test_invalid_engi...
Refactoring and unification of testing approach in `test_parquet.py` module. Iteration upon work that was done for https://github.com/pandas-dev/pandas/pull/19135#issuecomment-358161165 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] tests added / passed
https://api.github.com/repos/pandas-dev/pandas/pulls/19332
2018-01-21T19:39:38Z
2018-01-23T11:36:51Z
2018-01-23T11:36:51Z
2018-05-16T05:07:38Z
TST: Clean up json/test_compression.py
diff --git a/pandas/tests/io/json/test_compression.py b/pandas/tests/io/json/test_compression.py index a83ec53904b28..2cf4c435bdc12 100644 --- a/pandas/tests/io/json/test_compression.py +++ b/pandas/tests/io/json/test_compression.py @@ -1,38 +1,10 @@ import pytest import pandas as pd -from pandas import compat imp...
xref #19226 Use new ``decompress_file`` utility and compression fixture to clean up json compression tests
https://api.github.com/repos/pandas-dev/pandas/pulls/19331
2018-01-21T15:50:00Z
2018-01-21T17:50:06Z
2018-01-21T17:50:06Z
2018-01-22T19:51:27Z
BUG: DatetimeIndex(tz) & single column name, return empty df (GH19157)
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 4dde76dee46a5..3016b0490873b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -431,6 +431,7 @@ Timezones - :func:`Timestamp.replace` will now handle Daylight Savings transitions gracefully (:issue:...
- [x] closes #19157 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This issue is due to self._init_dict({0: values}, index, columns, dtype=dtype) will call for the filtering if columns passed (`data = {k: v for k, v in compat.iteritems(data) i...
https://api.github.com/repos/pandas-dev/pandas/pulls/19330
2018-01-21T13:57:58Z
2018-01-27T16:55:24Z
2018-01-27T16:55:23Z
2018-01-27T16:55:48Z
Change IntervalIndex set-ops error code type
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 86fc47dee09fc..cf3c3089750f8 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -312,6 +312,7 @@ Other API Changes - Addition or subtraction of ``NaT`` from :class:`TimedeltaIndex` will return ``Time...
- [x] xref #19021 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Set operations (union, difference...) on ``IntervalIndex`` with incompatible index types will now raise a ``TypeError`` rather than a ``ValueError``. This PR is needed to make ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19329
2018-01-21T06:00:52Z
2018-01-21T15:50:03Z
2018-01-21T15:50:03Z
2018-01-22T07:04:50Z
small cleanups aggregated
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 6d0a415f5b420..105fe9622a93f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5,7 +5,7 @@ import numpy as np from pandas._libs import (lib, index as libindex, tslib as libts, algos as ...
A few cleanups that I've found myself making repeatedly in WIP branches, figured it was worth pushing them to avoid cluttering diffs down the road. - [ ] 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/19328
2018-01-21T00:58:00Z
2018-01-21T15:10:46Z
2018-01-21T15:10:46Z
2018-01-23T04:40:02Z
BUG: Concatentation of TZ-aware dataframes (#12396) (#18447)
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index d10d51352d0e4..f51dcf662f593 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1370,6 +1370,8 @@ Reshaping - Bug in :meth:`DataFrame.astype` where column metadata is lost when converting to categor...
closes #12396 closes #18447 - [ ] 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/19327
2018-01-20T23:30:49Z
2018-05-11T21:52:24Z
null
2018-05-11T21:52:25Z
BUG: Crosstab bug in #18321
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 86fc47dee09fc..6ffafe2fae9c7 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -509,6 +509,7 @@ Reshaping - Bug in :func:`DataFrame.merge` in which merging using ``Index`` objects as vectors raised ...
- [x] closes #18321 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixing bug in #18321 The bug is because the function `df.pivot_table` tries to remove only the top level of the column in crosstab data frame. When the series names are tupples, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19326
2018-01-20T23:28:34Z
2018-01-24T12:15:03Z
null
2018-01-24T12:15:14Z
DOC: Improve docs (GH19312) for Series.nonzero()
diff --git a/pandas/core/series.py b/pandas/core/series.py index be40f65186d2d..fc512d23a05ba 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -490,7 +490,7 @@ def compress(self, condition, *args, **kwargs): def nonzero(self): """ - Return the indices of the elements that are non...
- [x] closes #19312 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19324
2018-01-20T15:19:06Z
2018-01-23T00:10:50Z
2018-01-23T00:10:50Z
2018-01-23T14:00:21Z
0.22.x
diff --git a/.gitignore b/.gitignore index ff0a6aef47163..b1748ae72b8ba 100644 --- a/.gitignore +++ b/.gitignore @@ -106,3 +106,4 @@ doc/build/html/index.html doc/tmp.sv doc/source/styled.xlsx doc/source/templates/ +env/ diff --git a/.travis.yml b/.travis.yml index fe1a2950dbf08..42b4ef0396fc8 100644 --- a/.travis.y...
- [ ] 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/19323
2018-01-20T10:43:07Z
2018-01-21T15:07:22Z
null
2018-01-21T15:07:35Z
Separate test_numeric_compat into method-specific tests
diff --git a/pandas/tests/indexes/test_numeric.py b/pandas/tests/indexes/test_numeric.py index 1ce8ade50c071..3de1c4c982654 100644 --- a/pandas/tests/indexes/test_numeric.py +++ b/pandas/tests/indexes/test_numeric.py @@ -29,20 +29,21 @@ def full_like(array, value): class Numeric(Base): def test_numeric_compat(s...
A more reasonably-scoped attempt at #19255. - [ ] 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/19321
2018-01-20T01:07:20Z
2018-01-21T15:15:24Z
2018-01-21T15:15:24Z
2018-01-21T18:36:35Z
Centralize and de-duplicate comparison and arith tests
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py new file mode 100644 index 0000000000000..3f4e3877a276a --- /dev/null +++ b/pandas/tests/frame/test_arithmetic.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- + +import numpy as np + +import pandas as pd +import pandas.util.testing ...
These are almost all cut/paste moving tests to the appropriate places. Two exceptions: - Some "TODO: de-duplicate this with that" notes (mostly to myself) - `TestTimedeltaIndexArithmetic.test_numeric_compat` badly needed to be split into more specific tests, so that is done here.
https://api.github.com/repos/pandas-dev/pandas/pulls/19317
2018-01-19T18:39:21Z
2018-01-21T15:25:56Z
2018-01-21T15:25:56Z
2018-01-21T18:36:27Z
Refactor core.internals into core/internals/ dir
diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py new file mode 100644 index 0000000000000..59098b5da3bd9 --- /dev/null +++ b/pandas/core/internals/__init__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- + +from .blocks import * # noqa +from .managers import * # noqa +from .joins import...
Discussed in #19268, not sure if the time is right for this since it causes some rebase headaches, but may be worth it. Note that git is of the opinion that the file core/internals.py was moved to core/internals/blocks.py, not sure if that matters for e.g. blame.
https://api.github.com/repos/pandas-dev/pandas/pulls/19316
2018-01-19T18:29:06Z
2018-01-21T07:29:43Z
null
2018-02-11T21:58:52Z
Standardize accessor naming convention self._parent, avoid self._data
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 708f903cd73cb..932485de47f55 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2163,6 +2163,7 @@ class CategoricalAccessor(PandasDelegate, PandasObject, NoNewAttributesMixin): def __i...
As discussed in #19294, getting rid of these `._data` cases goes a long way towards making the contents of a `._data` attribute predictable.
https://api.github.com/repos/pandas-dev/pandas/pulls/19309
2018-01-19T05:57:35Z
2018-01-19T11:29:31Z
null
2018-02-11T21:58:53Z
FIX: Raise errors when wrong string arguments are passed to `resample`
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 86fc47dee09fc..148fabfb96d68 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -486,7 +486,7 @@ Groupby/Resample/Rolling - Bug when grouping by a single column and aggregating with a class like ``...
- [x] closes #19303 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry As a first step, the initial commit just extends the resampling tests so that they fail when a misstyped string argument, e.g. for `label`, passes silently without raising. I...
https://api.github.com/repos/pandas-dev/pandas/pulls/19307
2018-01-18T23:36:00Z
2018-01-21T15:47:34Z
2018-01-21T15:47:34Z
2018-01-23T14:44:15Z
separate _libs/src/reduce.pyx to _libs.reduction
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 9c0791c3eb8ce..1632f5d016439 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -6,7 +6,7 @@ from cython cimport Py_ssize_t import numpy as np cimport numpy as np -from numpy cimport (ndarray, PyArray_NDIM, PyArray_GETITEM, PyArray_SETITEM,...
- [ ] 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/19306
2018-01-18T23:18:30Z
2018-01-21T17:57:37Z
2018-01-21T17:57:37Z
2018-01-23T04:39:54Z
Remove duplicate is_lexsorted function
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index f6c70027ae6f1..5f8c761157e88 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -896,38 +896,6 @@ def write_csv_rows(list data, ndarray data_index, # ------------------------------------------------------------------------------ # Groupby-rel...
`_libs.lib` and `_libs.algos` have near-identical `is_lexsorted` functions. The only differences appear to be small optimizations/modernizations in the `algos` version. AFAICT the `algos` version is only used in `tests.test_algos` ATM. This PR removes the `libs._lib` version and changes the one usage (in `indexes.mu...
https://api.github.com/repos/pandas-dev/pandas/pulls/19305
2018-01-18T22:34:26Z
2018-01-19T11:01:49Z
2018-01-19T11:01:49Z
2018-01-19T16:03:39Z
REF: Change how pandas.core.common shim works
diff --git a/pandas/__init__.py b/pandas/__init__.py index 78501620d780b..9d76e4ec31922 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -58,6 +58,9 @@ from pandas.io.api import * from pandas.util._tester import test import pandas.testing +from pandas.core.common import _add_deprecated +_add_deprecated() ...
I have a PR incoming that would introduce a circular dependency between pandas.core.arrays.categorical, pandas.api, and pandas.core.common. This change will allow that PR to avoid hacky workarounds, since the real problem is pandas.core importing pandas.api.types. xref https://github.com/pandas-dev/pandas/pull/...
https://api.github.com/repos/pandas-dev/pandas/pulls/19304
2018-01-18T21:44:38Z
2018-02-19T19:37:11Z
null
2018-02-19T19:37:15Z
Fix DTI comparison with None, datetime.date
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 66e88e181ac0f..89276e3c241d0 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -452,6 +452,8 @@ Datetimelike - Bug in subtracting :class:`Series` from ``NaT`` incorrectly returning ``NaT`` (:issue:`...
Discussed in #19288 - [ ] 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/19301
2018-01-18T17:21:09Z
2018-02-02T11:38:05Z
2018-02-02T11:38:05Z
2018-02-04T16:41:08Z
Bug: adds support for unary plus
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 1c6b698605521..f70e1198aa999 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -253,6 +253,7 @@ Current Behavior: Other Enhancements ^^^^^^^^^^^^^^^^^^ +- Unary ``+`` now permitted for ``Series``...
- [ ] closes #16073 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Adds missing unary plus operator from #16073. Adds typechecking behavior to unary neg, along with tests for both.
https://api.github.com/repos/pandas-dev/pandas/pulls/19297
2018-01-18T13:02:38Z
2018-02-08T11:32:05Z
2018-02-08T11:32:04Z
2018-02-08T12:53:18Z
Implement libinternals
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx new file mode 100644 index 0000000000000..93a45335efc9c --- /dev/null +++ b/pandas/_libs/internals.pyx @@ -0,0 +1,438 @@ +# -*- coding: utf-8 -*- + +cimport cython +from cython cimport Py_ssize_t + +from cpython cimport PyObject + +cdef extern from "P...
A bunch of functions from `lib` that are only used in core.internals, have light dependencies. Small optimizations: made `slice_getitem` a `cdef` instead of `def`, use PySlice_Check instead of isinstance.
https://api.github.com/repos/pandas-dev/pandas/pulls/19293
2018-01-18T07:36:42Z
2018-01-19T11:06:15Z
null
2018-01-19T16:56:30Z
cleanup inconsistently used imports
diff --git a/ci/lint.sh b/ci/lint.sh index 35b39e2abb3c6..a96e0961304e7 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -91,6 +91,15 @@ if [ "$LINT" ]; then fi echo "Check for invalid testing DONE" + # Check for imports from pandas.core.common instead + # of `import pandas.core.common as com` + echo "C...
There are a bunch of modules that will do both `import pandas.core.common as com` and `from pandas.core.common import _whatever`, then sprinkled throughout we'll see both `_whatever` and `com._whatever`. This PR tracks down a bunch of those and standardizes on `com._whatever`. - [ ] closes #xxxx - [ ] tests added ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19292
2018-01-18T04:26:04Z
2018-01-21T16:43:13Z
2018-01-21T16:43:13Z
2022-11-15T19:24:38Z
Fix (Series|DataFrame).interpolate for datetime dtypes
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 86fc47dee09fc..80768945544f4 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -430,6 +430,7 @@ Conversion - +- Bug in :meth:`Series.interpolate` and :class:`DataFrame.interpolate` where ``dtype...
- [x] closes #19199 - [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/19291
2018-01-18T01:53:08Z
2018-01-23T18:52:11Z
null
2020-04-05T17:39:53Z
WIP: Dispatch Series comparison methods to Index implementations
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index fc3ea106252db..cfd75201fcd53 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -11,7 +11,7 @@ import pandas as pd import datetime -from pandas._libs import (lib, index as libindex, +from pandas._libs import (lib, tslib a...
Same thing we've been doing for arithmetic operations, now moving on to comparison methods. Based on some trial-and-error, it seems like there are some inconsistencies to be worked out for the categorical dtype case. This PR: - Dispatches timedelta and datetime `Series` comparisons to their respective `Index` subc...
https://api.github.com/repos/pandas-dev/pandas/pulls/19288
2018-01-17T18:32:06Z
2018-01-23T18:51:53Z
null
2018-06-22T03:42:01Z
DOC: add `source activate` for older versions of Anaconda and fix a typo
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index cdbbad6eb75d6..258ab874cafcf 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -171,6 +171,9 @@ We'll now kick off a three-step process: # Create and activate the build environment conda env create -f ci/env...
In the contrib docs, `conda activate` should be `source activate`, and there was also an extraneous period after the "continuous integration" heading.
https://api.github.com/repos/pandas-dev/pandas/pulls/19282
2018-01-17T13:57:23Z
2018-01-19T08:57:42Z
2018-01-19T08:57:42Z
2018-01-19T08:57:42Z
BUG: timezone comparisions are inconsistent, manifesting in bugs in .concat
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 853d5cee11cd1..a93e0b1a3b0dd 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -427,7 +427,6 @@ Conversion - Bug in :class:`Index` multiplication and division methods where operating with a ``Series...
closes #18523 superseded #18596
https://api.github.com/repos/pandas-dev/pandas/pulls/19281
2018-01-17T11:39:19Z
2018-01-18T00:14:03Z
2018-01-18T00:14:03Z
2018-01-18T00:14:10Z
DOC: add missing period to DataFrame docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2c05eefa5706e..35cc7a2a34acb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -250,7 +250,7 @@ class DataFrame(NDFrame): """ Two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and ...
- [x] closes #19141 Went ahead and did this one manually. Working on a regex that will apply this to all docstrings in general and will make a new PR when it's ready.
https://api.github.com/repos/pandas-dev/pandas/pulls/19280
2018-01-17T07:35:25Z
2018-01-17T11:46:45Z
2018-01-17T11:46:45Z
2018-01-17T11:46:47Z
remove unused block attribute
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 43fdd454250a5..bc75a110354c0 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -97,7 +97,6 @@ class Block(PandasObject): is_sparse = False _box_to_block_values = True _can_hold_na = False - _downcast_dtype = N...
grepping across the code, `_downcast_dtype` doesn't show up anywhere else. - [ ] 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/19279
2018-01-17T07:33:09Z
2018-01-18T00:42:04Z
2018-01-18T00:42:04Z
2018-02-11T21:59:04Z
Remove timeop
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 853d5cee11cd1..ca5385ee4f857 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -310,6 +310,7 @@ Other API Changes - :func:`Series.to_csv` now accepts a ``compression`` argument that works in the sam...
We're finally able to remove `ops._Op` and `ops._TimeOp`. This PR makes one final compatibility fix: ATM: ``` tdi = pd.TimedeltaIndex(['1 Day']) ser = pd.Series(tdi) >>> tdi + np.nan TypeError: unsupported operand type(s) for +: 'TimedeltaIndex' and 'float' >>> ser + np.nan 0 NaT dtype: timedelta64[ns...
https://api.github.com/repos/pandas-dev/pandas/pulls/19277
2018-01-17T06:39:10Z
2018-01-19T11:32:36Z
2018-01-19T11:32:36Z
2018-01-19T16:06:02Z
Fix tzawareness_compat for DatetimeIndex comparisons with NaT
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 853d5cee11cd1..e8923a4c0bc20 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -431,7 +431,7 @@ Conversion - - Bug in ``.astype()`` to non-ns timedelta units would hold the incorrect dtype (:issue:...
ATM `pd.date_range('2016-01-01', periods=1, tz='US/Pacific') < pd.NaT` raises `TypeError` because `NaT` is tz-naive. This fixes that. - [ ] 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/19276
2018-01-17T06:30:29Z
2018-01-18T00:32:46Z
2018-01-18T00:32:46Z
2018-02-11T21:59:05Z
TST: Clean up DataFrame.to_csv compression tests
diff --git a/pandas/tests/conftest.py b/pandas/tests/conftest.py new file mode 100644 index 0000000000000..8f5d963927f60 --- /dev/null +++ b/pandas/tests/conftest.py @@ -0,0 +1,11 @@ +import pytest +import pandas.util._test_decorators as td + + +@pytest.fixture(params=[None, 'gzip', 'bz2', + pyte...
xref #19226 Parametrized some of the compression tests in ``tests/frame/test_to_csv.py`` and used the new ``decompress_file`` function.
https://api.github.com/repos/pandas-dev/pandas/pulls/19273
2018-01-16T19:18:48Z
2018-01-21T15:29:33Z
2018-01-21T15:29:33Z
2018-01-22T13:58:11Z
REF: Move pandas.core.categorical
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index cf63b5083885e..75cf0a88e37c1 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -55,7 +55,7 @@ from pandas.core.dtypes.common import ( is_bool_dtype, is_object_dtype, is_datetime64_dtype, pandas_dtype) -from panda...
Prep for https://github.com/pandas-dev/pandas/pull/19268
https://api.github.com/repos/pandas-dev/pandas/pulls/19269
2018-01-16T16:06:55Z
2018-01-18T17:31:43Z
2018-01-18T17:31:42Z
2018-01-18T17:31:46Z
Array Interface and Categorical internals Refactor
diff --git a/pandas/core/arrays/__init__.py b/pandas/core/arrays/__init__.py index ee32b12f0e712..f8adcf520c15b 100644 --- a/pandas/core/arrays/__init__.py +++ b/pandas/core/arrays/__init__.py @@ -1 +1,2 @@ +from .base import ExtensionArray # noqa from .categorical import Categorical # noqa diff --git a/pandas/core/...
(edit post categorical-move) Rebased on master. Summary of the changes from master: Added the ExtensionArray class Categorical subclasses ExtensionArray Implements the new methods for the interface (all private. No public API changes) Adapted the ExtensionDtype class to be the public A...
https://api.github.com/repos/pandas-dev/pandas/pulls/19268
2018-01-16T15:25:09Z
2018-02-02T21:34:21Z
2018-02-02T21:34:21Z
2018-02-02T21:38:06Z
Remove unused fastpath kwarg from Blocks
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 2177fa541b13e..d616ef441a31b 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -104,7 +104,7 @@ class Block(PandasObject): _holder = None _concatenator = staticmethod(np.concatenate) - def __init__(self, values, ...
The `fastpath` kwarg in `Block.__init__` must be vestigial or something. It isn't used anywhere in the blocks themselves. This PR removes the unused kwarg.
https://api.github.com/repos/pandas-dev/pandas/pulls/19265
2018-01-16T06:30:52Z
2018-01-19T21:50:33Z
2018-01-19T21:50:33Z
2018-12-07T22:36:12Z
CLN: put mgr_locs setter next to property definition
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 3c923133477df..43fdd454250a5 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -191,6 +191,13 @@ def fill_value(self): def mgr_locs(self): return self._mgr_locs + @mgr_locs.setter + def mgr_locs(self, new_...
- [ ] 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/19264
2018-01-16T04:42:29Z
2018-01-17T00:15:31Z
2018-01-17T00:15:31Z
2018-02-11T21:59:07Z
BUG: Patch handling of keep_default_na=False
diff --git a/doc/source/io.rst b/doc/source/io.rst index 2f29e390c0ba1..ae04996b4fddf 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -214,8 +214,20 @@ na_values : scalar, str, list-like, or dict, default ``None`` for a list of the values interpreted as NaN by default. keep_default_na : boolean, default...
Patches very buggy behavior of `keep_default_na=False` whenever `na_values` is a dict * Respect `keep_default_na` for column that doesn't exist in `na_values` dictionary * Don't crash / break when `na_value` is a scalar in the `na_values` dictionary. In addition, clarifies documentation on the handling of the ke...
https://api.github.com/repos/pandas-dev/pandas/pulls/19260
2018-01-16T00:22:46Z
2018-01-18T00:23:17Z
2018-01-18T00:23:16Z
2018-01-18T04:21:37Z
DOC: corrects Expanding min_periods default in docstring
diff --git a/pandas/core/window.py b/pandas/core/window.py index 76ba76b7a9da9..5d2fa16876c11 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -1286,7 +1286,7 @@ class Expanding(_Rolling_and_Expanding): Parameters ---------- - min_periods : int, default None + min_periods : int, defau...
Currently the doc string says the ``min_periods`` default is ``None``, while it in the code actually is 1. This PR fixes this.
https://api.github.com/repos/pandas-dev/pandas/pulls/19259
2018-01-15T23:55:43Z
2018-01-16T00:13:43Z
2018-01-16T00:13:43Z
2018-01-17T10:11:49Z
move panel-specific swaplevel to panel
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index cef1e551f948e..d4fdb56b8b9a6 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -720,31 +720,6 @@ def squeeze(self, axis=None): except Exception: return self - def swaplevel(self, i=-2, j=-1, axis=0): - ...
NDFrame.swaplevel is overriden by both Series and DataFrame, so in practice the "generic" implementation is specific to Panel. This PR just moves the method from NDFrame to Panel. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew ent...
https://api.github.com/repos/pandas-dev/pandas/pulls/19258
2018-01-15T23:40:30Z
2018-01-15T23:47:11Z
null
2018-01-15T23:47:17Z
PERF: remove use of Panel & perf in rolling corr/cov
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 59cf7d090a622..75990d83f8212 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -11,8 +11,8 @@ class Methods(object): [10, 1000], ['int', 'float'], ['media...
closes #17917 ``` before after ratio [aa9e0024] [872fe711] - 1.70s 16.02ms 0.01 rolling.Pairwise.time_pairwise(None, 'corr', True) - 1.84s 17.12ms 0.01 rolling.Pairwise.time_pairwise(10, 'corr', True) - 1.84s 16.98ms 0.01 rolling.Pairwise.time_pairwise(1000...
https://api.github.com/repos/pandas-dev/pandas/pulls/19257
2018-01-15T23:37:15Z
2018-02-01T12:45:16Z
2018-02-01T12:45:16Z
2018-02-01T12:45:16Z
Refactor numeric tests
diff --git a/pandas/tests/indexes/test_numeric.py b/pandas/tests/indexes/test_numeric.py index dcd592345b91c..6dc07d8336f92 100644 --- a/pandas/tests/indexes/test_numeric.py +++ b/pandas/tests/indexes/test_numeric.py @@ -27,22 +27,22 @@ def full_like(array, value): class Numeric(Base): - def test_numeric_comp...
Separate tests.series.test_operators into smaller test files specific to arithmetic for datetime-like, tiemdelta-like, numeric, and comparisons. Cleans up some leftover TODOs for index arithmetic tests. The actual contents of tests are unchanged, just split up and moved around.
https://api.github.com/repos/pandas-dev/pandas/pulls/19255
2018-01-15T20:33:09Z
2018-01-15T20:42:37Z
null
2018-02-11T21:59:12Z
Fix Index mul/div ops with Series, closes #19080, #19042
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 744f1e14533e7..7c54d44d9f25b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -423,6 +423,9 @@ Conversion - Bug in :class:`WeekOfMonth` and :class:`LastWeekOfMonth` where default keyword arguments ...
- [x] closes #19080, closes #19042 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19253
2018-01-15T19:36:22Z
2018-01-16T23:59:29Z
2018-01-16T23:59:28Z
2018-01-17T03:02:30Z
Fix pd.NaT - Series
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 314a5a3f37311..672ef8be1f72a 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -416,10 +416,10 @@ Conversion - Bug in :class:`WeekOfMonth` and :class:`LastWeekOfMonth` where default keyword argument...
Tests will be added after #19139 is merged, since largely that will involve removing an "xfail" from tests that already exist there. - [x] closes #19158 - [ ] 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/19251
2018-01-15T19:02:06Z
2018-01-16T11:17:41Z
2018-01-16T11:17:41Z
2018-02-11T21:59:11Z
CLN: Remove unused core.internals methods
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 2482148af9308..5c3481ed6d4ff 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -303,10 +303,6 @@ def getitem_block(self, slicer, new_mgr_locs=None): def shape(self): return self.values.shape - @property - ...
De-duplicate some bits of DatetimeBlock and DatetimeTZBlock. - [x] closes #19243 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19250
2018-01-15T18:48:20Z
2018-01-21T19:30:14Z
2018-01-21T19:30:14Z
2018-01-23T04:40:18Z
DEPR: change Panel DeprecationWarning -> FutureWarning
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 14949267fc37d..402b85ceb681a 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -225,6 +225,34 @@ If installed, we now require: | openpyxl | 2.4.0 | | +--------------...
closes #18324
https://api.github.com/repos/pandas-dev/pandas/pulls/19247
2018-01-15T13:39:04Z
2018-01-16T00:14:37Z
2018-01-16T00:14:37Z
2018-01-16T00:15:01Z
CLN: Refactor Index._validate_names()
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index f634d809560ee..c4f413cca7fab 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -785,7 +785,13 @@ def copy(self, name=None, deep=False, dtype=None, **kwargs): new_index = self._shallow_copy() ...
- [x] closes #19171 - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/19246
2018-01-15T12:42:02Z
2018-01-24T10:27:33Z
null
2018-02-12T12:38:08Z
Doc: Adds example of categorical data for efficient storage and consistency across DataFrames
diff --git a/doc/source/merging.rst b/doc/source/merging.rst index 74b21c21252ec..6c8061f5cbdfd 100644 --- a/doc/source/merging.rst +++ b/doc/source/merging.rst @@ -152,7 +152,7 @@ functionality below. Set logic on the other axes ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -When gluing together multiple DataFrames, you have a choi...
- [X] closes #12509
https://api.github.com/repos/pandas-dev/pandas/pulls/19245
2018-01-15T06:00:54Z
2018-11-01T01:37:51Z
null
2018-11-01T01:37:51Z
BUG: unsupported type Interval when writing dataframe to excel
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 246eab386b2ab..52d8cf5f0a66d 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -489,6 +489,8 @@ I/O - Bug in :func:`DataFrame.to_latex()` where pairs of braces meant to serve as invisible placeholde...
- [x] closes #19242 closes #9155 - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19244
2018-01-15T04:08:46Z
2018-01-27T16:56:34Z
2018-01-27T16:56:33Z
2018-01-27T16:56:50Z
BUG: Fixes rounding error in Timestamp.floor()
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ca625f492b61f..7800a7c391940 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -551,6 +551,7 @@ Datetimelike - Bug in :func:`~DataFrame.pct_change` using ``periods`` and ``freq`` returned different ...
- [x] closes #19206 - [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/19240
2018-01-14T23:53:18Z
2018-02-07T15:25:39Z
2018-02-07T15:25:38Z
2018-02-07T15:30:33Z