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
ASV: add tests for indexing engines and Uint64Engine
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 8290731fd7eea..49d6311a7bb66 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -2,8 +2,9 @@ import numpy as np import pandas.util.testing as tm -from pandas import (Series, DataFrame, Panel, ...
This is an offspring from #21699 to do the the ASV tests in a contained PR. For reference the output from running ``asv run -b indexing_engines`` is: ``` · Creating environments · Discovering benchmarks ·· Uninstalling from conda-py3.6-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-pytest-scipy-sqlalchemy-x...
https://api.github.com/repos/pandas-dev/pandas/pulls/23090
2018-10-11T12:34:13Z
2018-10-18T16:12:19Z
2018-10-18T16:12:19Z
2018-10-18T17:46:22Z
Fix ASV imports
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index e83efdd0fa2a0..8290731fd7eea 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -2,10 +2,9 @@ import numpy as np import pandas.util.testing as tm -from pandas import (Series, DataFrame, MultiI...
#22947 broke the ASV - second time in a few days that linting the benchmarks has broken something (see #22978 / #22886) @datapythonista, could you please require that PRs try ``` cd asv_bench asv dev ``` to see if *collection* of benchmark works? This takes about 30 seconds and then the asv run can be aborted w...
https://api.github.com/repos/pandas-dev/pandas/pulls/23085
2018-10-11T05:41:24Z
2018-10-11T06:19:36Z
2018-10-11T06:19:36Z
2018-12-03T06:47:42Z
PERF: Override PeriodIndex.unique
diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py index c34f9a737473e..29b8c7efda40c 100644 --- a/asv_bench/benchmarks/period.py +++ b/asv_bench/benchmarks/period.py @@ -119,3 +119,6 @@ def time_align(self): def time_intersection(self): self.index[:750].intersection(self.index...
In trying to simplify the mess that is the PeriodIndex constructors, I found that PeriodIndex.unique is doing an unfortunate conversion to object-dtype. This PR avoids that and gets a nice speedup. ``` In [2]: pi = pd.period_range('1000Q1', periods=10000, freq='Q') In [3]: %timeit pi.unique() The slowest run t...
https://api.github.com/repos/pandas-dev/pandas/pulls/23083
2018-10-11T02:15:12Z
2018-10-11T11:42:37Z
2018-10-11T11:42:37Z
2018-10-11T15:32:04Z
Support ExtensionArray in hash_pandas_object
diff --git a/doc/source/api.rst b/doc/source/api.rst index ffa240febf731..f57531fffaaaa 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -245,6 +245,15 @@ Top-level evaluation eval +Hashing +~~~~~~~ + +.. autosummary:: + :toctree: generated/ + + util.hash_array + util.hash_pandas_object + Test...
Closes #23066
https://api.github.com/repos/pandas-dev/pandas/pulls/23082
2018-10-11T02:03:43Z
2018-10-11T11:41:57Z
2018-10-11T11:41:57Z
2018-10-11T11:42:05Z
STY: avoid backslash
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index a6f586c7f2638..d4e3def84664b 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -60,8 +60,8 @@ def np_array_datetime64_compat(arr, *args, **kwargs): if not _np_version_under1p11: # is_...
Related: #11954. This gets most of the non-`textwrap.dedent` cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/23073
2018-10-10T14:19:39Z
2018-10-12T13:12:16Z
2018-10-12T13:12:16Z
2018-10-12T15:44:17Z
Fixing memory leaks in read_csv
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index bb02bbb36424a..b9abf9293079f 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1382,6 +1382,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :func:`Dat...
This PR fixes a memory leak in parsers.pyx detected by valgrind, and also adds some further cleanup that should avoid memory leaks on exceptions, closes #21353 - Moved the allocation of na_hashset further down, closer to where it is used. Otherwise it will not be freed if `continue` is executed, - Delete `na_has...
https://api.github.com/repos/pandas-dev/pandas/pulls/23072
2018-10-10T08:33:17Z
2018-11-19T12:09:41Z
2018-11-19T12:09:40Z
2020-07-23T13:45:25Z
Corrected 'columns' argument of 'to_csv' method
diff --git a/doc/source/io.rst b/doc/source/io.rst index 039cba2993381..56da4dbea8706 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -1603,7 +1603,7 @@ function takes a number of arguments. Only the first is required. * ``sep`` : Field delimiter for the output file (default ",") * ``na_rep``: A string repr...
Compared the 'to_csv' method described in https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html with the same method described in https://pandas.pydata.org/pandas-docs/stable/io.html#writing-to-csv-format and noticed difference between the two in the 'columns' and 'cols' argument. - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/23068
2018-10-10T02:46:23Z
2018-10-10T16:46:32Z
2018-10-10T16:46:32Z
2018-10-10T16:46:44Z
Add allow_sets-kwarg to is_list_like
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 16f0b9ee99909..d786711ffa6ea 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -198,6 +198,8 @@ Other Enhancements - :meth:`round`, :meth:`ceil`, and meth:`floor` for :class:`DatetimeIndex` and :cla...
- [x] closes ~~#23009~~ #23061 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is an attempt responding to https://github.com/pandas-dev/pandas/pull/22486#issuecomment-428159769: > @h-vetinari why don't you try (separate PR) excluding set...
https://api.github.com/repos/pandas-dev/pandas/pulls/23065
2018-10-09T21:37:23Z
2018-10-18T15:53:33Z
2018-10-18T15:53:33Z
2018-10-22T14:16:59Z
DEPS: drop numpy < 1.12
diff --git a/ci/azure-macos-35.yaml b/ci/azure-macos-35.yaml index a36f748ded812..6ccdc79d11b27 100644 --- a/ci/azure-macos-35.yaml +++ b/ci/azure-macos-35.yaml @@ -8,10 +8,10 @@ dependencies: - html5lib - jinja2 - lxml - - matplotlib + - matplotlib=2.2.0 - nomkl - numexpr - - numpy=1.10.4 + - numpy=...
- [x] closes #21242 - [x] tests modified / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Spurred on also partly by compat failure of #22725. ;-)
https://api.github.com/repos/pandas-dev/pandas/pulls/23062
2018-10-09T18:25:59Z
2018-10-15T17:07:34Z
2018-10-15T17:07:33Z
2018-10-15T18:28:01Z
REF: collect ops dispatch functions in one place, try to de-duplicate SparseDataFrame methods
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index f29b4410fbf54..2335b26c576eb 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -943,6 +943,134 @@ def should_series_dispatch(left, right, op): return False +def dispatch_to_series(left, right, func, str_rep=None, axis=None): + """ + Eva...
https://api.github.com/repos/pandas-dev/pandas/pulls/23060
2018-10-09T15:27:43Z
2018-10-28T13:48:54Z
2018-10-28T13:48:54Z
2018-10-28T16:17:52Z
Update api.rst
diff --git a/doc/source/api.rst b/doc/source/api.rst index 073ed8a082a11..ffa240febf731 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -906,7 +906,6 @@ Indexing, iteration DataFrame.loc DataFrame.iloc DataFrame.insert - DataFrame.insert DataFrame.__iter__ DataFrame.items DataFrame...
remove duplicate line for DataFrame.insert(...) - [ ] 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/23052
2018-10-09T01:34:40Z
2018-10-09T02:14:33Z
2018-10-09T02:14:33Z
2018-10-09T05:59:05Z
DOC: update the pandas.DateTimeArrayMixin.is_month_start docstring
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 0f07a9cf3c0e0..b16a399c0bbb1 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -998,48 +998,60 @@ def date(self): 'dim', "The number of days in the month") daysinmonth = days_i...
- [x] closes #20146 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry should close PR #20146
https://api.github.com/repos/pandas-dev/pandas/pulls/23051
2018-10-09T01:05:35Z
2018-10-26T09:15:50Z
2018-10-26T09:15:50Z
2018-10-26T10:11:36Z
CLN GH22985 Fixed interpolation with object error message
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8de52fbfa79f0..ce70e3ce56c08 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6387,7 +6387,9 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False, if _maybe_transposed_self._data.get_dtype_counts().g...
- [x] closes #22985 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry It looks like the problem with #22985 is mostly the mismatch between the input trigger and the error message, so this is just a tiny hotfix.
https://api.github.com/repos/pandas-dev/pandas/pulls/23044
2018-10-08T14:17:39Z
2018-10-10T12:04:57Z
2018-10-10T12:04:56Z
2018-10-10T12:05:01Z
DOC: Add Comparison with Excel documentation
diff --git a/doc/source/comparison_with_excel.rst b/doc/source/comparison_with_excel.rst new file mode 100644 index 0000000000000..c3f9ed2997be9 --- /dev/null +++ b/doc/source/comparison_with_excel.rst @@ -0,0 +1,121 @@ +.. currentmodule:: pandas +.. _compare_with_excel: + +.. ipython:: python + :suppress: + + i...
closes #22993 Could someone give me more suggestions of Excel functions that are used often?
https://api.github.com/repos/pandas-dev/pandas/pulls/23042
2018-10-08T11:33:42Z
2018-11-23T03:36:32Z
null
2018-11-23T03:36:44Z
Doc: Adds example of exploding lists into columns instead of storing in dataframe cells
diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst index 79e312ca12833..1da7e38c7bab7 100644 --- a/doc/source/gotchas.rst +++ b/doc/source/gotchas.rst @@ -336,3 +336,94 @@ constructors using something similar to the following: See `the NumPy documentation on byte order <https://docs.scipy.org/doc/numpy/user...
- [x] closes #17027 This is the continuation of PR #19215
https://api.github.com/repos/pandas-dev/pandas/pulls/23041
2018-10-08T10:30:54Z
2018-11-04T09:52:50Z
null
2018-11-04T09:52:50Z
DOC:Updated as suggested in the comments of PR#20211
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 51c84d6e28cb4..61f3325e3dceb 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2005,15 +2005,29 @@ def __contains__(self, key): return False _index_shared_docs['contains'] = """ - return ...
- [x] PR title is "DOC: update the docstring" - [x] closes #20211 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The following is added for the doc string : """ Return a boolean if this key is in the index. Parameters ---------- key : object ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23039
2018-10-08T07:56:00Z
2018-10-08T14:37:31Z
null
2018-10-10T12:07:08Z
DOC: Added 'Modules Privacy Has Changed' section to overview.rst
diff --git a/doc/source/overview.rst b/doc/source/overview.rst index 6ba9501ba0b5e..d2c5e8f2372ae 100644 --- a/doc/source/overview.rst +++ b/doc/source/overview.rst @@ -117,6 +117,23 @@ Institutional Partners The information about current institutional partners can be found on `pandas website page <https://pandas.py...
- [x] closes #22942 - [x] tests passed
https://api.github.com/repos/pandas-dev/pandas/pulls/23038
2018-10-08T07:49:26Z
2018-11-20T15:06:25Z
null
2018-11-20T15:09:01Z
BUG-22796 Concat multicolumn tz-aware DataFrame
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index ca4ea8e366754..a4209ba90aaee 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -892,6 +892,7 @@ Reshaping - Bug in :func:`pandas.wide_to_long` when a string is passed to the stubnames argument and a...
- [X] closes #22796 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Numpy arrays don't have the datetimetz dtype, so I just passed through the DatetimeIndex directly. Side note: There's another small bug (I think) where np.nan or pd.NaT take...
https://api.github.com/repos/pandas-dev/pandas/pulls/23036
2018-10-08T01:48:14Z
2018-10-09T18:41:43Z
2018-10-09T18:41:43Z
2018-10-09T18:42:09Z
BUG: Fixed nlargest/smallest functionality for dataframes with MultiIndex columns
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index a41b0c9521f99..a547edec2f3ce 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1194,6 +1194,7 @@ Reshaping - Bug in :func:`merge_asof` when merging on float values within defined tolerance (:issue:...
This change fixes nlargest/smallest functionality for dataframes with MultiIndex columns. - [x] closes #23033 - [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/23034
2018-10-08T00:45:00Z
2018-10-24T12:33:14Z
2018-10-24T12:33:13Z
2018-10-24T22:09:00Z
Add cookbook entry for triangular correlation matrix (closes #22840)
diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index be8457fc14a4f..21d1f11ba49ba 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -1226,6 +1226,17 @@ Computation Correlation *********** +Often it's useful to obtain the lower (or upper) triangular form of a correlation matrix ca...
- [ x ] closes #22840 - [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23032
2018-10-08T00:38:08Z
2018-11-03T14:36:24Z
2018-11-03T14:36:24Z
2018-11-03T14:40:37Z
BUG: Fix PeriodIndex +/- TimedeltaIndex
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index a4209ba90aaee..0eeaff2fe62a1 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -729,6 +729,7 @@ Datetimelike - Bug in :class:`DatetimeIndex` where frequency was being set if original frequency was `...
- [x] closes #22998 - [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/23031
2018-10-07T22:28:11Z
2018-10-15T00:49:09Z
2018-10-15T00:49:09Z
2018-10-15T00:49:23Z
TST: collect logical ops tests, use fixtures
diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py index a09efe6d4761c..a8e61b3fd9d3a 100644 --- a/pandas/tests/arithmetic/test_timedelta64.py +++ b/pandas/tests/arithmetic/test_timedelta64.py @@ -388,19 +388,11 @@ def test_td64arr_sub_period(self, box, freq): ...
Collect tests for logical ops |, &, ^. Use fixtures in a couple of places in tests/arithmetic Rename a couple of poorly named tests No logic is changed, nothing is moved cross-module.
https://api.github.com/repos/pandas-dev/pandas/pulls/23029
2018-10-07T18:46:13Z
2018-10-07T21:41:20Z
2018-10-07T21:41:20Z
2018-10-07T22:26:33Z
Accepts integer/float string with units and raises when unit is ambiguous (2)
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 4bc50695e1ecd..0c74551e9d2c1 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1303,6 +1303,7 @@ Deprecations - :func:`pandas.api.types.is_period` is deprecated in favor of `pandas.api.types.is_per...
Supersedes #21384. - [x] closes #12136 - [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/23025
2018-10-07T16:26:53Z
2019-05-03T05:38:27Z
null
2019-05-03T05:38:28Z
DOC: Upgraded Docstring pandas.DataFrame.dot
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f7f1855a4fabc..46651ee83d6f2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -931,16 +931,70 @@ def __len__(self): def dot(self, other): """ - Matrix multiplication with DataFrame or Series objects. Can also be - ...
- [ ] closes #xxxx - [ ] tests added / passed - [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23024
2018-10-07T11:08:44Z
2018-12-19T12:31:20Z
2018-12-19T12:31:20Z
2018-12-19T12:31:24Z
REF: Fuse all the types
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index 6bcc735656c6b..b39b5eaced8fd 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -16,33 +16,30 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from .pxi.in...
Everything is passing locally, just want to run this through the CI for good measure before continuing down this path.
https://api.github.com/repos/pandas-dev/pandas/pulls/23022
2018-10-06T23:52:18Z
2018-10-17T12:36:19Z
2018-10-17T12:36:19Z
2018-10-17T16:00:00Z
DOC: Clarify rolling min_periods default value GH21489
diff --git a/pandas/core/window.py b/pandas/core/window.py index 4281d66a640e3..ea0ec79d655fb 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -462,7 +462,8 @@ class Window(_Window): min_periods : int, default None Minimum number of observations in window required to have a value ...
- [ ] closes #21489 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew Clarifies the documentation of the default value for the min_periods argument of the rolling function.
https://api.github.com/repos/pandas-dev/pandas/pulls/23021
2018-10-06T21:50:54Z
2018-10-07T21:46:08Z
2018-10-07T21:46:08Z
2018-10-07T21:46:13Z
PERF: only output an html id if a style is applied
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index ad6ad5bcaf309..3b3238586b310 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -64,6 +64,11 @@ class Styler(object): a unique identifier to avoid CSS collisions; generated automatically caption: str, defau...
- [x] closes #20695 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Greatly reduces the amount of `id` tag in the cells by only assigning one when a style is applied to that cell. If that is the not correct approach for solving #20695, I am open to suggestions. Al...
https://api.github.com/repos/pandas-dev/pandas/pulls/23019
2018-10-06T18:44:09Z
2018-10-14T16:10:09Z
2018-10-14T16:10:09Z
2018-10-14T20:52:51Z
TST: further clean up of frame/test_analytics
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index b0b9f2815cbb9..5327e3fcbea76 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -25,22 +25,44 @@ import pandas.util._test_decorators as td -def _check_stat_op(name, alternativ...
Follow-up to #22733, where some things were left undone to ease reviewing. Mainly: * cleaning up the jumble of `_check_stat_op`, splitting it into two functions with separate purposes * this removes redundant calls to the API-portion of the function in tests like `test_max` etc. * renaming according to review in ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23016
2018-10-06T16:18:40Z
2018-10-07T21:47:57Z
2018-10-07T21:47:57Z
2018-10-08T17:08:54Z
DOC: improve documentation of DateOffset (closes #22929)
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 85b0abe421eb2..575d00cfcbc61 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -157,7 +157,7 @@ For example: pd.Period('2012-05', freq='D') -:class:`Timestamp` and :class:`Period` can serve as an index. Lists of +:...
- [x] closes #22929 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23014
2018-10-06T13:22:04Z
2018-12-09T20:13:33Z
null
2018-12-09T20:13:33Z
BUG: millis res on parsed DatetimeIndex slice
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index a6cdaa0c2163a..3a6b7b84fa753 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1079,6 +1079,13 @@ def _parsed_string_to_bounds(self, reso, parsed): return (Timestamp(st, tz=self.tz)...
Added support for millis resolution on a parsed DatetimeIndex slice. There was no elif statement for when _parsed_string_to_bounds(self, reso, parsed) was given reso == 'millisecond' - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23010
2018-10-05T21:11:16Z
2018-11-23T03:32:22Z
null
2018-11-23T03:32:22Z
fixes the issue #22953
diff --git a/pandas/core/series.py b/pandas/core/series.py index a613b22ea9046..16a49ec970e80 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2310,7 +2310,10 @@ def combine(self, other, func, fill_value=None): lv = self.get(idx, fill_value) rv = other.get(idx, fill_v...
- [x] closes #22953 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23005
2018-10-05T07:03:12Z
2018-10-05T15:23:48Z
null
2018-10-05T18:46:44Z
CLN GH22875 Replace bare excepts by explicit excepts in pandas/io/
diff --git a/pandas/io/clipboards.py b/pandas/io/clipboards.py index 0d564069c681f..70c978a3b62ed 100644 --- a/pandas/io/clipboards.py +++ b/pandas/io/clipboards.py @@ -42,7 +42,7 @@ def read_clipboard(sep=r'\s+', **kwargs): # pragma: no cover text, encoding=(kwargs.get('encoding') or ...
- [X] closes #22875 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is a resubmit of a previous PR I submitted that was approved (#22916). I tried to close and reopen to get a rebuild on travis but I couldn't reopen it because I had deleted...
https://api.github.com/repos/pandas-dev/pandas/pulls/23004
2018-10-05T04:49:25Z
2018-10-10T07:33:29Z
2018-10-10T07:33:29Z
2018-10-10T07:33:53Z
fix typos
diff --git a/README.md b/README.md index f26b9598bb5d3..b4dedecb4c697 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ easy and intuitive. It aims to be the fundamental high-level building block for doing practical, **real world** data analysis in Python. Additionally, it has the broader goal of becoming **th...
- [ ] 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/23003
2018-10-05T04:28:02Z
2018-10-05T11:58:41Z
2018-10-05T11:58:41Z
2018-10-05T14:28:10Z
CI: Fix yaml/yml inconsistency
diff --git a/ci/azure-macos-35.yml b/ci/azure-macos-35.yaml similarity index 100% rename from ci/azure-macos-35.yml rename to ci/azure-macos-35.yaml diff --git a/ci/azure/macos.yml b/ci/azure/macos.yml index 5bf8d18d6cbb9..9bfaef04ea2fa 100644 --- a/ci/azure/macos.yml +++ b/ci/azure/macos.yml @@ -10,7 +10,7 @@ jobs: ...
The ci/windows.yml and ci/windows-py27.yml files reference the environment files with ".yml". This PR moves the ".yaml" files to the indicated location. CI config is hard.
https://api.github.com/repos/pandas-dev/pandas/pulls/23001
2018-10-05T00:44:14Z
2018-10-08T20:09:22Z
2018-10-08T20:09:22Z
2018-10-09T00:53:16Z
Make DataFrame arithmetic ops with 2D arrays behave like numpy analogues
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 91575c311b409..66f3d4bd1c4f3 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -488,6 +488,39 @@ Previous Behavior: 0 NaT +.. _whatsnew_0240.api.dataframe_arithmetic_broadcasting: + +DataFra...
- [x] closes #22686 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Change DataFrame arithmetic behavior when operating against 2D-ndarray such that `op(df, arr)` broadcasts like `op(df.values, arr)`. Related: #22880. Note this does NOT cha...
https://api.github.com/repos/pandas-dev/pandas/pulls/23000
2018-10-04T22:25:17Z
2018-10-07T22:38:27Z
2018-10-07T22:38:27Z
2018-10-08T00:13:33Z
BUG: Concat multiple different ExtensionArray types
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index dde098be2e5ae..3d7e7686b2db6 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -602,6 +602,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your - :meth:`Series.astype` a...
xref https://github.com/pandas-dev/pandas/issues/22994 This builds on https://github.com/pandas-dev/pandas/pull/22996, since we need hashing. 2a1660c77e8ad0c28485c6d81227ac9d6b6de4f2 is the relevant commit. Sparse tests will fail for now. I'll revisit once SparseArray is in.
https://api.github.com/repos/pandas-dev/pandas/pulls/22997
2018-10-04T21:16:21Z
2018-10-18T12:01:21Z
2018-10-18T12:01:21Z
2018-10-18T12:01:25Z
API: ExtensionDtype Equality and Hashability
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index c9874b4dd03d6..a1467cbca963a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -492,6 +492,15 @@ Previous Behavior: ExtensionType Changes ^^^^^^^^^^^^^^^^^^^^^ +**:class:`pandas.api.extensions.Ex...
Implements a default `__eq__` and `__hash__` for ExtensionDtype. Adds a test ensure that they're defined. Do people have thoughts on `_metadata`? I've tried to document everywhere the importance of it for parametrized extension dtypes. If you fail to set it correctly and use the default `__eq__` and `__hash__`, you'...
https://api.github.com/repos/pandas-dev/pandas/pulls/22996
2018-10-04T20:15:26Z
2018-10-08T21:21:08Z
2018-10-08T21:21:08Z
2018-10-08T21:21:12Z
use tm.assert_equal instead of parametrizing assert funcs
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 65e151feeba67..445f9a7e5e980 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -880,7 +880,7 @@ If your change involves checking that a warning is actually emitted, use .. code-block:: python - with tm.assert...
https://api.github.com/repos/pandas-dev/pandas/pulls/22995
2018-10-04T19:03:07Z
2018-10-04T21:53:44Z
2018-10-04T21:53:44Z
2020-04-05T17:38:52Z
CircleCI -> Azure
diff --git a/.circleci/config.yml b/.circleci/config.yml index e947f30d285cd..5b10036818901 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,39 +1,6 @@ version: 2 jobs: - # -------------------------------------------------------------------------- - # 0. py27_compat - # ------------------------...
Closes #22396 closes #22763 cc @jreback @h-vetinari @jorisvandenbossche @WillAyd The main thing we lose is redundancy on the sql tests. Those are down to just travis.
https://api.github.com/repos/pandas-dev/pandas/pulls/22992
2018-10-04T14:50:58Z
2018-10-26T12:07:44Z
2018-10-26T12:07:43Z
2018-10-26T12:08:08Z
CI: Pin IPython for doc build
diff --git a/ci/travis-36-doc.yaml b/ci/travis-36-doc.yaml index 50626088d5bc4..8353659e7b9a9 100644 --- a/ci/travis-36-doc.yaml +++ b/ci/travis-36-doc.yaml @@ -12,7 +12,7 @@ dependencies: - html5lib - hypothesis>=3.58.0 - ipykernel - - ipython + - ipython==6.5.0 - ipywidgets - lxml - matplotlib
xref #22990 https://github.com/ipython/ipython/issues/11362
https://api.github.com/repos/pandas-dev/pandas/pulls/22991
2018-10-04T14:21:26Z
2018-10-04T15:15:58Z
2018-10-04T15:15:58Z
2018-10-05T04:21:17Z
BUG: Perform i8 conversion for datetimelike IntervalTree queries
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index f246ebad3aa2c..42c4134437ff6 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -755,7 +755,7 @@ Interval - Bug in the :class:`IntervalIndex` constructor where the ``closed`` parameter did not always...
- [X] closes #20636 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry I've seen a few complaints about this on StackOverflow, so wanted to get this into 0.24.0 before I try implementing larger changes like the new behavior specs and interval acces...
https://api.github.com/repos/pandas-dev/pandas/pulls/22988
2018-10-04T05:54:52Z
2018-10-07T22:35:36Z
2018-10-07T22:35:36Z
2018-10-08T17:00:55Z
BUG-22984 Fix truncation of DataFrame representations
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 44c467795d1ed..9275357e5ad18 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1319,7 +1319,8 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`read_sas()...
- [X] closes #22984 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry When printing a DataFrame to terminal, an extra column's worth of space is added to the calculated width of the DataFrame. This is presumably to help edge cases, but the calcul...
https://api.github.com/repos/pandas-dev/pandas/pulls/22987
2018-10-04T00:10:03Z
2018-11-15T03:02:25Z
2018-11-15T03:02:25Z
2018-11-15T03:02:32Z
CLN: prepare unifying hashtable.factorize and .unique; add doc-strings
diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in index 3ff98b7b5a9b5..c061102fbaddc 100644 --- a/pandas/_libs/hashtable_class_helper.pxi.in +++ b/pandas/_libs/hashtable_class_helper.pxi.in @@ -355,19 +355,38 @@ cdef class {{name}}HashTable(HashTable): retur...
For adding a `return_inverse`-kwarg to `unique` (#21357 / #21645), I originally didn't want to have to add something to the templated cython code, preferring to add a solution using `numpy.unique` as a first step (with the idea of improving the performance later). @jorisvandenbossche then remarked: > Which led me t...
https://api.github.com/repos/pandas-dev/pandas/pulls/22986
2018-10-03T22:47:17Z
2018-10-18T15:50:49Z
2018-10-18T15:50:49Z
2018-10-22T14:16:36Z
CLN: values is required argument in _shallow_copy_with_infer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index af04a846ed787..51c84d6e28cb4 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -530,7 +530,7 @@ def _shallow_copy(self, values=None, **kwargs): return self._simple_new(values, **attributes) - def _sh...
@TomAugspurger @jbrockmendel From looking at the code related to the discussion in https://github.com/pandas-dev/pandas/pull/22961, I noticed `_shallow_copy_with_infer` has the potential to not pass any values, which is never actually used in pandas. So a small code clean-up
https://api.github.com/repos/pandas-dev/pandas/pulls/22983
2018-10-03T19:55:24Z
2018-10-04T11:16:28Z
2018-10-04T11:16:28Z
2018-10-04T16:57:29Z
Merge asof float fix
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index f246ebad3aa2c..bded5c1b644e9 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -847,6 +847,7 @@ Reshaping - Bug in :meth:`DataFrame.drop_duplicates` for empty ``DataFrame`` which incorrectly raises ...
Fix bug with merge_asof when merging on floats and selecting a tolerance - [ ] closes #22981 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22982
2018-10-03T19:08:28Z
2018-10-04T23:29:07Z
2018-10-04T23:29:07Z
2018-10-17T06:02:50Z
DOC: Documentation for pandas.core.indexes.api
diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py index e50a4b099a8e1..4929710d416e7 100644 --- a/pandas/core/indexes/api.py +++ b/pandas/core/indexes/api.py @@ -44,9 +44,28 @@ def _get_objs_combined_axis(objs, intersect=False, axis=0, sort=True): - # Extract combined index: return intersecti...
The functions on pandas.core.indexes.api had almost no documentation. This is an attempt to explain them better and a progress towards #22915.
https://api.github.com/repos/pandas-dev/pandas/pulls/22980
2018-10-03T18:52:47Z
2018-11-04T09:56:13Z
2018-11-04T09:56:13Z
2018-11-04T09:56:28Z
Skip non-numeric columns when making a boxplot
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index ec6743e205848..64047947ec38f 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -15,7 +15,8 @@ from pandas.util._decorators import Appender, cache_readonly from pandas.core.dtypes.common import ( - is_hashable, is_integer...
This PR updates the `BoxPlot` class to skip non-numeric columns when making a DataFrame boxplot. Also raises a more meaningful error message when trying to plot a datetime-like Series. Closes #22799. - [x] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --d...
https://api.github.com/repos/pandas-dev/pandas/pulls/22979
2018-10-03T17:45:19Z
2019-02-06T03:32:32Z
null
2019-02-06T03:32:32Z
Fix ASV import error
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index c5b147b152aa6..2850fa249725c 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -2,10 +2,10 @@ import numpy as np import pandas.util.testing as tm -from pandas import (Series, DataFrame, Multi...
#22886 removed `from pandas import Panel` (a left-over from waiting to deprecating `WidePanel`, I believe) from `asv_bench/benchmarks/pandas_vb_common.py` due to linting, and now several benchmarks are failing because they try ``` from .pandas_vb_common import setup, Panel # noqa ``` This fixes the imports, by...
https://api.github.com/repos/pandas-dev/pandas/pulls/22978
2018-10-03T16:05:06Z
2018-10-04T01:34:35Z
2018-10-04T01:34:35Z
2018-10-05T16:21:36Z
Safer is dtype
diff --git a/.travis.yml b/.travis.yml index 40baee2c03ea0..c9bdb91283d42 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,11 +53,7 @@ matrix: - dist: trusty env: - JOB="3.6, coverage" ENV_FILE="ci/travis-36.yaml" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate" COVERAGE=true...
Closes https://github.com/pandas-dev/pandas/issues/22960
https://api.github.com/repos/pandas-dev/pandas/pulls/22975
2018-10-03T13:43:12Z
2018-10-04T11:30:30Z
2018-10-04T11:30:30Z
2018-10-04T17:35:46Z
TST: Fixturize series/test_missing.py
diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py index ab3fdd8cbf84f..b3f105ee5cb67 100644 --- a/pandas/tests/series/test_missing.py +++ b/pandas/tests/series/test_missing.py @@ -21,8 +21,6 @@ import pandas.util.testing as tm import pandas.util._test_decorators as td -from .com...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22973
2018-10-03T09:36:05Z
2018-10-04T11:20:47Z
2018-10-04T11:20:47Z
2018-10-04T11:20:51Z
TST: Fixturize series/test_io.py
diff --git a/pandas/tests/series/test_io.py b/pandas/tests/series/test_io.py index cbf9bff06ad34..50f548b855247 100644 --- a/pandas/tests/series/test_io.py +++ b/pandas/tests/series/test_io.py @@ -16,10 +16,8 @@ assert_frame_equal, ensure_clean) import pandas.util.testing as tm -fro...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22972
2018-10-03T09:23:48Z
2018-10-04T11:21:46Z
2018-10-04T11:21:46Z
2018-10-04T11:21:49Z
DOC: fixed doc-string for combine & combine_first in pandas/core/series.py
diff --git a/pandas/core/series.py b/pandas/core/series.py index 892b24f6ee552..b20bcad2aa09f 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2281,37 +2281,71 @@ def _binop(self, other, func, level=None, fill_value=None): def combine(self, other, func, fill_value=None): """ - P...
- [x] closes #22953 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22971
2018-10-03T09:21:50Z
2018-11-21T12:48:25Z
2018-11-21T12:48:25Z
2019-03-27T12:35:19Z
Example fill value
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3e1711edb0f27..9203e98736924 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -238,6 +238,40 @@ For situations where you need an ``ndarray`` of ``Interval`` objects, use np.asarray(idx) idx....
- [x] closes #22953 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22970
2018-10-03T09:11:54Z
2018-10-03T09:12:49Z
null
2018-10-03T09:13:34Z
DOC: Fixed the doctsring for _set_axis_name (GH 22895)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index dde671993a56b..97ea4fb96ce95 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1109,16 +1109,15 @@ def rename(self, *args, **kwargs): ('inplace', False)]) def rename_axis(self, mapper...
Fixed the docstring of the function `_set_axis_name` in `pandas/core/generic.py` Closes #22895
https://api.github.com/repos/pandas-dev/pandas/pulls/22969
2018-10-03T09:08:31Z
2018-11-20T02:21:07Z
2018-11-20T02:21:07Z
2018-11-26T15:36:35Z
DOC: Fixed the doctsring for _set_axis_name (GH 22895)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 393e7caae5fab..03e24039f16fe 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1207,31 +1207,34 @@ def rename_axis(self, mapper, axis=0, copy=True, inplace=False): def _set_axis_name(self, name, axis=0, inplace=False): ...
Fixed the docstring of the function `_set_axis_name` in `pandas/core/generic.py` (#22895)
https://api.github.com/repos/pandas-dev/pandas/pulls/22968
2018-10-03T09:01:54Z
2018-10-03T09:03:12Z
null
2018-10-03T09:03:12Z
TST: Fixturize series/test_dtypes.py
diff --git a/pandas/tests/series/test_dtypes.py b/pandas/tests/series/test_dtypes.py index 125dff9ecfa7c..63ead2dc7d245 100644 --- a/pandas/tests/series/test_dtypes.py +++ b/pandas/tests/series/test_dtypes.py @@ -24,10 +24,8 @@ from pandas import compat import pandas.util.testing as tm -from .common import TestData...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22967
2018-10-03T08:59:38Z
2018-10-04T11:22:22Z
2018-10-04T11:22:22Z
2018-10-04T11:23:01Z
TST: Fixturize series/test_datetime_values.py
diff --git a/pandas/tests/series/test_datetime_values.py b/pandas/tests/series/test_datetime_values.py index fee2323310b9c..e06d3a67db662 100644 --- a/pandas/tests/series/test_datetime_values.py +++ b/pandas/tests/series/test_datetime_values.py @@ -23,10 +23,8 @@ from pandas.util.testing import assert_series_equal im...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22966
2018-10-03T08:55:49Z
2018-10-04T11:23:21Z
2018-10-04T11:23:21Z
2018-10-04T11:23:21Z
TST: Fixturize series/test_constructors.py
diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index 4817f5bdccc29..57a3f54fadbcc 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -26,10 +26,8 @@ from pandas.util.testing import assert_series_equal import pandas....
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22965
2018-10-03T08:46:26Z
2018-10-04T11:23:40Z
2018-10-04T11:23:40Z
2018-10-04T13:27:08Z
TST: Fixturize series/test_combine_concat.py
diff --git a/pandas/tests/series/test_combine_concat.py b/pandas/tests/series/test_combine_concat.py index 35ba4fbf0ce25..8b021ab81ff81 100644 --- a/pandas/tests/series/test_combine_concat.py +++ b/pandas/tests/series/test_combine_concat.py @@ -15,29 +15,28 @@ from pandas.util.testing import assert_series_equal impor...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22964
2018-10-03T08:38:21Z
2018-10-04T11:24:06Z
2018-10-04T11:24:06Z
2018-10-04T13:26:53Z
BUG GH22858 When creating empty dataframe, only cast int to float if index given
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 9b71ab656920d..606f29ef75ba7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -199,6 +199,7 @@ Other Enhancements Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +- A newly...
- [X] closes #22858 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Previously, when creating a dataframe with no data of dtype int, the dtype would be changed to float. This is necessary when a predefined number of rows is included as the inde...
https://api.github.com/repos/pandas-dev/pandas/pulls/22963
2018-10-03T05:22:58Z
2018-10-04T23:13:58Z
2018-10-04T23:13:58Z
2018-10-05T04:34:22Z
CLN: Move some PI/DTI methods to EA subclasses, implement tests
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index a0a9b57712249..7daaa8de1734f 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -31,7 +31,7 @@ from pandas.core.algorithms import checked_add_with_arr from pandas.core import ops -from pandas.tser...
If/when this goes through the basic template it creates for tests will be pretty straightforward to extend to the other relevant methods/properties. @TomAugspurger this definitely overlaps with #22862, particularly the pieces touching constructors. LMK if this causes problems and I can try to stay in my lane.
https://api.github.com/repos/pandas-dev/pandas/pulls/22961
2018-10-03T02:58:05Z
2018-10-08T20:07:30Z
2018-10-08T20:07:30Z
2020-04-05T17:38:58Z
CI: pin moto to 1.3.4
diff --git a/ci/travis-27.yaml b/ci/travis-27.yaml index a921bcb46dba4..6955db363ca1f 100644 --- a/ci/travis-27.yaml +++ b/ci/travis-27.yaml @@ -44,7 +44,7 @@ dependencies: # universal - pytest - pytest-xdist - - moto + - moto==1.3.4 - hypothesis>=3.58.0 - pip: - backports.lzma
xref https://github.com/pandas-dev/pandas/issues/22934 Looking back at the logs, moto 1.3.4 didn't seem to have an issues. Going to run this on the CI a few times to see if we get any failures. May have to make some additional pins of boto if this doesn't work.
https://api.github.com/repos/pandas-dev/pandas/pulls/22959
2018-10-03T01:36:07Z
2018-10-03T13:49:44Z
2018-10-03T13:49:44Z
2018-10-03T13:49:45Z
CLN: Use is_period_dtype instead of ABCPeriodIndex checks
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 481d5313f0e25..41b4c5c669efc 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -264,7 +264,7 @@ def asfreq(self, freq=None, how='E'): if self.hasnans: new_data[self._isnan] = iNaT - ...
Will be more generally correct for catching both PeriodIndex and PeriodArray. Unrelated change of `l` -> `length`
https://api.github.com/repos/pandas-dev/pandas/pulls/22958
2018-10-03T01:28:04Z
2018-10-03T09:19:28Z
2018-10-03T09:19:28Z
2018-10-03T12:17:32Z
CLN: small clean-up of IntervalIndex
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 90df596b98296..134999f05364f 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -108,12 +108,7 @@ class IntervalArray(IntervalMixin, ExtensionArray): _na_value = _fill_value = np.nan def __new...
Removed some parts of IntervalIndex that are not needed (because they are inherited from Index or can be dispatched to the array) \+ removed `fastpath` (for IntervalArray this is no problem (never used), for IntervalIndex I am not fully sure, since this signature might need to match the other index classes) cc @js...
https://api.github.com/repos/pandas-dev/pandas/pulls/22956
2018-10-02T21:20:04Z
2018-10-03T07:24:37Z
2018-10-03T07:24:37Z
2018-10-03T07:25:07Z
Support for PEP 3141 numbers
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index f94aa3d320b75..22f2add40c451 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -465,6 +465,7 @@ For situations where you need an ``ndarray`` of ``Interval`` objects, use np.asarray(idx) idx.v...
- [x] closes #22903 - [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/22952
2018-10-02T19:57:09Z
2018-11-20T10:41:34Z
2018-11-20T10:41:33Z
2018-11-20T10:41:57Z
CI: deduplicate skip printing
diff --git a/ci/script_multi.sh b/ci/script_multi.sh index 2b2d4d5488b91..dcc5a14d7b3b4 100755 --- a/ci/script_multi.sh +++ b/ci/script_multi.sh @@ -28,16 +28,16 @@ if [ "$DOC" ]; then elif [ "$COVERAGE" ]; then echo pytest -s -n 2 -m "not single" --cov=pandas --cov-report xml:/tmp/cov-multiple.xml --junitxml=/...
Trying to cut down on the noise in the travis log. Right now, we print out skipped / xfailed tests twice. This removes the `-r` flag passed to `pytest`. The skipped tests output will still be available under the output of `ci/print_skipped.py`. I believe that azure automatically parses the XML output anyway. cc @dat...
https://api.github.com/repos/pandas-dev/pandas/pulls/22950
2018-10-02T18:38:06Z
2018-10-08T13:42:22Z
2018-10-08T13:42:21Z
2018-10-08T13:42:25Z
Use ._tshift internally for datetimelike ops
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 91c119808db52..1ce60510c6a69 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -455,7 +455,7 @@ def _sub_period_array(self, other): def _addsub_int_array(self, other, op): "...
In preperation for PeriodArray / DatetimeArray / TimedeltaArray. Index.shift has a different meaning from ExtensionArray.shift. - Index.shift pointwise shifts each element by some amount - ExtensionArray.shift shits the *position* of each value in the array padding the end with NA This is going to get conf...
https://api.github.com/repos/pandas-dev/pandas/pulls/22949
2018-10-02T18:26:44Z
2018-10-05T12:00:39Z
2018-10-05T12:00:39Z
2018-10-05T12:00:43Z
change windows vm image
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c82dafa224961..5d473bfc5a38c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,8 +18,8 @@ jobs: - template: ci/azure/windows.yml parameters: name: Windows - vmImage: vs2017-win2017 + vmImage: vs2017-win2016 - template: ci/azure...
Closes #22946 copying https://github.com/numba/numba/pull/3371/files
https://api.github.com/repos/pandas-dev/pandas/pulls/22948
2018-10-02T17:55:01Z
2018-10-02T18:25:23Z
2018-10-02T18:25:22Z
2018-10-02T21:37:06Z
STYLE: #22885, Moved all setup imports to bottom of benchmark files and added noqa: F401 to each
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index fc34440ece2ed..baac179355022 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -12,8 +12,6 @@ except (ImportError, TypeError, ValueError): pass -from .pandas_vb_common imp...
- [x] closes #22885 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry #22885 Following the suggestions of @datapythonista, I moved all the `setup` imports for the benchmark files to the end of each file and added a `# noqa: F401` like so: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22947
2018-10-02T16:17:35Z
2018-10-10T17:00:48Z
2018-10-10T17:00:47Z
2018-10-10T17:24:29Z
Warn when column order changed.
diff --git a/doc/source/api.rst b/doc/source/api.rst index 073ed8a082a11..e1d2caf4d08de 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2477,6 +2477,7 @@ Exceptions and warnings .. autosummary:: :toctree: generated/ + errors.ColumnOrderWarning errors.DtypeWarning errors.EmptyDataError ...
Warn when column order has changed from 0.22 ```python In [1]: import pandas as pd; import warnings In [2]: df = pd.DataFrame({"b": [1, 2], "a": [3, 4]}) In [3]: warnings.filters.pop(0) Out[3]: ('ignore', None, pandas.errors.ColumnOrderWarning, None, 0) In [4]: df = pd.DataFrame({"b": [1, 2], "a": [3, 4]}...
https://api.github.com/repos/pandas-dev/pandas/pulls/22945
2018-10-02T13:41:07Z
2019-03-25T23:59:21Z
null
2019-03-25T23:59:21Z
DOC: Updating DataFrame.to_stata docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4e8b4e3a6bec..fbe17c9669f0b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1820,12 +1820,16 @@ def to_stata(self, fname, convert_dates=None, write_index=True, data_label=None, variable_labels=None, version=114, ...
Fixes #22896
https://api.github.com/repos/pandas-dev/pandas/pulls/22943
2018-10-02T11:54:05Z
2018-10-02T12:11:25Z
null
2018-10-04T02:40:24Z
BUG: Correctly weekly resample over DST
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 851c1a3fbd6e9..a64576565d093 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -794,6 +794,7 @@ Groupby/Resample/Rolling - Bug in :meth:`Resampler.asfreq` when frequency of ``TimedeltaIndex`` is a s...
- [x] closes #21459 - [x] closes #9119 - [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/22941
2018-10-02T07:06:44Z
2018-10-03T15:25:46Z
2018-10-03T15:25:45Z
2018-10-03T15:25:55Z
Analytics.py fixtures added
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index baebf414969be..e159a044a70aa 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -32,45 +32,45 @@ class TestDataFrameAnalytics(TestData): # Correlation and covariance @t...
- [ ] Analytics.py tests passed - Analytics.py fixtures added for issue #22471
https://api.github.com/repos/pandas-dev/pandas/pulls/22940
2018-10-02T04:55:28Z
2018-11-05T18:31:33Z
null
2018-11-05T18:31:33Z
ENH: Implement overlaps method for Interval-like
diff --git a/doc/source/api.rst b/doc/source/api.rst index 073ed8a082a11..ce8e9f737e5af 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1651,6 +1651,7 @@ IntervalIndex Components IntervalIndex.get_loc IntervalIndex.get_indexer IntervalIndex.set_closed + IntervalIndex.overlaps .. _api.mul...
- [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry - xref #21998, #18975 Implements `Interval.overlaps`, `IntervalArray.overlaps`, and `IntervalIndex.overlaps`. Implementing this so there's an interval method that can be tested in the interval a...
https://api.github.com/repos/pandas-dev/pandas/pulls/22939
2018-10-02T03:10:44Z
2018-10-24T12:18:58Z
2018-10-24T12:18:58Z
2018-10-25T02:14:40Z
Update type for PeriodDtype / DatetimeTZDtype / IntervalDtype
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 851c1a3fbd6e9..9808f5d735535 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -505,6 +505,7 @@ ExtensionType Changes - :meth:`Series.astype` and :meth:`DataFrame.astype` now dispatch to :meth:`Exte...
Split from PeriodArray. Updating the type to be the more correct `Period`. Also removed the essentially unused `IntervalDtypeType`. If this doesn't break anything, it seems like there are decent chunks of `_get_dtype_type` that aren't being hit, aside from `test__get_dtype_type`.
https://api.github.com/repos/pandas-dev/pandas/pulls/22938
2018-10-02T02:42:42Z
2018-10-04T11:55:10Z
2018-10-04T11:55:10Z
2018-10-04T11:56:37Z
DOC: fix DataFrame.sample doctests and reformat the docstring
diff --git a/ci/doctests.sh b/ci/doctests.sh index b3d7f6785815a..16b3430f1e431 100755 --- a/ci/doctests.sh +++ b/ci/doctests.sh @@ -35,7 +35,7 @@ if [ "$DOCTEST" ]; then fi pytest --doctest-modules -v pandas/core/generic.py \ - -k"-_set_axis_name -_xs -describe -droplevel -groupby -interpolate -pct_...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Based on #22459. Fix the docstring for DataFrame.sample. I also updated `ci/doctests.sh`. I was on the fence if I should remove mentions of `Panels` since it is deprecated.
https://api.github.com/repos/pandas-dev/pandas/pulls/22937
2018-10-02T02:29:06Z
2018-10-08T04:31:21Z
2018-10-08T04:31:21Z
2018-10-09T14:39:27Z
Catch Exception in combine
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 7bf13fb2fecc0..f7c4ee35adfe4 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -739,14 +739,22 @@ def _create_method(cls, op, coerce_to_dtype=True): ---------- op : function An operator th...
Closes https://github.com/pandas-dev/pandas/issues/22850
https://api.github.com/repos/pandas-dev/pandas/pulls/22936
2018-10-02T02:27:06Z
2018-10-04T11:27:55Z
2018-10-04T11:27:55Z
2018-10-04T11:32:54Z
Provide default implementation for `data_repated`
diff --git a/pandas/tests/extension/conftest.py b/pandas/tests/extension/conftest.py index 4bbbb7df2f399..8e397d228a5b6 100644 --- a/pandas/tests/extension/conftest.py +++ b/pandas/tests/extension/conftest.py @@ -31,12 +31,24 @@ def all_data(request, data, data_missing): @pytest.fixture -def data_repeated(): - ...
Split from PeriodArray. The previous implementation was not great, since failing to override it would result in `Series([NotImplementedError, NotImplementedError...])`. We could raise instead, forcing downstream arrays to implement it, or just repeat `data`. I opted for the latter, which integer_array was already do...
https://api.github.com/repos/pandas-dev/pandas/pulls/22935
2018-10-02T02:15:30Z
2018-10-02T13:50:42Z
2018-10-02T13:50:42Z
2018-10-02T13:50:45Z
BUG: divmod return type
diff --git a/doc/source/extending.rst b/doc/source/extending.rst index 9422434a1d998..ab940384594bc 100644 --- a/doc/source/extending.rst +++ b/doc/source/extending.rst @@ -160,9 +160,18 @@ your ``MyExtensionArray`` class, as follows: MyExtensionArray._add_arithmetic_ops() MyExtensionArray._add_comparison_ops...
Closes https://github.com/pandas-dev/pandas/issues/22930
https://api.github.com/repos/pandas-dev/pandas/pulls/22932
2018-10-01T21:52:22Z
2018-10-08T13:53:06Z
2018-10-08T13:53:06Z
2018-10-08T13:56:57Z
Solved issue #22471 Replaced TestData with fixtures
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index baebf414969be..ef68f796a8b02 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -33,44 +33,44 @@ class TestDataFrameAnalytics(TestData): @td.skip_if_no_scipy def test_c...
- [ ] close #22471 - [ ] tests updated - [ ] removed TestData from frame-tests, replace with fixtures
https://api.github.com/repos/pandas-dev/pandas/pulls/22928
2018-10-01T16:02:04Z
2018-10-07T23:12:46Z
null
2018-10-07T23:12:46Z
Support passing function to Appender
diff --git a/pandas/tests/util/test_util.py b/pandas/tests/util/test_util.py index 6552655110557..e99ecc489b2b8 100644 --- a/pandas/tests/util/test_util.py +++ b/pandas/tests/util/test_util.py @@ -10,7 +10,8 @@ from pandas.compat import intern, PY3 import pandas.core.common as com from pandas.util._move import move_...
Possibly addresses issues discussed in #20074? More generally, allows for less-verbose usage.
https://api.github.com/repos/pandas-dev/pandas/pulls/22927
2018-10-01T15:55:40Z
2018-10-01T19:19:39Z
null
2018-10-01T19:19:43Z
TST/CLN: Fixturize tests/frame/test_block_internals.py
diff --git a/pandas/tests/frame/test_block_internals.py b/pandas/tests/frame/test_block_internals.py index 3fe1c84174acb..5f1d4954521ed 100644 --- a/pandas/tests/frame/test_block_internals.py +++ b/pandas/tests/frame/test_block_internals.py @@ -22,27 +22,25 @@ import pandas.util.testing as tm -from pandas.tests.fr...
- [ ] Following h-vetinari's footstep (#22471 ), "translate" one of the test file - [ ] tests added / passed
https://api.github.com/repos/pandas-dev/pandas/pulls/22926
2018-10-01T14:38:40Z
2018-10-14T17:18:26Z
2018-10-14T17:18:26Z
2018-10-14T17:18:40Z
Updated README.md
diff --git a/README.md b/README.md index f26b9598bb5d3..66771e5d6a00e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ <div align="center"> - <img src="https://github.com/pandas-dev/pandas/blob/master/doc/logo/pandas_logo.png"><br> +<img src="https://github.com/pandas-dev/pandas/blob/master/doc/logo/pandas_logo...
Removed extra white spaces and clarified that NAN stands for Not a Number. - [ ] 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/22925
2018-10-01T14:16:06Z
2018-10-01T20:32:48Z
null
2018-10-01T20:32:48Z
DOC GH22893 Fix docstring of groupby in pandas/core/generic.py
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 393e7caae5fab..5b4ce5a382324 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7063,8 +7063,12 @@ def clip_lower(self, threshold, axis=None, inplace=False): def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,...
- [x] closes #22893 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Updated docstring following https://pandas.pydata.org/pandas-docs/stable/contributing_docstring.html I changed the examples into similar ones that I thought better demonstra...
https://api.github.com/repos/pandas-dev/pandas/pulls/22920
2018-10-01T07:18:21Z
2018-10-03T00:01:09Z
2018-10-03T00:01:08Z
2018-10-03T00:01:15Z
CLN GH22874 replace bare excepts in pandas/io/pytables.py
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index c57b1c3e211f6..fc9e415ed38f7 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -258,7 +258,7 @@ def _tables(): try: _table_file_open_policy_is_strict = ( tables.file._FILE_OPEN_POLICY == 'strict') - ...
This PR changes bare excepts in `pandas/io/pytables.py` to more specific exceptions. I defaulted to using specific exceptions that seemed likely/triggered test errors, but it may be the case that I'm missing some or it's better to leave it as `Exception`. - [x] closes #22874 - [x] tests added / passed - [x] passes...
https://api.github.com/repos/pandas-dev/pandas/pulls/22919
2018-10-01T01:57:14Z
2018-10-02T21:14:49Z
2018-10-02T21:14:49Z
2018-10-02T22:35:49Z
BUG: to_datetime preserves name of Index argument in the result
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index b71edcf1f6f51..851c1a3fbd6e9 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -655,6 +655,7 @@ Datetimelike - Bug in :class:`DatetimeIndex` incorrectly allowing indexing with ``Timedelta`` object (...
- [x] closes #21697 - [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/22918
2018-10-01T01:47:37Z
2018-10-01T21:22:21Z
2018-10-01T21:22:21Z
2018-10-01T21:22:24Z
Use fused types for _take_2d
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index 40b1b1a282670..9f531f36d1a64 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -2,7 +2,6 @@ Template for each `dtype` helper function using 1-d template # 1-d temp...
Misc cleanup For some of the cython code I get unexplained test failures when using fused types. Vaguely hoping to narrow down the set of affected functions so as to make a helpful bug report to cython.
https://api.github.com/repos/pandas-dev/pandas/pulls/22917
2018-10-01T01:29:52Z
2018-10-05T12:18:41Z
2018-10-05T12:18:41Z
2018-10-05T13:38:45Z
CLN GH22875 Replace bare excepts by explicit excepts in pandas/io/
diff --git a/pandas/io/clipboards.py b/pandas/io/clipboards.py index 0d564069c681f..70c978a3b62ed 100644 --- a/pandas/io/clipboards.py +++ b/pandas/io/clipboards.py @@ -42,7 +42,7 @@ def read_clipboard(sep=r'\s+', **kwargs): # pragma: no cover text, encoding=(kwargs.get('encoding') or ...
- [X] closes #22875 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I removed the except block in pandas/io/pickle.py:172:13 because the only difference between the try block and the except block was one parameter in the call to pc.load, and the...
https://api.github.com/repos/pandas-dev/pandas/pulls/22916
2018-10-01T00:33:33Z
2018-10-05T04:41:06Z
null
2018-10-06T05:03:04Z
[WIP] API/CLN: Refactor DataFrame.append
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 251bc6587872d..4db4239ea1b54 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6338,45 +6338,152 @@ def append(self, other, ignore_index=False, 3 3 4 4 """ - if isinstance(other, (Series, dict)): - ...
This is a WIP pull request, there are still a bunch of things to do. I'm posting it here so you can give me early feedback or point me in an direction if something is not looking good. *PR will be split into multiple smaller ones, as suggested* ### How it is DataFrame.append method is pretty confusing as it is...
https://api.github.com/repos/pandas-dev/pandas/pulls/22915
2018-10-01T00:24:13Z
2018-11-23T03:35:01Z
null
2018-11-23T03:35:01Z
CLN: Flake8 E741
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 986fe347898f5..c2d2e447d1616 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1,3 +1,5 @@ +# pylint: disable=E1101 +# pylint: disable=W0212,W0703,W0622 """ DataFrame --------- @@ -9,11 +11,9 @@ labeling information """ from __future__ ...
- [x] towards #22122 ( test files still remaining for E741) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Import optimiser, makes things alphabetical and also removes unused eg, `Float64Index`, in `packers.py`. Do people prefer this or not?
https://api.github.com/repos/pandas-dev/pandas/pulls/22913
2018-09-30T19:20:07Z
2018-10-09T15:43:40Z
2018-10-09T15:43:40Z
2018-10-09T19:34:29Z
API/DEPR: 'periods' argument instead of 'n' for PeriodIndex.shift()
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index a1a0857fe6365..62a2a358d3ba9 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -637,7 +637,7 @@ Deprecations - :meth:`Series.str.cat` has deprecated using arbitrary list-likes *within* list-likes. A...
- [x] closes #22458 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry In order to be consistent with `Index.shift` & `Series.shift` & `DatetimeIndex.shift`, `n` argument was deprecated in favor of `periods`. ``` In [2]: idx = pd.PeriodIndex(f...
https://api.github.com/repos/pandas-dev/pandas/pulls/22912
2018-09-30T18:54:54Z
2018-10-08T19:13:20Z
2018-10-08T19:13:20Z
2018-10-08T20:27:15Z
DEPR/CLN: Clean up to_dense signature deprecations
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 16f0b9ee99909..83704987abdb7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -440,7 +440,7 @@ In addition to these API breaking changes, many :ref:`performance improvements a Raise ValueError in `...
Also deprecate `fill` in `.get_values` because its parameter was being passed to `.to_dense`, which no longer accepts the `fill` parameter. xref #14686.
https://api.github.com/repos/pandas-dev/pandas/pulls/22910
2018-09-30T18:43:56Z
2018-10-18T17:30:04Z
2018-10-18T17:30:04Z
2018-10-18T18:53:01Z
TST: solve test failure on 32bit systems
diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py index 99a909849822b..a753e925b0ed8 100644 --- a/pandas/tests/indexes/test_base.py +++ b/pandas/tests/indexes/test_base.py @@ -1379,7 +1379,7 @@ def test_get_indexer_with_NA_values(self, unique_nulls_fixture, index = pd.Index(arr...
- [x] closes #22813 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry #22296 introduced a test, where ``dtype=np.int64`` was used, but ``np.intp`` is needed for the test to pass on 32bit systems also. This fixes that. After this PR, the pandas ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22908
2018-09-30T16:03:58Z
2018-10-11T11:21:39Z
2018-10-11T11:21:39Z
2018-10-27T08:15:48Z
STYLE: Added explicit exceptions
diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index c1a9a9fc1ed13..713a5b1120beb 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -33,7 +33,7 @@ def load_reduce(self): cls = args[0] stack[-1] = object.__new__(cls) ...
- [x] xref #22877 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixed the following bare excepts: > pandas/compat/pickle_compat.py:36:13: E722 do not use bare except' > pandas/compat/pickle_compat.py:47:13: E722 do not use bare except' >...
https://api.github.com/repos/pandas-dev/pandas/pulls/22907
2018-09-30T08:53:53Z
2018-10-01T11:52:56Z
2018-10-01T11:52:56Z
2018-10-01T14:57:19Z
DOC: Fix quantile docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4e8b4e3a6bec..b19391afc7c69 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7390,20 +7390,26 @@ def f(s): def quantile(self, q=0.5, axis=0, numeric_only=True, interpolation='linear'): """ - Return val...
…tput of example 1 Added summary for **See Also** functions Some typo fixes . - [x] closes #22898 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22906
2018-09-30T07:49:27Z
2018-12-07T12:46:19Z
null
2018-12-07T12:56:36Z
DOC GH22897 Fix docstring of join in pandas/core/frame.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4e8b4e3a6bec..a5add27ed30d8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6440,123 +6440,122 @@ def append(self, other, ignore_index=False, def join(self, other, on=None, how='left', lsuffix='', rsuffix='', sort=False)...
- [X] closes #22897 - [X] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry #22900 was dealt with by adding an "import pandas as pd" line to the start of the examples section.
https://api.github.com/repos/pandas-dev/pandas/pulls/22904
2018-09-30T07:22:17Z
2018-11-03T07:12:49Z
null
2018-11-03T07:12:49Z
DOC: #22899, Fixed docstring of itertuples in pandas/core/frame.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d5b273f37a3a2..8c6b216ad196e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -883,43 +883,66 @@ def iterrows(self): def itertuples(self, index=True, name="Pandas"): """ - Iterate over DataFrame rows as namedtuples, wit...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry #22899 I went ahead and followed the docstring conventions mentioned here: https://pandas.pydata.org/pandas-docs/stable/contributing_docstring.html The fixes I made were...
https://api.github.com/repos/pandas-dev/pandas/pulls/22902
2018-09-30T02:21:18Z
2018-10-07T22:40:48Z
2018-10-07T22:40:48Z
2018-10-07T22:40:51Z
CLN GH22873 Replace base excepts in pandas/core
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 851c1a3fbd6e9..f83185173c3e3 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -834,4 +834,3 @@ Other - :meth:`DataFrame.nlargest` and :meth:`DataFrame.nsmallest` now returns the correct n values wh...
This cleaning fix adds specific exception classes to bare except statements to correct PEP8 linting errors. The classes were chosen by a mixture of educated guessing (i.e. if a statement gets the `length` property, it might raise an `AttributeError`), trying out functions on known edge cases (i.e. giving a datetime inp...
https://api.github.com/repos/pandas-dev/pandas/pulls/22901
2018-09-30T00:08:17Z
2018-10-02T21:16:26Z
2018-10-02T21:16:26Z
2018-10-03T13:15:40Z
DOC: updated the docstring of Series.dot
diff --git a/pandas/core/series.py b/pandas/core/series.py index a613b22ea9046..141d738d0c3bf 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2080,16 +2080,53 @@ def autocorr(self, lag=1): def dot(self, other): """ - Matrix multiplication with DataFrame or inner-product with Se...
- [ ] closes #xxxx - [ ] tests added / passed - [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22890
2018-09-29T18:54:54Z
2018-11-03T07:04:42Z
2018-11-03T07:04:42Z
2018-11-03T07:04:52Z
BLD: minor break ci/requirements-optional-pip.txt
diff --git a/ci/requirements-optional-pip.txt b/ci/requirements-optional-pip.txt index 2e1bf0ca22bcf..09ce8e59a3b46 100644 --- a/ci/requirements-optional-pip.txt +++ b/ci/requirements-optional-pip.txt @@ -14,7 +14,7 @@ lxml matplotlib nbsphinx numexpr -openpyxl=2.5.5 +openpyxl==2.5.5 pyarrow pymysql tables @@ -28...
- [x] closes #22595 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry When adding optional dependencies, below error appears from > Invalid requirement: 'openpyxl=2.5.5' > = is not a valid operator. Did you mean == ? To core dev, should w...
https://api.github.com/repos/pandas-dev/pandas/pulls/22889
2018-09-29T18:27:48Z
2018-09-30T13:59:47Z
2018-09-30T13:59:47Z
2018-09-30T14:08:55Z