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
DOC: Fixes to the whatsnew structure
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index 145acbc55b85f..b85150c3444b7 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -164,5 +164,5 @@ See the package overview for more detail about what's in the library. developer internals extend...
- [X] xref #24499 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Changes in this PR: - Moving `releases.rst` to `whatsnew/index.rst`, which is more consistent with the new structure of the documentation - Sorting the `whatsnew/index` from the...
https://api.github.com/repos/pandas-dev/pandas/pulls/24679
2019-01-09T02:08:38Z
2019-01-09T12:33:45Z
2019-01-09T12:33:45Z
2019-01-09T12:33:46Z
DOC: Creating top-level getting started section, and moving pages inside
diff --git a/doc/source/10min.rst b/doc/source/getting_started/10min.rst similarity index 100% rename from doc/source/10min.rst rename to doc/source/getting_started/10min.rst diff --git a/doc/source/basics.rst b/doc/source/getting_started/basics.rst similarity index 100% rename from doc/source/basics.rst rename to doc/...
- [X] xref #24499 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24678
2019-01-09T01:50:44Z
2019-01-23T17:52:12Z
2019-01-23T17:52:12Z
2019-01-23T17:52:12Z
DOC: Creating top-level user guide section, and moving pages inside
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index b85150c3444b7..571c906acbd43 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -131,25 +131,7 @@ See the package overview for more detail about what's in the library. cookbook dsintro basics -...
- [X] xref #24499 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is part of #24499, will be moving the pages in different PRs, so it's easier to discuss.
https://api.github.com/repos/pandas-dev/pandas/pulls/24677
2019-01-09T01:25:29Z
2019-01-23T16:22:24Z
2019-01-23T16:22:24Z
2019-01-23T16:22:25Z
STY: use pytest.raises context syntax
diff --git a/pandas/tests/io/msgpack/test_sequnpack.py b/pandas/tests/io/msgpack/test_sequnpack.py index 48f9817142762..91f5778a7ce6c 100644 --- a/pandas/tests/io/msgpack/test_sequnpack.py +++ b/pandas/tests/io/msgpack/test_sequnpack.py @@ -30,7 +30,9 @@ def test_foobar(self): assert unpacker.unpack() == ord(b...
xref #24332
https://api.github.com/repos/pandas-dev/pandas/pulls/24676
2019-01-08T22:53:52Z
2019-01-09T12:17:50Z
2019-01-09T12:17:50Z
2019-01-09T13:23:44Z
[WIP]: API ExtensionDtype for DTA & TDA
diff --git a/doc/source/api/arrays.rst b/doc/source/api/arrays.rst index 5ecc5181af22c..8a66e1d87c1c6 100644 --- a/doc/source/api/arrays.rst +++ b/doc/source/api/arrays.rst @@ -136,7 +136,7 @@ Methods A collection of timestamps may be stored in a :class:`arrays.DatetimeArray`. For timezone-aware data, the ``.dtype`...
Closes https://github.com/pandas-dev/pandas/issues/24662 TODO: - [ ] Dedicated tests for new is_<foo> types - [ ] Run the extension dtype tests for new dtypes - [ ] (maybe?) see if the new EA tests pass for the new arrays. Tricky, since they aren't allowed internally. g - [ ] failing dtype validation tests ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24674
2019-01-08T15:49:30Z
2019-07-29T15:21:36Z
null
2019-07-29T15:21:36Z
REF: move templated index.pyx code to non-template
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index c919086701536..8cea529fbb07e 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -226,7 +226,13 @@ cdef class IndexEngine: return self.vgetter() def _call_monotonic(self, values): - raise NotImplementedError + ...
Following cleanup of libalgos, we can get a little bit of code out of the tempita file.
https://api.github.com/repos/pandas-dev/pandas/pulls/24669
2019-01-08T03:28:36Z
2019-01-08T19:49:46Z
2019-01-08T19:49:46Z
2019-01-08T21:26:57Z
DOC: Removed duplicate doc line
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 7bbbdd70e062e..a09f20b5453ff 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6217,8 +6217,6 @@ def _gotitem(self, array, e.g., ``numpy.mean(arr_2d)`` as opposed to ``numpy.mean(arr_2d, axis=0)``. - `agg` is an alias for `aggr...
This line of documentation is already included in the parent shared docs. So the line appears twice. See the screenshot below from [the Dataframe.aggregate page](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.aggregate.html). My patch cleans that up. ![screenshot from 2019-01-07 17-00-12](ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/24668
2019-01-08T01:01:01Z
2019-01-26T15:14:36Z
null
2019-01-26T15:14:36Z
Ensure TDA.__init__ validates freq
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 1ec37c9f228a6..47b3f93f88b78 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -15,8 +15,8 @@ from pandas.util._decorators import Appender from pandas.core.dtypes.common import ( - _NS_DTY...
Users should not be able to construct invalid instances with the public constructor. De-duplicates some code.
https://api.github.com/repos/pandas-dev/pandas/pulls/24666
2019-01-07T23:36:52Z
2019-01-09T16:21:51Z
2019-01-09T16:21:50Z
2019-01-09T18:13:24Z
Have DTA._simple_new take dtype instead of tz
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 2de22e062b29b..cfb697b3c357a 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -296,12 +296,11 @@ def _round(self, freq, mode, ambiguous, nonexistent): result = round_nsint64(val...
Allows for better code-sharing. I'm pretty sure after this we can get rid of _get_attributes_dict
https://api.github.com/repos/pandas-dev/pandas/pulls/24665
2019-01-07T23:13:21Z
2019-01-08T12:58:49Z
2019-01-08T12:58:49Z
2019-01-08T16:47:03Z
BLD: Include tslibs src
diff --git a/setup.py b/setup.py index 7ba4f5ba399d0..ed2d905f4358b 100755 --- a/setup.py +++ b/setup.py @@ -491,7 +491,7 @@ def srcpath(name=None, suffix='.pyx', subdir='src'): common_include = ['pandas/_libs/src/klib', 'pandas/_libs/src'] -ts_include = ['pandas/_libs/tslibs/src'] +ts_include = ['pandas/_libs/tsl...
Fixes the pip build in pandas-dev/pandas-ci. This worked for me locally in an env setup with https://github.com/pandas-dev/pandas-release. Closes https://github.com/pandas-dev/pandas/issues/22192
https://api.github.com/repos/pandas-dev/pandas/pulls/24664
2019-01-07T22:31:50Z
2019-01-08T02:51:36Z
2019-01-08T02:51:36Z
2019-01-08T03:50:55Z
BUG: fix to_datetime failing to raise on mixed tznaive/tzaware datetimes
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 4bc50695e1ecd..797c3faeb1fd0 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1549,6 +1549,7 @@ Datetimelike - Bug in :class:`PeriodIndex` where comparisons against an array-like object with lengt...
- [x] closes #24569 - [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/24663
2019-01-07T18:46:53Z
2019-01-09T12:15:10Z
2019-01-09T12:15:09Z
2019-01-09T14:48:37Z
API: Datetime/TimedeltaArray from to_datetime
diff --git a/pandas/core/arrays/array_.py b/pandas/core/arrays/array_.py index 32c08e40b8033..c7be8e3f745c4 100644 --- a/pandas/core/arrays/array_.py +++ b/pandas/core/arrays/array_.py @@ -1,6 +1,7 @@ from pandas._libs import lib, tslibs -from pandas.core.dtypes.common import is_extension_array_dtype +from pandas.co...
Closes https://github.com/pandas-dev/pandas/issues/24656
https://api.github.com/repos/pandas-dev/pandas/pulls/24660
2019-01-07T13:09:54Z
2019-01-08T19:40:52Z
2019-01-08T19:40:52Z
2019-01-08T19:40:57Z
DOC: small doc fixup of missing pd.
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 7c06288c01221..02cbc7e2c3b6d 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -76,7 +76,7 @@ The exact details of what an :class:`~pandas.api.extensions.ExtensionArray` is a beyond the scope of this introduction. See :ref:`basics.dtypes`...
There was a failing example again in the IPython directive. Follow-up on https://github.com/pandas-dev/pandas/pull/24649 and https://github.com/pandas-dev/pandas/pull/24650
https://api.github.com/repos/pandas-dev/pandas/pulls/24659
2019-01-07T13:03:49Z
2019-01-07T14:27:58Z
2019-01-07T14:27:58Z
2019-01-07T14:35:54Z
XLSB support in read_excel() - #8540
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000000..e947f30d285cd --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,147 @@ +version: 2 +jobs: + + # -------------------------------------------------------------------------- + # 0. py27_compat + # ----------------------...
XLSB support in read_excel() #8540
https://api.github.com/repos/pandas-dev/pandas/pulls/24658
2019-01-07T07:00:05Z
2019-01-07T16:13:19Z
null
2019-01-07T16:13:19Z
BUG: DataFrame/Series.tz_convert does not modifies original data with copy=False
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 4bc50695e1ecd..eb2c59f6a3519 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1596,6 +1596,7 @@ Timezones - Bug in :func:`to_datetime` where ``utc=True`` was not respected when passing a :class:`T...
- [x] closes #6326 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This also impacted `tz_localize` as well. Non blocking for 0.24
https://api.github.com/repos/pandas-dev/pandas/pulls/24657
2019-01-07T06:29:49Z
2019-01-08T00:27:59Z
2019-01-08T00:27:58Z
2020-10-29T21:23:11Z
STY: use pytest.raises context syntax
diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py index d175f669703c7..52dce572c6d4f 100644 --- a/pandas/tests/io/formats/test_format.py +++ b/pandas/tests/io/formats/test_format.py @@ -2720,7 +2720,12 @@ def test_format_percentiles(): expected = ['0%', '50%', '2.0%', '50...
xref #24332
https://api.github.com/repos/pandas-dev/pandas/pulls/24655
2019-01-06T22:27:43Z
2019-01-08T12:59:42Z
2019-01-08T12:59:42Z
2019-01-08T19:52:19Z
TST/CI: disable hypothesis deadline for test_tick_add_sub
diff --git a/pandas/tests/tseries/offsets/test_ticks.py b/pandas/tests/tseries/offsets/test_ticks.py index a1940241b4c56..dcc7afa797063 100644 --- a/pandas/tests/tseries/offsets/test_ticks.py +++ b/pandas/tests/tseries/offsets/test_ticks.py @@ -4,7 +4,7 @@ """ from datetime import datetime, timedelta -from hypothes...
- [x] closes #24641 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24654
2019-01-06T17:09:53Z
2019-01-06T19:19:00Z
2019-01-06T19:19:00Z
2019-01-06T19:19:05Z
REF: clear out a bunch of algos, de-duplicate a bunch of core.missing
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index a064aec492df2..b3c519ab99b6e 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -369,31 +369,6 @@ ctypedef fused algos_t: uint8_t -# TODO: unused; needed? -@cython.wraparound(False) -@cython.boundscheck(False) -cpdef map_indice...
- [ ] 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/24652
2019-01-06T15:56:29Z
2019-01-07T22:04:53Z
2019-01-07T22:04:53Z
2019-01-07T22:04:56Z
REF: io/formats/html.py (and io/formats/format.py)
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index f8ee9c273fd59..bdeed58d856cc 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -730,15 +730,14 @@ def to_html(self, classes=None, notebook=False, border=None): .. versionadded:: 0.19.0 """ -...
- [ n/a] follow-on #24637 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ n/a] whatsnew entry this refactor further limits responsibilities of functions/module and should allow a simpler implementation for fixes of #17004, #9690 etc.
https://api.github.com/repos/pandas-dev/pandas/pulls/24651
2019-01-06T11:25:07Z
2019-01-08T13:07:50Z
2019-01-08T13:07:50Z
2019-01-08T19:51:32Z
DOC: Fixing more doc warings and wrong .. code-block :: directive (space before colon)
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d4a2945f8e3a5..3aa5a10807fd0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -162,6 +162,14 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then # invgrep -R --include '*.py' -E '[[:space:]] pytest.raises' pandas/tests # RET=$(($RET + $?)) ...
Using `.. code-block ::` with a space before the colon wasn't making the blocks be validated for flake8 issues. Same for `ipython` directive. Making sure the space is not present, and fixing flake8 errors.
https://api.github.com/repos/pandas-dev/pandas/pulls/24650
2019-01-06T01:30:26Z
2019-01-06T16:03:49Z
2019-01-06T16:03:48Z
2019-01-07T14:39:46Z
DOC: whatsnew & linked edits
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 9981310b4a6fb..68f17a68784c9 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -921,7 +921,7 @@ If you need integer based selection, you should use ``iloc``: dfir.iloc[0:5] -.. _advanced.intervallindex: +.. _advanced.interv...
https://api.github.com/repos/pandas-dev/pandas/pulls/24649
2019-01-05T21:53:34Z
2019-01-06T15:52:32Z
2019-01-06T15:52:32Z
2019-01-06T15:52:32Z
CI/TST: Check that unittest.mock is not being used in testing
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index da1b035cf3ed2..d4a2945f8e3a5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -148,6 +148,11 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -R --exclude=*.pyc --exclude=testing.py --exclude=test_util.py assert_raises_regex pandas ...
xref https://github.com/pandas-dev/pandas/pull/24624#issuecomment-451658866
https://api.github.com/repos/pandas-dev/pandas/pulls/24648
2019-01-05T21:52:31Z
2019-01-05T22:47:22Z
2019-01-05T22:47:22Z
2020-09-17T00:59:13Z
PERF: 10x speedup in Series/DataFrame construction for lists of ints
diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py index 7c78fe7e7a177..9082b4186bfa4 100644 --- a/asv_bench/benchmarks/ctors.py +++ b/asv_bench/benchmarks/ctors.py @@ -41,7 +41,7 @@ def list_of_lists_with_none(arr): class SeriesConstructors(object): - param_names = ["data_fmt", "with_in...
This PR is a minor tweak to the `int64`/`uint64` overflow fix added in https://github.com/pandas-dev/pandas/pull/18624 Simply casting to an `int` after doing a typecheck is sufficient for the compiler to generate a 10x speedup: ``` $ asv compare upstream/master HEAD --sort ratio -s Benchmarks that have improve...
https://api.github.com/repos/pandas-dev/pandas/pulls/24647
2019-01-05T21:31:56Z
2019-01-06T15:48:43Z
2019-01-06T15:48:42Z
2019-01-06T15:48:43Z
Repr for Integer and Pandas Dtypes
diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index f8f87ff1c96f1..b3dde6bf2bd93 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -36,6 +36,11 @@ class _IntegerDtype(ExtensionDtype): type = None na_value = np.nan + def __repr__(self): + ...
```python >>> pd.PandasDtype("int64") PandasDtype('int64') >>> pd.Int32Dtype() Int32Dtype() >>> pd.UInt8Dtype() UInt8Dtype() ```
https://api.github.com/repos/pandas-dev/pandas/pulls/24646
2019-01-05T20:17:41Z
2019-01-05T21:07:35Z
2019-01-05T21:07:35Z
2019-01-05T21:07:39Z
WIP: NaTD
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 037e7de27adc3..2faef4128050d 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +from __future__ import division + import collections import textwra...
There are a bunch of places where we do something like: ``` def method(self, other): [...] if isinstance(other, (np.timedelta64, timedelta, Tick)): other = Timedelta(other) [...] ``` But in the case where we start with `np.timedelta64('NaT')`, we end up with `NaT` whic...
https://api.github.com/repos/pandas-dev/pandas/pulls/24645
2019-01-05T17:49:23Z
2019-03-20T02:09:56Z
null
2021-11-20T23:23:23Z
CLN: remove redundant mac wheel-build code
diff --git a/setup.py b/setup.py index 6cd359b281b56..7ba4f5ba399d0 100755 --- a/setup.py +++ b/setup.py @@ -401,20 +401,6 @@ def run(self): cmdclass.update({'clean': CleanCommand, 'build': build}) -try: - from wheel.bdist_wheel import bdist_wheel - - class BdistWheel(bdist_wheel): - d...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry this code is redundant for wheels built using https://github.com/MacPython/pandas-wheels, as the line https://github.com/matthew-brett/multibuild/blob/266d88fe1e474748cc8a3823dc3...
https://api.github.com/repos/pandas-dev/pandas/pulls/24644
2019-01-05T16:43:45Z
2019-01-05T18:32:17Z
2019-01-05T18:32:17Z
2019-01-05T22:21:07Z
Make DTA/TDA/PA return NotImplemented on comparisons
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index e6fbc6d1f4b15..b858dc0a8d54a 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -19,7 +19,8 @@ is_extension_type, is_float_dtype, is_int64_dtype, is_object_dtype, is_period_dtype, is_string_...
Before implementing a boilerplate decorator like in #24282, going through to standardize the affected behaviors.
https://api.github.com/repos/pandas-dev/pandas/pulls/24643
2019-01-05T16:08:27Z
2019-01-05T21:54:32Z
2019-01-05T21:54:32Z
2019-01-05T21:59:16Z
DOC: fix warnings in docstrings examples for deprecated functions
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index e6fbc6d1f4b15..3d5312ff1ed49 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -766,8 +766,8 @@ def tz_convert(self, tz): With the `tz` parameter, we can change the DatetimeIndex to...
- [x] closes #24525 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I have updated all the `FutureWarning`, let me know if `PerformanceWarning` and `DtypeWarning` shown below also needs a fix. ```zsh python scripts/validate_docstrings.py --...
https://api.github.com/repos/pandas-dev/pandas/pulls/24642
2019-01-05T14:42:34Z
2019-01-05T17:31:42Z
2019-01-05T17:31:42Z
2019-01-05T23:58:06Z
Fix 32-bit builds by correctly using intp_t instead of int64_t for nmpy.searchsorted result, part 2 (#24621)
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 7c9c2cafd1afb..6aa02ca1e5421 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -1290,7 +1290,8 @@ def is_date_array_normalized(int64_t[:] stamps, object tz=None): cdef: Py_s...
xref #24613
https://api.github.com/repos/pandas-dev/pandas/pulls/24640
2019-01-05T13:55:17Z
2019-01-05T14:48:33Z
2019-01-05T14:48:33Z
2019-01-05T14:48:33Z
CLN: Parameterize test cases
diff --git a/pandas/tests/plotting/test_converter.py b/pandas/tests/plotting/test_converter.py index 01aa8e8ccc1ee..7dfc21562cc5d 100644 --- a/pandas/tests/plotting/test_converter.py +++ b/pandas/tests/plotting/test_converter.py @@ -239,29 +239,17 @@ def test_conversion_outofbounds_datetime(self): xp = convert...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/24639
2019-01-05T13:43:40Z
2019-01-05T14:56:03Z
2019-01-05T14:56:03Z
2019-01-05T16:09:18Z
DOC: parallel safe
diff --git a/doc/sphinxext/contributors.py b/doc/sphinxext/contributors.py index 8c9fa5bc961d1..179ba19a0908a 100644 --- a/doc/sphinxext/contributors.py +++ b/doc/sphinxext/contributors.py @@ -46,4 +46,8 @@ def run(self): def setup(app): app.add_directive('contributors', ContributorsDirective) - return {'ver...
@datapythonista this may have been why the parallel option wasn't helping you.
https://api.github.com/repos/pandas-dev/pandas/pulls/24638
2019-01-05T12:54:42Z
2019-01-05T14:55:34Z
2019-01-05T14:55:34Z
2019-01-06T00:07:01Z
REF: io/formats/html.py (and io/formats/format.py)
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 9dc2692f276e3..f8ee9c273fd59 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -778,7 +778,7 @@ def space_format(x, y): for i, (col, x) in enumerate(zip(columns, ...
- [ n/a] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ n/a] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24637
2019-01-05T12:43:27Z
2019-01-05T14:55:15Z
2019-01-05T14:55:15Z
2019-01-05T21:05:31Z
Fix DeprecationWarning: invalid escape sequence in versioneer.py
diff --git a/versioneer.py b/versioneer.py index 2725fe98641a4..01adaa248dbd4 100644 --- a/versioneer.py +++ b/versioneer.py @@ -464,7 +464,9 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False): print("unable to run %s (error)" % dispcmd) return None return stdout -...
Hello, This is a little patch to fix a `DeprecationWarning: invalid escape sequence` in `versioneer.py`. - [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24636
2019-01-05T12:19:13Z
2019-01-05T17:52:34Z
2019-01-05T17:52:34Z
2019-01-05T17:58:37Z
DOC: Fix flake8 errors on whatsnew v0.15*
diff --git a/doc/source/whatsnew/v0.15.0.rst b/doc/source/whatsnew/v0.15.0.rst index 6f74f0393d123..36f2c9013219b 100644 --- a/doc/source/whatsnew/v0.15.0.rst +++ b/doc/source/whatsnew/v0.15.0.rst @@ -5,11 +5,6 @@ v0.15.0 (October 18, 2014) {{ header }} -.. ipython:: python - :suppress: - - from pandas import ...
- [ ] closes #24239
https://api.github.com/repos/pandas-dev/pandas/pulls/24635
2019-01-05T11:10:07Z
2019-01-05T14:54:55Z
2019-01-05T14:54:55Z
2019-01-05T15:03:43Z
TST: Fixed timezone issues post DatetimeArray refactor
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 7fa386935e3f4..2c8f3ad07b639 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1553,6 +1553,7 @@ Timezones - Bug in :func:`to_datetime` where ``utc=True`` was not respected when specifying a ``unit...
- [x] closes #22905 - [x] closes #18338 - [x] closes #19420 - [x] closes #21184 - [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/24634
2019-01-05T08:27:33Z
2019-01-06T15:53:49Z
2019-01-06T15:53:48Z
2019-01-06T18:04:29Z
DOC: update applymap docstring in pandas/core/frame.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a50def7357826..9c9720522189d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6501,6 +6501,14 @@ def applymap(self, func): -------- DataFrame.apply : Apply a function along input axis of DataFrame. + Notes + ...
- [x] closes #24612 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/24633
2019-01-05T04:02:53Z
2019-01-05T14:54:34Z
2019-01-05T14:54:34Z
2019-01-05T15:37:42Z
CI: unify environment creation
diff --git a/.travis.yml b/.travis.yml index 529f1221899dc..022e11b7db950 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,15 +82,10 @@ before_install: install: - echo "install start" - ci/prep_cython_cache.sh - - ci/install_travis.sh + - ci/setup_env.sh - ci/submit_cython_cache.sh - echo "install done"...
closes #24498 closes #23923
https://api.github.com/repos/pandas-dev/pandas/pulls/24632
2019-01-05T03:58:29Z
2019-04-05T00:42:58Z
2019-04-05T00:42:57Z
2019-04-15T18:30:45Z
DOC: Improve DataFrame.align docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index d0555bd2e44b1..a8b90e413ebad 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8345,8 +8345,17 @@ def ranker(data): fill_value : scalar, default np.NaN Value to use for missing values. Defaults to NaN, but can be...
The docstring for `DataFrame.align` currently has no descriptions for the `method` or `limit` arguments (which both refer to the same arguments of `fillna`), so this PR adds those descriptions. https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.align.html
https://api.github.com/repos/pandas-dev/pandas/pulls/24631
2019-01-05T03:37:42Z
2019-01-05T14:54:06Z
2019-01-05T14:54:06Z
2019-01-05T15:08:15Z
Have Categorical ops defer to DataFrame; broken off of #24282
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 3be87c4cabaf0..09dd857182592 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1353,6 +1353,7 @@ Categorical - Bug in many methods of the ``.str``-accessor, which always failed on calling the ``Cat...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24630
2019-01-04T23:54:14Z
2019-01-05T14:53:45Z
2019-01-05T14:53:45Z
2019-01-05T15:38:52Z
CLN: replace lambdas with named functions so they are labeled in asv
diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py index 198ed1c90a2e9..7c78fe7e7a177 100644 --- a/asv_bench/benchmarks/ctors.py +++ b/asv_bench/benchmarks/ctors.py @@ -3,17 +3,55 @@ from pandas import Series, Index, DatetimeIndex, Timestamp, MultiIndex +def no_change(arr): + return arr ...
This complements a PR in `asv` (https://github.com/airspeed-velocity/asv/pull/771), but would be worthwhile on its own. `asv` compares benchmarks based on the `repr()` of the parameters, which causes issues when the parameter is an object that doesn't override the default `repr()` (such as functions, especially lamb...
https://api.github.com/repos/pandas-dev/pandas/pulls/24629
2019-01-04T22:37:20Z
2019-01-05T14:53:23Z
2019-01-05T14:53:22Z
2019-01-05T14:53:25Z
catch complex nan in util.is_nan, de-dup+optimize libmissing, tests
diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index e922a5d1c3b27..229edbac4992d 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -12,7 +12,9 @@ cimport pandas._libs.util as util from pandas._libs.tslibs.np_datetime cimport ( get_timedelta64_value, get_datetime64_value)...
gets rid of is_null_datelike_scalar, which would, among other things, treat `np.float64('-0.0')` as `iNaT`. Some overlap with #24619, merge conflicts should be small or zero. - [x] closes #24607 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry...
https://api.github.com/repos/pandas-dev/pandas/pulls/24628
2019-01-04T22:33:26Z
2019-01-05T17:52:55Z
2019-01-05T17:52:55Z
2019-01-05T17:58:51Z
Array api docs
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index a7557e6e1d1c2..972b562cfebba 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -657,7 +657,7 @@ Categoricals ------------ pandas can include categorical data in a ``DataFrame``. For full docs, see the -:ref:`categorical introduction <categ...
Closes https://github.com/pandas-dev/pandas/issues/24066 cc @datapythonista @jorisvandenbossche there are a few closely related changes here. * removed api.scalars. I think it's more useful to present "Here are all pandas extensions", and then sub-divide into array / scalar / dtype. I think arrays are the most ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24626
2019-01-04T21:30:36Z
2019-01-05T14:52:43Z
2019-01-05T14:52:43Z
2019-01-05T14:52:47Z
remove eadata
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 082a314facdd6..5a8809f754385 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -73,34 +73,30 @@ class DatetimeIndexOpsMixin(ExtensionOpsMixin): DatetimeLikeArrayMixin._maybe_...
Closes https://github.com/pandas-dev/pandas/issues/24565
https://api.github.com/repos/pandas-dev/pandas/pulls/24625
2019-01-04T20:52:15Z
2019-01-05T12:35:11Z
2019-01-05T12:35:10Z
2019-01-05T14:20:28Z
REF/TST: use pytest builtin monkeypatch fixture and remove mock fixture
diff --git a/pandas/conftest.py b/pandas/conftest.py index 30b24e00779a9..35a6b5df35ddc 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1,6 +1,5 @@ from datetime import date, time, timedelta from decimal import Decimal -import importlib import os from dateutil.tz import tzlocal, tzutc @@ -637,20 +636...
- [n/a ] xref https://github.com/pandas-dev/pandas/pull/24557#issuecomment-451174496 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [n/a ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24624
2019-01-04T19:39:01Z
2019-01-05T14:52:20Z
2019-01-05T14:52:20Z
2019-01-05T21:04:24Z
EA: revert treatment of i8values
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index cfb697b3c357a..73e799f9e0a36 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -606,7 +606,7 @@ def _concat_same_type(cls, to_concat): def copy(self, deep=False): values =...
One option for #24559, with some spillover into #24567. Restores freq validation (needs test) Retains a _private_ fastpath - [x] Closes #24615
https://api.github.com/repos/pandas-dev/pandas/pulls/24623
2019-01-04T19:36:43Z
2019-01-10T16:30:09Z
null
2019-01-10T16:30:14Z
ensure DatetimeTZBlock always gets a DatetimeArray
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f88114e1c9e20..5f2fc17b08ac6 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2240,24 +2240,11 @@ class DatetimeTZBlock(ExtensionBlock, DatetimeBlock): is_datetimetz = True is_extension =...
- [ ] 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/24622
2019-01-04T18:39:56Z
2019-01-05T14:51:59Z
2019-01-05T14:51:59Z
2019-01-05T15:39:37Z
Fix 32-bit builds by correctly using intp_t instead of int64_t for numpy.searchsorted result
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 7f06784062d1a..7c9c2cafd1afb 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -3,7 +3,7 @@ import cython import numpy as np cimport numpy as cnp -from numpy cimport uint8_t, int64_t,...
See discussion on #24613 - [x] closes #24613 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24621
2019-01-04T17:39:42Z
2019-01-04T18:37:59Z
2019-01-04T18:37:59Z
2019-01-04T18:41:45Z
CLN: _try_coerce_result, redundant dtypes.missing method
diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index c7f06bc5d7d4f..e922a5d1c3b27 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -12,8 +12,7 @@ cimport pandas._libs.util as util from pandas._libs.tslibs.np_datetime cimport ( get_timedelta64_value, get_datetime64_value)...
Started this branch with the idea of making DatetimeBlock, TimedeltaBlock, DatetimeTZBlock define _try_coerce_result using self._holder._from_sequence (which I still think is worthwhile, cc @TomAugspurger ) and got side-tracked. This ends up just being some cleanup and removal of a redundant method. Tiny perf bump ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24619
2019-01-04T16:29:56Z
2019-01-05T14:51:37Z
2019-01-05T14:51:37Z
2019-01-05T15:40:36Z
feature : forces index_type comparaison when asserting that one Dataf…
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index d0555bd2e44b1..90878f6406940 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3744,6 +3744,24 @@ def reindex_like(self, other, method=None, copy=True, limit=None, copy=copy, limit=limit, ...
Until now, when comparing if 2 Dataframes were like each other, reindexing occurred as a inner mechanism. It turns out, if the two indexes are not of the same type, one of the Dataframe was emptied and the assertion always failed. This fix forces the comparison of the index types if this specific case. Example of c...
https://api.github.com/repos/pandas-dev/pandas/pulls/24618
2019-01-04T15:56:51Z
2019-02-27T23:57:54Z
null
2019-02-27T23:57:54Z
check azure build
diff --git a/pandas/tests/test_errors.py b/pandas/tests/test_errors.py index d3b6a237a97a1..8b08853829f6e 100644 --- a/pandas/tests/test_errors.py +++ b/pandas/tests/test_errors.py @@ -7,6 +7,11 @@ import pandas as pd # noqa +def test_warning_raises(): + import numpy as np + np.dtype("Int64") + + @pytest.m...
This should fail the numpydev build on azure.
https://api.github.com/repos/pandas-dev/pandas/pulls/24616
2019-01-04T14:54:42Z
2019-01-17T15:11:13Z
null
2019-01-17T15:11:18Z
REF/TST: Add more pytest idiom to test_to_html.py
diff --git a/pandas/tests/io/formats/test_to_html.py b/pandas/tests/io/formats/test_to_html.py index 889b903088afa..554cfd306e2a7 100644 --- a/pandas/tests/io/formats/test_to_html.py +++ b/pandas/tests/io/formats/test_to_html.py @@ -38,564 +38,565 @@ def expected_html(datapath, name): return html.rstrip() -cla...
https://api.github.com/repos/pandas-dev/pandas/pulls/24609
2019-01-04T12:09:52Z
2019-01-04T13:55:12Z
2019-01-04T13:55:12Z
2019-01-04T17:41:48Z
REF: dispatch Series.quantile to DataFrame, remove ScalarBlock
diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py index 7d6aa6a42efc2..7878613a8b1b1 100644 --- a/pandas/core/internals/__init__.py +++ b/pandas/core/internals/__init__.py @@ -5,8 +5,7 @@ make_block, # io.pytables, io.packers FloatBlock, IntBlock, ComplexBlock, BoolBlock, ...
ScalarBlock exists because sometimes Block.quantile needs to return a scalar. By having Series dispatch to DataFrame, we simplify quantile in internals an get to remove ScalarBlock and make_block_scalar
https://api.github.com/repos/pandas-dev/pandas/pulls/24606
2019-01-04T02:09:48Z
2019-01-04T12:11:57Z
2019-01-04T12:11:57Z
2019-01-04T16:20:05Z
24024 follow-up: fix incorrectly accepting iNaT in validate_fill_value
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index 3708deb1a4b76..7d9ba420525c8 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -109,8 +109,6 @@ def ensure_object(object arr): return arr else: ...
remove box_values_as_index xref #23833, #23982 for overhaul of maybe_promote testing
https://api.github.com/repos/pandas-dev/pandas/pulls/24605
2019-01-04T00:34:26Z
2019-01-04T12:12:37Z
2019-01-04T12:12:37Z
2019-01-04T16:17:51Z
Fixed PeriodIndex._shallow_copy for i8
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index b59c32bb8a9d4..5e4dd2998a3be 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -322,13 +322,9 @@ def _shallow_copy(self, values=None, **kwargs): # this quite a bit. values =...
Closes https://github.com/pandas-dev/pandas/issues/24391 cc @jschendel
https://api.github.com/repos/pandas-dev/pandas/pulls/24604
2019-01-03T21:55:30Z
2019-01-04T17:57:42Z
2019-01-04T17:57:42Z
2019-01-04T19:53:58Z
DOC: Update doc description for day_opt in offsets
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 0ca9410df89c0..c2f51436612a4 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -903,9 +903,13 @@ cpdef int get_day_of_month(datetime other, day_opt) except? -1: Parameters ---------- o...
Follow-up to #24585.
https://api.github.com/repos/pandas-dev/pandas/pulls/24602
2019-01-03T20:42:12Z
2019-01-03T21:46:01Z
2019-01-03T21:46:01Z
2019-01-03T21:47:00Z
Rename DatetimeArray and TimedeltaArray
diff --git a/pandas/arrays/__init__.py b/pandas/arrays/__init__.py index 5433d11eccff9..7d9b1b7c7a659 100644 --- a/pandas/arrays/__init__.py +++ b/pandas/arrays/__init__.py @@ -6,8 +6,8 @@ from pandas.core.arrays import ( IntervalArray, PeriodArray, Categorical, SparseArray, IntegerArray, PandasArray, - D...
Closes #24231
https://api.github.com/repos/pandas-dev/pandas/pulls/24601
2019-01-03T20:24:28Z
2019-01-03T21:06:25Z
2019-01-03T21:06:25Z
2019-01-03T21:13:43Z
Fixed construction / factorization of empty PA and IA
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 0e3c59120415d..2e7216108a23e 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -217,6 +217,11 @@ def _from_sequence(cls, scalars, dtype=None, copy=False): @classmethod def _from_factorized(cl...
Closes https://github.com/pandas-dev/pandas/issues/23933
https://api.github.com/repos/pandas-dev/pandas/pulls/24599
2019-01-03T19:17:18Z
2019-01-03T22:04:56Z
2019-01-03T22:04:55Z
2019-01-03T22:04:58Z
DOC: Remove flake8 errors for basics.rst and contributing_docstring.rst
diff --git a/doc/source/contributing_docstring.rst b/doc/source/contributing_docstring.rst index 7c7847a47a1a2..f7e2b42a1ccbd 100644 --- a/doc/source/contributing_docstring.rst +++ b/doc/source/contributing_docstring.rst @@ -457,12 +457,14 @@ For example, with a single value: float Random number g...
xref: #24173
https://api.github.com/repos/pandas-dev/pandas/pulls/24598
2019-01-03T18:03:57Z
2019-01-04T12:22:10Z
2019-01-04T12:22:10Z
2019-08-26T14:12:16Z
REF: Simplify quantile, remove reduction from BlockManager
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index bd16495e472b1..384676ede15f2 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -42,6 +42,7 @@ from pandas.core.indexing import check_setitem_lengths from pandas.core.internals.arrays import extract...
BlockManager.reduction is only ever called for quantile. Might as well remove the layer of indirection so we can simplify reduction (now renamed quantile). Most of the simplification comes in Block.quantile, since we can avoid passing around things we don't need. Two nested functions currently defined inside Block...
https://api.github.com/repos/pandas-dev/pandas/pulls/24597
2019-01-03T18:03:27Z
2019-01-03T23:10:40Z
2019-01-03T23:10:40Z
2019-01-03T23:21:09Z
DEPR: __array__ for tz-aware Series/Index
diff --git a/doc/source/api/series.rst b/doc/source/api/series.rst index 7d5e6037b012a..8e4c378b9fefe 100644 --- a/doc/source/api/series.rst +++ b/doc/source/api/series.rst @@ -26,6 +26,7 @@ Attributes .. autosummary:: :toctree: generated/ + Series.array Series.values Series.dtype Series.ftype @@ -...
This deprecates the current behvior when converting tz-aware Series or Index to an ndarray. Previously, we converted to M8[ns], throwing away the timezone information. In the future, we will return an object-dtype array filled with Timestamps, each of which has the correct tz. ```python In [1]: import pandas as...
https://api.github.com/repos/pandas-dev/pandas/pulls/24596
2019-01-03T17:55:54Z
2019-01-05T14:51:12Z
2019-01-05T14:51:12Z
2019-12-30T20:16:47Z
DOC: fix to_numpy explanation for tz aware data
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 8dca000dfa969..73ae26150b946 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -99,27 +99,6 @@ are two possibly useful representations: Timezones may be preserved with ``dtype=object`` -.. ipython:: python - - ser = pd.Series(pd.dat...
Some clean-up now `to_numpy` preserves timezone and no longer converts to UTC datetime64 by default (after #24024), the example in timeseries.rst was failing due to that.
https://api.github.com/repos/pandas-dev/pandas/pulls/24595
2019-01-03T16:26:52Z
2019-01-03T21:08:46Z
2019-01-03T21:08:46Z
2019-01-03T22:49:17Z
Remove unhittable methods in internals
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index d12114bd951ba..3b2c13af785d4 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -26,7 +26,7 @@ is_re, is_re_compilable, is_sparse, is_timedelta64_dtype, pandas_dtype) import pandas.core.dtypes.c...
And one more 24024 in test cleanup
https://api.github.com/repos/pandas-dev/pandas/pulls/24594
2019-01-03T15:56:39Z
2019-01-03T17:21:20Z
2019-01-03T17:21:20Z
2019-01-03T18:26:47Z
DOC: hide warning from arrow about deprecated MultiIndex labels
diff --git a/doc/source/io.rst b/doc/source/io.rst index 967648f3a168a..2149ee7fb46d9 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4647,6 +4647,7 @@ Write to a feather file. Read from a feather file. .. ipython:: python + :okwarning: result = pd.read_feather('example.feather') result @@ -4...
This is fixed upstream in arrow (https://github.com/apache/arrow/pull/3120), but until a new release is there, avoiding the warning in our docs to have a cleaner doc build output.
https://api.github.com/repos/pandas-dev/pandas/pulls/24591
2019-01-03T13:24:08Z
2019-01-03T15:19:13Z
2019-01-03T15:19:13Z
2019-01-03T15:58:28Z
DOC: Bump fastparquet version
diff --git a/ci/deps/azure-macos-35.yaml b/ci/deps/azure-macos-35.yaml index b6dc2b3c27e8d..58abbabce3d86 100644 --- a/ci/deps/azure-macos-35.yaml +++ b/ci/deps/azure-macos-35.yaml @@ -14,7 +14,6 @@ dependencies: - numpy=1.12.0 - openpyxl=2.5.5 - pyarrow - - fastparquet - pytables - python=3.5* - pyt...
Should we just bump the min version to 0.2.1? It's quite new, but I think reading datetime data is somewhat common :) It'll save us bug reports.
https://api.github.com/repos/pandas-dev/pandas/pulls/24590
2019-01-03T13:17:47Z
2019-01-05T14:50:47Z
2019-01-05T14:50:47Z
2019-11-21T13:54:12Z
DOC: 32-bit warning
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 3a04789b609f8..f025478fbdc78 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -8,6 +8,9 @@ What's New in 0.24.0 (January XX, 2019) The 0.24.x series of releases will be the last to support Pytho...
xref #15889
https://api.github.com/repos/pandas-dev/pandas/pulls/24588
2019-01-03T12:12:07Z
2019-01-08T13:01:45Z
null
2019-01-08T13:01:45Z
TST/REF: Add more pytest idiom to tests/tslib
diff --git a/pandas/tests/tslibs/test_array_to_datetime.py b/pandas/tests/tslibs/test_array_to_datetime.py index ff8880257b225..f5b036dde2094 100644 --- a/pandas/tests/tslibs/test_array_to_datetime.py +++ b/pandas/tests/tslibs/test_array_to_datetime.py @@ -12,159 +12,145 @@ import pandas.util.testing as tm -class ...
I was planning to correct individual files, but then I began to realize that the fixes were involving more and more files (was shifting tests around) in the directory, to the point that I just modified them all. 🙂
https://api.github.com/repos/pandas-dev/pandas/pulls/24587
2019-01-03T08:47:13Z
2019-01-03T21:14:30Z
2019-01-03T21:14:30Z
2019-01-03T21:46:49Z
DOC: Correct description of day_opt in shift_month
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 11ce539d25767..0ca9410df89c0 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -847,11 +847,15 @@ def shift_month(stamp: datetime, months: int, ---------- stamp : datetime or Timestamp ...
Doc is updated per implementation at [268150f](https://github.com/pandas-dev/pandas/blob/268150f/pandas/_libs/tslibs/offsets.pyx#L837-L891).
https://api.github.com/repos/pandas-dev/pandas/pulls/24585
2019-01-03T07:33:59Z
2019-01-03T08:43:43Z
2019-01-03T08:43:43Z
2019-01-03T20:30:46Z
Fix docstring templates not being filled (#24535)
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index a7f2d4fad38de..c853a30c0de79 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1920,7 +1920,7 @@ def notna(self): Returns ------- - filled : %(klass)s + filled : Index """...
- [x] closes #24535 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixes the docstring template issue
https://api.github.com/repos/pandas-dev/pandas/pulls/24584
2019-01-03T07:28:22Z
2019-01-03T12:18:45Z
2019-01-03T12:18:45Z
2019-01-04T06:57:12Z
REF: put DatetimeBlock adjacent to DatetimeLikeBlockMixin
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 5ce5ae7186774..d12114bd951ba 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2206,48 +2206,71 @@ def asi8(self): return self.values.view('i8') -class TimeDeltaBlock(DatetimeLikeBlockM...
- [ ] 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/24582
2019-01-03T02:53:43Z
2019-01-03T03:45:14Z
2019-01-03T03:45:14Z
2019-01-03T03:46:39Z
Support hard-masked numpy arrays
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 7628c53cefa06..c9210a5597d48 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1537,6 +1537,7 @@ Missing - Bug in :func:`Series.hasnans` that could be incorrectly cached and return incorrect answer...
- [x] closes #24574 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry For the whatsnew entry, is this reasonable? ```rst - :func:`DataFrame` and :func:`Series` now properly handle numpy masked arrays with hardened masks. Previously, constructi...
https://api.github.com/repos/pandas-dev/pandas/pulls/24581
2019-01-03T02:42:49Z
2019-01-04T00:24:23Z
2019-01-04T00:24:22Z
2019-01-04T00:39:26Z
Fix import format at pandas/tests/io/plotting directory
diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index f41a3a10604af..4ca916a0aa4e4 100644 --- a/pandas/tests/plotting/common.py +++ b/pandas/tests/plotting/common.py @@ -1,25 +1,28 @@ #!/usr/bin/env python # coding: utf-8 -import pytest import os import warnings -from pandas impor...
- [x] partial #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Ran `isort --recursive pandas/tests/io/plotting` and then checked imports using `isort --recursive --check-only pandas/tests/io/plotting`
https://api.github.com/repos/pandas-dev/pandas/pulls/24580
2019-01-03T02:16:38Z
2019-01-04T12:13:13Z
2019-01-04T12:13:13Z
2019-01-04T12:13:13Z
Fix import format at pandas/tests/io/arithmetic directory
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index 44e6cc664de6d..671fe69750c57 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -1,16 +1,16 @@ # -*- coding: utf-8 -*- -import pytest - import numpy as np -import pandas as pd +impor...
- [x] partial #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Ran `isort --recursive pandas/tests/io/arithmetic` and then checked imports using `isort --recursive --check-only pandas/tests/io/arithmetic`
https://api.github.com/repos/pandas-dev/pandas/pulls/24579
2019-01-03T02:12:42Z
2019-01-04T00:39:37Z
2019-01-04T00:39:37Z
2019-01-04T00:39:40Z
Fix import format at pandas/tests/io/dtypes directory
diff --git a/pandas/tests/dtypes/test_cast.py b/pandas/tests/dtypes/test_cast.py index fcdcf96098f16..871e71ea2e4b0 100644 --- a/pandas/tests/dtypes/test_cast.py +++ b/pandas/tests/dtypes/test_cast.py @@ -5,30 +5,24 @@ """ -import pytest -from datetime import datetime, timedelta, date -import numpy as np +from dat...
- [x] partial #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Ran` isort --recursive pandas/tests/io/dtypes` and then checked imports using `isort --recursive --check-only pandas/tests/io/dtypes`
https://api.github.com/repos/pandas-dev/pandas/pulls/24578
2019-01-03T02:09:08Z
2019-01-03T02:57:21Z
2019-01-03T02:57:21Z
2019-01-03T02:57:23Z
DTA Followups - remove redundant methods
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 517c80619baea..3ca660b906f73 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -19,12 +19,11 @@ from pandas.util._validators import validate_fillna_kwargs from pandas.core.dtypes.comm...
Both arrays.datetimes and arrays.timedeltas have a `_to_m8` function. The timedeltas one is removed since it is unnecessary, the datetimes one is given a more accurate name `_to_M8` A couple of unused funcs from `tm` are removed. A test is parametrized.
https://api.github.com/repos/pandas-dev/pandas/pulls/24577
2019-01-03T01:23:36Z
2019-01-03T02:25:08Z
2019-01-03T02:25:07Z
2019-01-03T02:31:39Z
REF: split pd.util.testing
diff --git a/pandas/tests/indexing/multiindex/conftest.py b/pandas/tests/indexing/multiindex/conftest.py index 046fc19c0d9c8..f4cff9876d311 100644 --- a/pandas/tests/indexing/multiindex/conftest.py +++ b/pandas/tests/indexing/multiindex/conftest.py @@ -22,6 +22,7 @@ def multiindex_year_month_day_dataframe_random_data()...
In order to parametrize a bunch of tests that currently loop over e.g. `for obj in self.objs`, a bunch of `setup_class` stuff is going to have to go into `tm`. Instead of making that big file even bigger, this first splits it into three pieces.
https://api.github.com/repos/pandas-dev/pandas/pulls/24575
2019-01-03T00:17:02Z
2019-01-03T01:12:21Z
null
2019-09-17T18:57:49Z
CLN: Follow-ups to #24024
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 8d85b84ec7507..94d716a08d9dc 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -350,9 +350,6 @@ def unique(values): if is_extension_array_dtype(values): # Dispatch to extension dtype's unique. return ...
grepped for TODO in the affected files and took care of the easy ones. Addresses a flake8 complaint in MultiIndex (no idea why it is only showing up locally)
https://api.github.com/repos/pandas-dev/pandas/pulls/24573
2019-01-02T22:09:22Z
2019-01-03T00:12:44Z
2019-01-03T00:12:44Z
2019-01-03T00:14:40Z
BUG: TypeError with to_html(sparsify=False) and max_cols < len(columns)
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 7628c53cefa06..826c5a795f886 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1604,6 +1604,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :func:`to_...
- [x] closes #22887 - [x] closes #11060 - [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/24572
2019-01-02T21:25:03Z
2019-01-03T00:40:12Z
2019-01-03T00:40:12Z
2019-01-03T00:56:03Z
Added Datetime & Timedelta inference to array
diff --git a/pandas/core/arrays/array_.py b/pandas/core/arrays/array_.py index 173ed7d191ac9..4e84c62bce3d6 100644 --- a/pandas/core/arrays/array_.py +++ b/pandas/core/arrays/array_.py @@ -46,12 +46,14 @@ def array(data, # type: Sequence[object] Currently, pandas will infer an extension dtype for seq...
Closes https://github.com/pandas-dev/pandas/issues/24568
https://api.github.com/repos/pandas-dev/pandas/pulls/24571
2019-01-02T20:10:35Z
2019-01-03T00:41:37Z
2019-01-03T00:41:37Z
2019-01-03T00:41:41Z
TST: isort tests/sparse
diff --git a/pandas/tests/sparse/frame/conftest.py b/pandas/tests/sparse/frame/conftest.py index f36b4e643d10b..3423260c1720a 100644 --- a/pandas/tests/sparse/frame/conftest.py +++ b/pandas/tests/sparse/frame/conftest.py @@ -1,8 +1,7 @@ -import pytest - import numpy as np +import pytest -from pandas import SparseDat...
xref #23334
https://api.github.com/repos/pandas-dev/pandas/pulls/24563
2019-01-02T18:10:49Z
2019-01-03T00:45:43Z
2019-01-03T00:45:43Z
2019-01-03T00:54:58Z
See also description formatting
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 3a522baaa92af..3147f36dcc835 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -389,8 +389,8 @@ cdef class Interval(IntervalMixin): See Also -------- - IntervalArray.overlaps : The corresponding m...
- [x] xref #23630 DOC: Fix format of the See Also descriptions - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24561
2019-01-02T17:47:18Z
2019-01-04T01:10:15Z
2019-01-04T01:10:15Z
2019-01-04T01:20:17Z
REF: shift ravel in infer_dtype
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index d6e2b9a5288f5..1124000c97875 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -623,7 +623,7 @@ def clean_index_list(obj: list): return obj, all_arrays # don't force numpy coerce with nan's - inferred = infer_dtype(obj) + ...
Precursor to #24050 as requested from @jreback in review: https://github.com/pandas-dev/pandas/pull/24050/files#r243769223 / https://github.com/pandas-dev/pandas/pull/24050/files#r243769260
https://api.github.com/repos/pandas-dev/pandas/pulls/24560
2019-01-02T17:39:18Z
2019-01-03T01:46:55Z
2019-01-03T01:46:55Z
2019-01-03T09:56:46Z
REF/TST: mixed use of mock/monkeypatch
diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py index 15f366e5e2e9e..d3569af8d7786 100644 --- a/pandas/tests/io/test_gbq.py +++ b/pandas/tests/io/test_gbq.py @@ -12,12 +12,6 @@ from pandas import DataFrame, compat import pandas.util.testing as tm -try: - from unittest import mock -except I...
doubt if this will work as don't have gbq configured locally. will need to check output of CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/24557
2019-01-02T16:52:47Z
2019-01-05T14:50:26Z
2019-01-05T14:50:26Z
2019-01-05T21:03:12Z
POC: complete composition switchover
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ab5621d857e89..303d3016c8ac2 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -414,6 +414,10 @@ def _formatter(self, boxed=False): # ------------------------------------------------...
NOT FOR MERGING. per @TomAugspurger 's request, we're done splitting off parts of #24024. So this is just a proof of concept to get a handle on what parts that are left in 24024 are required for which goals. This makes DTI._data a DTA and TDI._data a TDA, then goes through and changes stuff until the tests pass lo...
https://api.github.com/repos/pandas-dev/pandas/pulls/24556
2019-01-02T16:26:33Z
2019-01-02T19:24:25Z
null
2019-01-02T19:33:10Z
read_sas catches own error #24548
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 826c5a795f886..3566d58f5c641 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1599,6 +1599,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`read_sas()...
- [ ] closes #24548 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24554
2019-01-02T15:47:13Z
2019-01-03T00:44:21Z
2019-01-03T00:44:21Z
2019-01-03T00:44:24Z
TST: isort tests/groupby
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index 52bfee66f94f8..62ec0555f9033 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -4,15 +4,15 @@ test .agg behavior / note that .appl...
xref #23334
https://api.github.com/repos/pandas-dev/pandas/pulls/24553
2019-01-02T14:30:03Z
2019-01-02T17:56:21Z
2019-01-02T17:56:21Z
2019-01-02T17:57:49Z
DOC: fix some doc build warnings/errors
diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index 0c192a0aab24a..0f9726dc94816 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -1236,7 +1236,7 @@ the following Python code will read the binary file ``'binary.dat'`` into a pandas ``DataFrame``, where each element of the struct c...
Some follow-ups on recent doc PRs
https://api.github.com/repos/pandas-dev/pandas/pulls/24552
2019-01-02T14:29:31Z
2019-01-02T17:03:17Z
2019-01-02T17:03:17Z
2019-01-02T17:07:46Z
TST: isort tests/test_*
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 8d7fd6449b354..294eae9d45bee 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -1,28 +1,30 @@ # -*- coding: utf-8 -*- -import numpy as np -import pytest - -from numpy.random import RandomState -from numpy import nan ...
xref #23334
https://api.github.com/repos/pandas-dev/pandas/pulls/24551
2019-01-02T14:24:47Z
2019-01-02T16:39:12Z
2019-01-02T16:39:12Z
2019-01-02T17:04:31Z
TST: isort tests/reshape
diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py index 083ce16ef9296..8ee1e49f01ac1 100644 --- a/pandas/tests/reshape/merge/test_join.py +++ b/pandas/tests/reshape/merge/test_join.py @@ -1,20 +1,20 @@ # pylint: disable=E1103 from warnings import catch_warnings -from num...
xref #23334
https://api.github.com/repos/pandas-dev/pandas/pulls/24550
2019-01-02T14:18:57Z
2019-01-02T15:16:33Z
2019-01-02T15:16:33Z
2019-01-02T15:20:52Z
DOC: exclude autogenerated c/cpp/html files from 'trailing whitespace' checks
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d16249724127f..87a1c8ae33489 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,7 +93,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then # this particular codebase (e.g. src/headers, src/klib, src/msgpack). However, # we can lint all heade...
- [x] closes #24526 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24549
2019-01-02T13:39:49Z
2019-02-08T02:51:21Z
2019-02-08T02:51:21Z
2019-02-08T15:00:36Z
BUG: (row) Index Name with to_html(header=False) is not displayed
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 302f2bd05ee5c..43229f3f674d0 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1600,6 +1600,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :func:`to_...
- [x] closes #23788 - [x] xref #24546 - [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/24547
2019-01-02T11:58:05Z
2019-01-02T14:18:30Z
2019-01-02T14:18:30Z
2019-01-02T14:45:22Z
TST: move test_non_reducing_slice_on_multiindex
diff --git a/pandas/tests/indexing/multiindex/test_slice.py b/pandas/tests/indexing/multiindex/test_slice.py index 596fe5d564a40..fcecb2b454eb6 100644 --- a/pandas/tests/indexing/multiindex/test_slice.py +++ b/pandas/tests/indexing/multiindex/test_slice.py @@ -7,6 +7,7 @@ import pandas as pd from pandas import Data...
Follow-up to #19881
https://api.github.com/repos/pandas-dev/pandas/pulls/24545
2019-01-02T09:23:52Z
2019-01-02T12:21:10Z
2019-01-02T12:21:10Z
2019-01-02T13:48:12Z
MAINT: Remove empty Python file
diff --git a/pandas/tests/io/parser/common.py b/pandas/tests/io/parser/common.py deleted file mode 100644 index e69de29bb2d1d..0000000000000
Follow-up to #23255.
https://api.github.com/repos/pandas-dev/pandas/pulls/24544
2019-01-02T05:47:10Z
2019-01-02T06:25:35Z
2019-01-02T06:25:35Z
2019-01-02T06:27:17Z
diff reduction for 24024
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 3f32b7b7dcea9..8b0565a36648f 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -19,7 +19,7 @@ is_extension_type, is_float_dtype, is_int64_dtype, is_object_dtype, is_period_dtype, is_string_...
docstrings, comments, edits that are correct both before and after #24024 the only substantive change is adding a test specifically for constructing a DatetimeArray from a PandasArray.
https://api.github.com/repos/pandas-dev/pandas/pulls/24543
2019-01-02T04:15:19Z
2019-01-02T14:16:52Z
2019-01-02T14:16:52Z
2019-01-02T14:44:30Z
CLN: use idiomatic pandas_dtypes in pandas/dtypes/common.py
diff --git a/asv_bench/benchmarks/dtypes.py b/asv_bench/benchmarks/dtypes.py new file mode 100644 index 0000000000000..e59154cd99965 --- /dev/null +++ b/asv_bench/benchmarks/dtypes.py @@ -0,0 +1,39 @@ +from pandas.api.types import pandas_dtype + +import numpy as np +from .pandas_vb_common import ( + numeric_dtypes, ...
closes #24593 Some benchmarks of ``pandas_dtype`` construction from a dtype object & strings, only thing slightly suprising is ``Period[D]`` ``` [ 87.50%] ··· ============================================ ============= dtype -------...
https://api.github.com/repos/pandas-dev/pandas/pulls/24541
2019-01-02T01:02:23Z
2019-01-04T13:55:44Z
2019-01-04T13:55:44Z
2019-01-04T13:55:44Z
WIP: make _holder changeover
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 9662c59dddf4c..d0caeb3333548 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -228,6 +228,11 @@ static PyObject *get_values(PyObject *obj) { PRINTMARK();...
cc @jreback @TomAugspurger changes _holder from DTI/TDI to DTA/TDA, pretty much all the diff from blocks.internals and core.dtypes Not yet green locally, but I'm presenting this as a viable alternative to the all-at-once still in #24024
https://api.github.com/repos/pandas-dev/pandas/pulls/24540
2019-01-01T23:21:06Z
2019-01-02T21:23:00Z
null
2019-01-04T16:02:24Z
Cython language level 3
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 71e25c3955a6d..c1fc0062dff09 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -57,10 +57,10 @@ cdef inline float64_t median_linear(float64_t* a, int n) nogil: n -= na_count if n % 2: - result = kth_small...
- [X] closes #23927
https://api.github.com/repos/pandas-dev/pandas/pulls/24538
2019-01-01T20:25:59Z
2019-03-19T23:48:32Z
2019-03-19T23:48:32Z
2020-01-16T00:34:36Z
implement fillna from 24024, with fixes and tests
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 98a1f1b925447..ab5621d857e89 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -16,6 +16,7 @@ from pandas.errors import ( AbstractMethodError, NullFrequencyError, PerformanceWarning...
cc @jreback @TomAugspurger couple of issues with `fillna` needed sorting out - The DTA version was operating in-place (fixed+tested) - The TDA version would raise because it wasn't supported in core.missing (fixed+tested) - The DTA[tz] version would incorrectly re-localize using the existing constructors, i.e....
https://api.github.com/repos/pandas-dev/pandas/pulls/24536
2019-01-01T19:36:10Z
2019-01-01T22:52:51Z
2019-01-01T22:52:51Z
2019-01-01T23:14:41Z
Make DTI[tz]._values and Series[tz]._values return DTA
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index a90cfa4e4c906..0501889d743d4 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -426,8 +426,7 @@ def _concat_datetime(to_concat, axis=0, typs=None): if any(typ.startswith('datetime') for typ in typs): ...
broken off of #24024, cc @jreback @TomAugspurger I think the edits in core.dtypes.concat are unrelated, but they are correct regardless and easy to trim a few more lines off the diff. The edit in tests.indexing.test_coercion was needed during troubleshooting, decided to keep it.
https://api.github.com/repos/pandas-dev/pandas/pulls/24534
2019-01-01T18:25:09Z
2019-01-01T20:07:38Z
2019-01-01T20:07:38Z
2019-01-01T21:35:03Z
CLN: Refactor some sorting code in Index set operations
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 07aec6a0d833f..1380c5caed1c9 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2302,27 +2302,15 @@ def union(self, other): allow_fill=False) result = _co...
- [ ] Related to #24521 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This is a pre-cursor to #24521 and cleans up some of the sorting code in set operations on ``Index``.
https://api.github.com/repos/pandas-dev/pandas/pulls/24533
2019-01-01T18:20:57Z
2019-01-01T20:07:23Z
2019-01-01T20:07:23Z
2019-01-01T20:07:26Z
Run isort at pandas/tests/io
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index e83220a476f9b..598453eb92d25 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -2,7 +2,8 @@ Module for applying conditional formatting to DataFrames and Series. """ -from collections import MutableMapping, defaultdic...
- [ ] xref #23334 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/24532
2019-01-01T18:11:22Z
2019-01-02T02:54:07Z
2019-01-02T02:54:07Z
2019-01-02T20:25:41Z