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 iteritems docstring update and examples
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 81d5c112885ec..288ff26b14bc4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -778,14 +778,50 @@ def style(self): return Styler(self) def iteritems(self): - """ + r""" Iterator over (column name, Series)...
Updated iteritems docstring to start with an infinitive and added a short example - [ ] 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/22658
2018-09-10T12:34:25Z
2018-09-27T12:54:12Z
2018-09-27T12:54:12Z
2018-09-27T12:54:28Z
DOC: Follows ISO 639-1 code
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf new file mode 100644 index 0000000000000..daa65a944e68a Binary files /dev/null and b/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pdf differ diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet_JA.pptx b/doc/cheatsheet/Pandas_Cheat_Sheet...
## Changes - change suffix `_JP` to `_JA` according to `ISO 639` - fixed typo in `Pandas_Cheat_Sheet_JA.pdf` - translated `Pandas_Cheat_Sheet_JA.pptx` in Japanese
https://api.github.com/repos/pandas-dev/pandas/pulls/22657
2018-09-10T08:51:47Z
2018-09-30T21:27:18Z
2018-09-30T21:27:18Z
2018-09-30T21:27:18Z
BUG: output formatting with to_html(), index=False and/or index_names=False (#22579, #22747)
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 9bb6e0c90ae06..0890dfe76bbde 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1520,6 +1520,8 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`read_sas()...
- [x] closes #22579 - [x] closes #22747 - [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/22655
2018-09-10T03:35:05Z
2019-01-01T16:35:15Z
2019-01-01T16:35:14Z
2019-01-01T21:00:37Z
ENH: Support writing timestamps with timezones with to_sql
diff --git a/doc/source/io.rst b/doc/source/io.rst index 68faefa872c88..9f458b58717d6 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4806,6 +4806,36 @@ default ``Text`` type for string columns: Because of this, reading the database table back in does **not** generate a categorical. +.. _io.sql_d...
- [x] closes #9086 - [x] closes #23510 - [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/22654
2018-09-10T02:04:06Z
2018-11-08T14:55:50Z
2018-11-08T14:55:50Z
2018-11-08T18:02:15Z
BUG SeriesGroupBy.mean() overflowed on some integer arrays (#22487)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..1f5ba610cdeb7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -761,6 +761,7 @@ Groupby/Resample/Rolling - Bug in :meth:`Resampler.apply` when passing postiional arguments to applied...
When integer arrays contained integers that were outside the range of int64, the conversion would overflow. Instead only allow allow safe casting and if a safe cast can not be done, cast to float64 instead. - [X] closes #22487 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flak...
https://api.github.com/repos/pandas-dev/pandas/pulls/22653
2018-09-09T22:29:20Z
2018-09-18T14:47:32Z
2018-09-18T14:47:31Z
2018-09-18T14:47:41Z
ASV: more for str.cat
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index b203c8b0fa5c9..ccfac2f73f14d 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -1,7 +1,7 @@ import warnings import numpy as np -from pandas import Series +from pandas import Series, DataFrame im...
Planning to do a clean-up of the `Series.str.cat` internals and wanted to expand ASV-coverage before doing so.
https://api.github.com/repos/pandas-dev/pandas/pulls/22652
2018-09-09T20:42:12Z
2018-09-14T12:43:59Z
2018-09-14T12:43:59Z
2018-09-15T16:39:27Z
BUG: Make sure that sas7bdat parsers memory is initialized to 0 (#21616)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index fb7af00f61534..2add33becd679 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -734,7 +734,7 @@ I/O - :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when considerin...
Memory for numbers in sas7bdat-parsing was not initialized properly to 0. For sas7bdat files with numbers smaller than 8 bytes this made the least significant part of the numbers essentially random. Fix it by initializing memory correctly. - [X] closes #21616 - [X] tests added / passed - [X] passes `git diff up...
https://api.github.com/repos/pandas-dev/pandas/pulls/22651
2018-09-09T18:58:39Z
2018-09-15T12:12:56Z
2018-09-15T12:12:56Z
2018-09-15T12:13:01Z
BUG: Dont include deleted rows from sas7bdat files (#15963)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 31ef70703e2ca..3f25d03b22cae 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -760,6 +760,8 @@ I/O - :func:`read_sas()` will correctly parse sas7bdat files with many columns (:issue:`22628`) - :fu...
Sas7bdat files may contain rows which are actually deleted. After reverse engineering the file format a bit, I found that if the page_type has bit 7 set, there is a bitmap following the normal row data with a bit set for a given row if it has been deleted. Use that information to not include deleted rows in ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22650
2018-09-09T16:35:50Z
2019-02-06T03:31:36Z
null
2020-05-04T05:30:40Z
BUG/ENH: Handle AmbiguousTimeError in date rounding
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 487d5d0d2accd..de4d33789105a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -182,6 +182,7 @@ Other Enhancements - :func:`to_timedelta` now supports iso-formated timedelta strings (:issue:`21877`)...
- [x] closes #18946 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Discussed in #22560, adding an `ambiguous` argument to `round`, `ceil` and `floor` so the user can dictate how to handle rounding timestamps that land on ambiguous times.
https://api.github.com/repos/pandas-dev/pandas/pulls/22647
2018-09-09T06:48:32Z
2018-09-23T13:25:41Z
2018-09-23T13:25:41Z
2018-09-23T16:18:22Z
TST: Avoid DeprecationWarnings
diff --git a/pandas/core/common.py b/pandas/core/common.py index a3fba762509f1..92e4e23ce958e 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -122,6 +122,24 @@ def is_bool_indexer(key): return False +def cast_scalar_indexer(val): + """ + To avoid numpy DeprecationWarnings, cast float to...
Avoid a boatload of these: ``` pandas/tests/plotting/test_frame.py::TestDataFramePlots::()::test_plot /home/travis/build/pandas-dev/pandas/pandas/core/indexes/multi.py:1556: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future if lab[key] == -1: /ho...
https://api.github.com/repos/pandas-dev/pandas/pulls/22646
2018-09-09T03:52:05Z
2018-09-12T11:26:13Z
2018-09-12T11:26:13Z
2018-09-12T13:42:04Z
TST: Collect/Use arithmetic test fixtures
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index 844472b8bcf0d..b800b66e8edea 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -28,14 +28,32 @@ def zero(request): return request.param +# -----------------------------------...
Takes over from #22350 (which would have been a rebasing nightmare), addressing AFAICT all unaddressed comments from there. All remaining fixtures in tests/arithmetic are collected in tests/arithmetic/conftest.py Fixtures are given more descriptive names and docstrings as requested in #22350. A handful of tests ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22645
2018-09-09T01:36:38Z
2018-09-12T11:28:48Z
2018-09-12T11:28:48Z
2018-09-12T13:41:23Z
API/ENH: tz_localize handling of nonexistent times: rename keyword + add shift option
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 85b0abe421eb2..a52c80106f100 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -2357,6 +2357,38 @@ constructor as well as ``tz_localize``. # tz_convert(None) is identical with tz_convert('UTC').tz_localize(None) did...
- [x] closes #8917 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Currently, users do not have any control over nonexistent datetime handling when `tz_localize`ing like they do ambiguous times. This adds a new keyword `nonexistent` to `tz_local...
https://api.github.com/repos/pandas-dev/pandas/pulls/22644
2018-09-09T01:34:58Z
2018-10-25T11:46:30Z
2018-10-25T11:46:30Z
2018-10-25T15:48:10Z
DOC: improve doc string for .aggregate and .transform
diff --git a/ci/doctests.sh b/ci/doctests.sh index 2af5dbd26aeb1..654bd57107904 100755 --- a/ci/doctests.sh +++ b/ci/doctests.sh @@ -21,7 +21,7 @@ if [ "$DOCTEST" ]; then # DataFrame / Series docstrings pytest --doctest-modules -v pandas/core/frame.py \ - -k"-assign -axes -combine -isin -itertuples -...
Since #21224, operations using ``axis=1`` in df.aggregate and df.transform now work the same as when axis=0. This PR updates the methods' doc strings to reflect the new reality. For example, we can now pass a dict to DataFrame.agg/transform when ``axis=1`` also, and ``DataFrame.transform`` now has an ``axis`` parame...
https://api.github.com/repos/pandas-dev/pandas/pulls/22641
2018-09-08T21:31:34Z
2018-09-18T12:18:09Z
2018-09-18T12:18:08Z
2018-09-20T21:12:02Z
BUG: df.sort_values() not respecting na_position with categoricals #22556
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 16f0b9ee99909..351dc363c9550 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -788,6 +788,7 @@ Categorical ^^^^^^^^^^^ - Bug in :meth:`Categorical.from_codes` where ``NaN`` values in ``codes`` w...
- [x] closes #22556 - [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/22640
2018-09-08T20:51:57Z
2018-10-18T16:07:26Z
2018-10-18T16:07:26Z
2018-10-18T23:32:03Z
pythonize cython code
diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 13baa100b84b7..0000000000000 --- a/.coveragerc +++ /dev/null @@ -1,30 +0,0 @@ -# .coveragerc to control coverage.py -[run] -branch = False -omit = */tests/* -plugins = Cython.Coverage - -[report] -# Regexes for lines to exclude from consideration -ex...
Use python-style type annotations instead of cython-style in a few places. Use python-style isinstance checks in cases where cython will automatically optimize them into C calls. Part of the hope is that we can get the code close enough to valid python that we can trick flake8 into working on it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22638
2018-09-08T17:52:45Z
2018-09-12T11:33:44Z
2018-09-12T11:33:44Z
2018-09-12T18:29:06Z
CI / BLD: Various CI Backports
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 + # ----------------------...
* Pin `blosc` to `1.14.3` (#22429) * Migrate to CircleCI 2.0 (#21814) * Pin `openpyxl` to `2.5.5` (#22601) * Bump `numpy` to `1.9.3` (#22499) * Fix locale handling (#21739, #22213) * Upgrade `Cython` to `>=0.28.2` (#21688)
https://api.github.com/repos/pandas-dev/pandas/pulls/22637
2018-09-08T16:48:16Z
2018-09-11T16:40:59Z
2018-09-11T16:40:59Z
2018-09-11T20:07:41Z
DOC: improve doc string for .aggregate and df.transform
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2e5da21f573b0..4a74b2b472fda 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -63,6 +63,10 @@ _shared_docs = dict() _shared_doc_kwargs = dict( axes='keywords for axes', klass='NDFrame', + axis=""" + axis : {0 or 'index', ...
Since #21224, operations using ``axis=1`` in df.aggregate and df.transform now work the same as when ``axis=0``. This PR updates the methods' doc strings to reflect that. For example, we can now pass a dict to DataFrame.agg/transform, also when ``axis=1``, and DataFrame.transform now accepts an ``axis`` parameter. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22636
2018-09-08T09:44:04Z
2018-09-08T11:13:44Z
null
2018-09-08T11:13:44Z
BUG: NaN should have pct rank of NaN
diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt index 304ab12752ad4..f69e38e7fdd50 100644 --- a/doc/source/whatsnew/v0.23.5.txt +++ b/doc/source/whatsnew/v0.23.5.txt @@ -20,6 +20,9 @@ and bug fixes. We recommend that all users upgrade to this version. Fixed Regressions ~~~~~~~~~~~~~~~~~...
Backport of #22600.
https://api.github.com/repos/pandas-dev/pandas/pulls/22634
2018-09-08T05:41:02Z
2018-09-11T21:45:26Z
2018-09-11T21:45:26Z
2018-09-11T21:45:46Z
DOC: Add more documentation showcasing CalendarDay
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 5dfac98d069e7..d0de34aa5eb4c 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -900,12 +900,31 @@ calendar time arithmetic. :class:`CalendarDay` is useful preserving calendar day semantics with date times with have day lig...
xref https://github.com/pandas-dev/pandas/pull/22288#issuecomment-419572535 Highlighting usages of `CalendarDay` with `date_range` and `resample` specifically.
https://api.github.com/repos/pandas-dev/pandas/pulls/22633
2018-09-08T05:37:26Z
2018-09-27T20:26:31Z
null
2018-09-27T20:26:35Z
BUG: Some sas7bdat files with many columns are not parseable by read_sas
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..949bc7b73af7e 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -742,6 +742,8 @@ I/O - :func:`read_excel()` will correctly show the deprecation warning for previously deprecated ``she...
- [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry The reason is that column definitions may be split up into different pages. Allow column information to be parsed from different pages and add a test for it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22628
2018-09-07T15:07:08Z
2018-09-18T12:13:46Z
2018-09-18T12:13:46Z
2018-09-18T12:17:17Z
CLN/DEPR: removed deprecated as_indexer arg from str.match()
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 1979bde796452..5560d7edeca1a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -528,7 +528,7 @@ Removal of prior version deprecations/changes - Removal of the previously deprecated module ``pandas.c...
- [x] closes #22316 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is the renewal of #22356, as the git got tangled up I re-forked the repo.
https://api.github.com/repos/pandas-dev/pandas/pulls/22626
2018-09-07T09:05:41Z
2018-09-07T12:47:56Z
2018-09-07T12:47:56Z
2018-09-09T09:20:05Z
STYLE: Fixing #18419 - Fixing flake8 issues to allow for >3.4.1 support
diff --git a/doc/source/conf.py b/doc/source/conf.py index 29f947e1144ea..e10b788ba7b22 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -565,19 +565,19 @@ def linkcode_resolve(domain, info): for part in fullname.split('.'): try: obj = getattr(obj, part) - except: + e...
- [x] closes #18419 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry There were tons of E722's, in a lot of cases I did not know what exceptions the author was expecting, so have unfortunately had to mark as `except Exception`, but where possible...
https://api.github.com/repos/pandas-dev/pandas/pulls/22625
2018-09-07T00:03:14Z
2018-09-07T00:11:06Z
null
2018-09-07T00:11:06Z
DataFrame.corrwith() method now supports 'how', 'method' and 'min_periods' params
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index 95142a7b83435..1e429bc14991c 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -159,8 +159,8 @@ compute the correlation based on histogram intersection: frame.corr(method=histogram_intersection) A related method ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry A method `DataFrame.corrmatrix()` creates a correlation matrix between all columns of the first DataFrame object and all columns of the second DataFrame object. It differs from `corrwith()` in tha...
https://api.github.com/repos/pandas-dev/pandas/pulls/22622
2018-09-06T17:23:20Z
2018-12-26T07:28:01Z
null
2018-12-26T07:28:01Z
Test in scripts/validate_docstrings.py that the short summary is always one line long
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index 0c0757c6963d7..00496f771570b 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -362,6 +362,15 @@ def multi_line(self): which is not correct. ...
- [x] closes #22615 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The previous test to check if the summary property should be empty was based on the non-existence of the extended summary which doesn't seem to make sense. The test case I added failed before changin...
https://api.github.com/repos/pandas-dev/pandas/pulls/22617
2018-09-06T01:16:49Z
2018-09-18T13:00:19Z
2018-09-18T13:00:18Z
2018-09-18T13:27:11Z
avoid ValueError when overriding eq
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 9c906a00bd4fe..e3e48327d14b1 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -157,12 +157,13 @@ cdef class IndexEngine: ndarray[intp_t, ndim=1] found int count - indexer = self._get_index_values() =...
Using pandas >= 0.22 together with module [xpress](https://pypi.org/project/xpress) that I maintain, I get a `ValueError` when calling `a.loc['foo']` on an index `a`. The reason has to do with xpress' overloading of a NumPy `eq` operation (and also `leq`, `geq`). This is done through NumPy's PyUFunc_FromFuncAndData() f...
https://api.github.com/repos/pandas-dev/pandas/pulls/22611
2018-09-05T16:21:21Z
2018-12-03T01:46:19Z
null
2023-05-11T01:18:15Z
BUG: Check types in Index.__contains__ (#22085)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3a44b0260153c..ef6e46976b50c 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -723,6 +723,7 @@ Indexing - ``Float64Index.get_loc`` now raises ``KeyError`` when boolean key passed. (:issue:`19087`) ...
- [x] closes #22085 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I added is_float, is_integer_dtype in Index.__contains__. If key is float and dtype of Index object is integer, return False. And this is the same as #22360. I deleted the b...
https://api.github.com/repos/pandas-dev/pandas/pulls/22602
2018-09-05T07:07:32Z
2018-09-19T21:17:13Z
2018-09-19T21:17:13Z
2018-09-20T04:13:54Z
BLD: Fix openpyxl to 2.5.5
diff --git a/ci/appveyor-27.yaml b/ci/appveyor-27.yaml index 6843c82236a35..bcd9ddee1715e 100644 --- a/ci/appveyor-27.yaml +++ b/ci/appveyor-27.yaml @@ -13,7 +13,7 @@ dependencies: - matplotlib - numexpr - numpy=1.12* - - openpyxl + - openpyxl=2.5.5 - pytables - python=2.7.* - pytz diff --git a/ci/a...
`2.5.5` --> `2.5.6` broke compatibility with pandas `Timestamp` objects. Closes #22595.
https://api.github.com/repos/pandas-dev/pandas/pulls/22601
2018-09-05T06:51:54Z
2018-09-05T10:52:28Z
2018-09-05T10:52:28Z
2018-09-18T19:56:59Z
BUG: NaN should have pct rank of NaN
diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt index 2a1172c8050ad..8f4b1a13c2e9d 100644 --- a/doc/source/whatsnew/v0.23.5.txt +++ b/doc/source/whatsnew/v0.23.5.txt @@ -23,6 +23,9 @@ Fixed Regressions - Constructing a DataFrame with an index argument that wasn't already an instance o...
Closes #22519.
https://api.github.com/repos/pandas-dev/pandas/pulls/22600
2018-09-05T06:35:26Z
2018-09-08T02:27:24Z
2018-09-08T02:27:24Z
2018-09-08T05:39:21Z
Implement delegate_names to allow decorating delegated attributes
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 7a853d575aa69..eab529584d1fb 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -105,6 +105,38 @@ def f(self, *args, **kwargs): setattr(cls, name, f) +def delegate_names(delegate, accessors, typ, overwrite=False...
This PR defines a `delegate_names` decorator that provides an alternative (and to my taste, much nicer) syntax for pinning delegated attributes to Accessor classes. Effectively this just moves the call to `_add_delegate_accessors` from after the class definition to a decorator on the class. I find this much harder ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22599
2018-09-05T02:14:45Z
2018-09-08T02:33:41Z
2018-09-08T02:33:41Z
2018-09-08T03:14:07Z
Fix string format in test runner
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index aee7dba450a30..01fafd7219382 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -2394,7 +2394,7 @@ def wrapper(*args, **kwargs): raise else: skip("Skipping test due to lack of connectivity"...
`.format()` was expecting keyword arguments. Updated to match other skips nearby.
https://api.github.com/repos/pandas-dev/pandas/pulls/22598
2018-09-04T22:20:33Z
2018-09-06T19:42:42Z
2018-09-06T19:42:42Z
2018-09-06T19:42:49Z
Set hypothesis healthcheck
diff --git a/pandas/conftest.py b/pandas/conftest.py index a49bab31f0bc8..fdac045e67ffa 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -9,6 +9,11 @@ from pandas.compat import PY3 import pandas.util._test_decorators as td +import hypothesis +hypothesis.settings.suppress_health_check = (hypothesis.Health...
- [y] closes #22593 - [pending] tests added / passed - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [N/A] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22597
2018-09-04T22:20:22Z
2018-09-08T02:32:38Z
2018-09-08T02:32:37Z
2018-09-08T02:32:41Z
TST: add test to io/formats/test_to_html.py to close GH6131
diff --git a/pandas/tests/io/formats/test_to_html.py b/pandas/tests/io/formats/test_to_html.py index f69cac62513d4..845fb1ee3dc3a 100644 --- a/pandas/tests/io/formats/test_to_html.py +++ b/pandas/tests/io/formats/test_to_html.py @@ -1844,6 +1844,67 @@ def test_to_html_no_index_max_rows(self): </table>""") ...
- [x] closes #6131 - [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/22588
2018-09-04T16:00:39Z
2018-09-09T17:11:29Z
2018-09-09T17:11:29Z
2018-09-09T18:39:31Z
ENH: Replace skiprows with skip_rows to begin standardizing underscore usage in keyword arguments
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 2d4bdc7ae812a..abdd6fc438587 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -87,9 +87,9 @@ class ReadCSVSkipRows(BaseIO): goal_time = 0.2 fname = '__test__.csv' params = [None, 10000] -...
By [my rough count](https://docs.google.com/spreadsheets/d/1h_iQ5Pexs5SuCT2pfbN8OH6ld6ZyvWqTEaH2W-xkEJE/edit?usp=sharing), the [`read_csv`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html) method has nearly 50 keyword arguments. Of those, 32 arguments are made up or two or more words. Twe...
https://api.github.com/repos/pandas-dev/pandas/pulls/22587
2018-09-04T14:59:27Z
2018-11-23T03:52:03Z
null
2018-11-23T03:52:03Z
Update ecosystem.rst to include Pint
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index ad389bbe35b71..99bac2a555a08 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -338,6 +338,16 @@ found in NumPy or pandas, which work well with pandas' data containers. Cyberpandas provides an extension type for storing arrays...
We are working on upgrading pint to be compatible with pandas, see https://github.com/hgrecco/pint/pull/684 I am guessing that the line in the docs, > If you’re building a library that implements the interface, please publicize it on Extension Data Types. meant something like this pull request. If that's compl...
https://api.github.com/repos/pandas-dev/pandas/pulls/22582
2018-09-03T16:13:15Z
2018-12-19T12:17:33Z
null
2020-07-07T22:42:02Z
Add 'name' as argument for index 'to_frame' method
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 232f879285543..3dfb0f70b8142 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -184,6 +184,7 @@ Other Enhancements - :class:`DatetimeIndex` gained :attr:`DatetimeIndex.timetz` attribute. Returns loc...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Since series `to_frame` method has a `name` argument, I believe it makes sense for index also have it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22580
2018-09-03T11:19:23Z
2018-09-14T04:45:16Z
2018-09-14T04:45:16Z
2018-09-14T12:36:17Z
BUG: fix failing DataFrame.loc when indexing with an IntervalIndex
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 1979bde796452..3770e130e4dad 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -669,6 +669,7 @@ Indexing - Bug where indexing with a Numpy array containing negative values would mutate the indexer (...
- [x] closes #19977 - [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/22576
2018-09-02T17:06:47Z
2018-09-08T02:52:59Z
2018-09-08T02:52:59Z
2018-09-13T18:53:00Z
CLN: tests for str.cat
diff --git a/pandas/tests/test_strings.py b/pandas/tests/test_strings.py index ab508174fa4a9..c238abdd32f5d 100644 --- a/pandas/tests/test_strings.py +++ b/pandas/tests/test_strings.py @@ -144,71 +144,50 @@ def test_cat(self): with tm.assert_raises_regex(ValueError, rgx): strings.str_cat(one, 'thr...
Cleaning up some left-overs from #20347 and preparing the tests for changing the default of `join` to `'left'` in 1.0 (which would break some tests that assume no alignment currently). As a side benefit, this has: * nicer parametrization * nicer switches (and reduced usage of them within the tests) * now follows `re...
https://api.github.com/repos/pandas-dev/pandas/pulls/22575
2018-09-02T00:36:07Z
2018-09-08T03:05:50Z
2018-09-08T03:05:50Z
2018-09-09T21:23:30Z
CLN: Rename 'n' to 'repeats' in .repeat methods
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 7ed92935a0991..1c820c5bcd114 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -527,6 +527,7 @@ Removal of prior version deprecations/changes - Several private functions were removed from the (non-p...
For `Index` and `MultiIndex`. xref #14645.
https://api.github.com/repos/pandas-dev/pandas/pulls/22574
2018-09-02T00:29:05Z
2018-09-04T11:13:35Z
2018-09-04T11:13:35Z
2018-09-05T03:53:01Z
CLN: Remove unused variable in test_reshape.py
diff --git a/pandas/tests/indexes/multi/test_reshape.py b/pandas/tests/indexes/multi/test_reshape.py index 85eec6a232180..efa9fca752157 100644 --- a/pandas/tests/indexes/multi/test_reshape.py +++ b/pandas/tests/indexes/multi/test_reshape.py @@ -126,5 +126,5 @@ def test_delete_base(idx): assert result.name == expec...
Title is self-explanatory.
https://api.github.com/repos/pandas-dev/pandas/pulls/22573
2018-09-02T00:16:39Z
2018-09-02T01:17:51Z
2018-09-02T01:17:51Z
2018-09-02T01:17:53Z
Use dispatch_to_series where possible
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 74f760f382c76..d577cfbbd460d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4806,13 +4806,14 @@ def _arith_op(left, right): return ops.dispatch_to_series(this, other, _arith_op) else: result = _arith_op(t...
Broken off from #22534, since that ended up surfacing a bug elsewhere.
https://api.github.com/repos/pandas-dev/pandas/pulls/22572
2018-09-01T17:27:14Z
2018-09-05T11:29:54Z
2018-09-05T11:29:54Z
2018-09-05T13:43:02Z
DOC: Updating str_repeat docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..776058bd45d22 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -675,20 +675,42 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True): def str_repeat(arr, repeats): """ - Duplicate each stri...
https://api.github.com/repos/pandas-dev/pandas/pulls/22571
2018-09-01T14:30:12Z
2018-09-18T12:40:46Z
2018-09-18T12:40:46Z
2018-10-04T16:08:24Z
DOC: Updating str_pad docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..c32431ac253b2 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1314,23 +1314,57 @@ def str_index(arr, sub, start=0, end=None, side='left'): def str_pad(arr, width, side='left', fillchar=' '): """ - Pad strin...
Added Examples to docstring. Added documentation to each part of docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/22570
2018-09-01T14:29:42Z
2018-09-25T16:49:13Z
2018-09-25T16:49:13Z
2018-09-25T17:16:07Z
DOC: Updating str_slice docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 861739f6c694c..5a23951145cb4 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1437,17 +1437,69 @@ def str_rsplit(arr, pat=None, n=None): def str_slice(arr, start=None, stop=None, step=None): """ - Slice substrings from eac...
Added Examples to docstring. Added documentation to each part of docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/22569
2018-09-01T14:29:01Z
2018-10-04T18:56:00Z
2018-10-04T18:56:00Z
2018-10-04T19:13:49Z
DOC: Updating str_slice docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..3796abafada2b 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1314,8 +1314,8 @@ def str_index(arr, sub, start=0, end=None, side='left'): def str_pad(arr, width, side='left', fillchar=' '): """ - Pad strings...
Added Examples to docstring. Added documentation to each part of docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/22568
2018-09-01T14:04:16Z
2018-09-01T14:26:58Z
null
2018-09-02T06:16:31Z
DOC: Updating str_pad docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..98216c3a7455e 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -1314,21 +1314,42 @@ def str_index(arr, sub, start=0, end=None, side='left'): def str_pad(arr, width, side='left', fillchar=' '): """ - Pad strin...
- [x ] tests added / passed - [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Pad documentation was describing a different behaviour, so I fixed it and added examples.
https://api.github.com/repos/pandas-dev/pandas/pulls/22567
2018-09-01T13:27:07Z
2018-09-01T14:27:41Z
null
2018-09-01T14:33:03Z
DOC: Updating str_repeat docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..6720510f19626 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -680,12 +680,35 @@ def str_repeat(arr, repeats): Parameters ---------- - repeats : int or array - Same value for all (int) or differen...
- [ x] tests passed - [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Updated the Docstring with examples for str.repeat()
https://api.github.com/repos/pandas-dev/pandas/pulls/22566
2018-09-01T12:51:49Z
2018-09-01T14:27:19Z
null
2023-05-11T01:18:13Z
DOC: Formatting in Series.str.extractall
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..75d3349f93540 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -942,19 +942,23 @@ def str_extractall(arr, pat, flags=0): Parameters ---------- - pat : string - Regular expression pattern with captu...
In Series.str.extractall, corrected the formatting in the return value and added a period at the end of the parameter descriptions. Can also clarify descriptions if useful. - [ ] closes #xxxx - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``...
https://api.github.com/repos/pandas-dev/pandas/pulls/22565
2018-09-01T12:34:03Z
2018-09-18T12:46:36Z
2018-09-18T12:46:36Z
2018-09-18T12:46:36Z
BUG: Fix (22477) dtype=str converts NaN to 'n'
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index da48d10e9ef58..ba29a17057d02 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1443,6 +1443,7 @@ Reshaping - Bug in :func:`merge_asof` where confusing error message raised when attempting to merge ...
- [x] closes #22477 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Now: ``` >>> import pandas as pd >>> result = pd.Series(index=range(5), dtype=str) >>> result 0 NaN 1 NaN 2 NaN 3 NaN 4 NaN dtype: object ``` This i...
https://api.github.com/repos/pandas-dev/pandas/pulls/22564
2018-09-01T12:08:09Z
2018-11-20T15:26:30Z
2018-11-20T15:26:30Z
2018-11-20T15:27:16Z
DOC: Deleted 'replaced' from Returns docstring
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..79122a677fd09 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -558,7 +558,10 @@ def str_replace(arr, pat, repl, n=-1, case=None, flags=0, regex=True): Returns ------- - replaced : Series/Index of objects...
Deleted the word 'replaced' from the Returns section of the docstring, since it is an unnecessary local variable name.
https://api.github.com/repos/pandas-dev/pandas/pulls/22563
2018-09-01T11:50:19Z
2018-09-02T16:07:00Z
2018-09-02T16:07:00Z
2018-09-02T16:07:48Z
DOC: fix return type of str.extract
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index e455c751057d1..e078f6ce3d5c7 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -854,8 +854,9 @@ def str_extract(arr, pat, flags=0, expand=True): pat : string Regular expression pattern with capturing groups. flags : ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22562
2018-09-01T09:53:33Z
2018-09-03T16:37:59Z
2018-09-03T16:37:59Z
2018-09-03T16:37:59Z
BUG: DataFrame.apply not adding a frequency if freq=None (#22150)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..fe74258325902 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -635,7 +635,7 @@ Datetimelike - Bug in :meth:`DataFrame.eq` comparison against ``NaT`` incorrectly returning ``True`` o...
- [x] closes #22150 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22561
2018-09-01T08:55:02Z
2018-09-18T12:29:00Z
2018-09-18T12:28:59Z
2018-09-18T12:29:02Z
ENH/BUG: Add is_dst method to DatetimeIndex and Timestamp to solve AmbiguousTimeError
diff --git a/doc/source/api.rst b/doc/source/api.rst index 77d37ec2a7b2e..ded4e1e3c55e9 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -582,6 +582,7 @@ These can be accessed like ``Series.dt.<property>``. Series.dt.to_pydatetime Series.dt.tz_localize Series.dt.tz_convert + Series.dt.is_dst ...
- [x] closes #18885 - [x] closes #18946 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The issues above required a new method to keep track if each timestamp in the `DatetimeIndex` was previously in daylight savings time in order to pass into ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22560
2018-09-01T02:05:04Z
2018-09-09T01:42:57Z
null
2018-09-26T17:11:16Z
TST: Continue collecting arithmetic tests
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index 9ede1a62aaf2e..d3957330f11e4 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -42,6 +42,30 @@ def test_operator_series_comparison_zerorank(self): expected = ...
This is split off of #22350, which may have been too ambitious. tests/test_arithmetic.py is moved to tests/arithmetic/test_timedelta64.py. Aside from being moved it is untouched.
https://api.github.com/repos/pandas-dev/pandas/pulls/22559
2018-09-01T01:07:59Z
2018-09-08T02:48:04Z
2018-09-08T02:48:04Z
2018-09-08T03:24:32Z
[ENH] pull in warning for dialect change from pandas-gbq
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..2ba4a6d58d20f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -170,9 +170,9 @@ Other Enhancements - :meth:`Series.droplevel` and :meth:`DataFrame.droplevel` are now implemented (:is...
- [x] ~closes~ towards https://github.com/pydata/pandas-gbq/issues/195 - [x] tests added / passed (N/A) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22557
2018-08-31T17:41:20Z
2018-09-18T12:29:48Z
2018-09-18T12:29:48Z
2018-09-18T12:29:51Z
DOC: Update Series min and max docstring. GH22459
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3a7016ce39676..9fa19a5e5329b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9589,7 +9589,7 @@ def _add_numeric_operations(cls): desc="Return the mean absolute deviation of the values " ...
- [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Doesn't pass all the tests, but can figure out where they come from. > Errors found: > Closing quotes should be placed in the line after the last text in the docstring (do not close the quotes in the same lin...
https://api.github.com/repos/pandas-dev/pandas/pulls/22554
2018-08-31T16:36:30Z
2018-12-09T20:46:37Z
null
2018-12-09T20:46:37Z
CLN: modernize string formatting
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index 42dda15ea2cbb..1efef480f3a29 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -55,8 +55,9 @@ cpdef map_indices_{{name}}(ndarray[{{c_type}}] index): Better to d...
Broken off from #22283. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22553
2018-08-31T15:01:08Z
2018-09-01T17:28:02Z
2018-09-01T17:28:02Z
2018-09-01T17:31:18Z
Correct assert_frame_equal doc string
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 1eedb9e2a8274..089e35e8e93b2 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1306,33 +1306,40 @@ def assert_frame_equal(left, right, check_dtype=True, check_categorical=True, check_lik...
Correct default values in assert_frame_equal doc string
https://api.github.com/repos/pandas-dev/pandas/pulls/22552
2018-08-31T13:36:39Z
2018-09-03T16:46:55Z
2018-09-03T16:46:55Z
2018-09-03T16:46:55Z
Fix incorrect DTI/TDI indexing; warn before dropping tzinfo
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 8445a28a51a5d..7d7dc7f0f17b5 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -525,6 +525,7 @@ Datetimelike API Changes - :class:`DateOffset` objects are now immutable. Attempting to alter one of t...
Slight hodge-podge. #21333 is about `to_period` method on DatetimeIndex silently dropping timezone info. This PR makes `DatetimeIndex.to_period` and `Timestamp.to_period` issue a warning when losing timezone info. #20464 is entirely unrelated, notes that `pd.date_range('1970-01-01', period=2).get_loc(pd.Timede...
https://api.github.com/repos/pandas-dev/pandas/pulls/22549
2018-08-31T03:12:23Z
2018-09-08T02:44:22Z
2018-09-08T02:44:21Z
2018-09-08T03:11:14Z
Typo: UCT -> UTC
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index a287557297cc9..f5d1007dfbbbb 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -2228,7 +2228,7 @@ To remove timezone from tz-aware ``DatetimeIndex``, use ``tz_localize(None)`` or didx.tz_convert(None) # tz_convert...
- [(no issue)] closes #xxxx - [(didn't change code)] tests added / passed - [(didn't change .py files)] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [(seems unnecessary)] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22548
2018-08-30T22:07:46Z
2018-08-31T10:00:27Z
2018-08-31T10:00:27Z
2018-08-31T10:00:30Z
CLN: use 'codes' rather than 'values' internally in Categorical
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index fa8ce61f1f4bc..9b7320bf143c2 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1736,7 +1736,7 @@ def fillna(self, value=None, method=None, limit=None): raise NotImplementedError...
In some places a variable has the name ``values``, where ``codes`` would be more logical, as we're dealing with codes. This makes it a bit easier to understand what we're looking at when reading IMO,
https://api.github.com/repos/pandas-dev/pandas/pulls/22547
2018-08-30T21:18:20Z
2018-08-31T10:01:27Z
2018-08-31T10:01:27Z
2018-08-31T10:02:47Z
DOC: Fix copy-pasted name in `.day_name` docstring
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 1dd34cdf73ab5..59d2f33b00c63 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -793,17 +793,27 @@ def month_name(self, locale=None): """ Return the month names of the DateTimeIndex ...
Just a small change... Feel free to close and include this change in any other typo-fixing commit if you like. :blush:
https://api.github.com/repos/pandas-dev/pandas/pulls/22544
2018-08-30T16:38:49Z
2018-09-08T03:02:22Z
2018-09-08T03:02:22Z
2018-09-08T03:02:26Z
Added capture_stderr decorator to test_validate_docstrings
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 1eedb9e2a8274..1f6214e64f9c2 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -673,7 +673,7 @@ def capture_stderr(f): AssertionError: assert 'foo\n' == 'bar\n' """ - @wraps(f) + @compat.wraps(f) def wrapper(*arg...
- [X] closes #22483 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Originally thought it would be nice to have this as a class decorator, but usage of this conflicts with the `capsys` fixture used by `test_bad_examples` so had to pick and choos...
https://api.github.com/repos/pandas-dev/pandas/pulls/22543
2018-08-30T15:13:19Z
2018-09-04T21:47:45Z
2018-09-04T21:47:45Z
2020-01-16T00:34:28Z
DOC: Improve the docstring of DataFrame.equals()
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 85bd6065314f4..dd5552151f61b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1303,8 +1303,85 @@ def __invert__(self): def equals(self, other): """ - Determines if two NDFrame objects contain the same elements....
- [X] closes #22462 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``` ################################################################################ ##################### Docstring (pandas.DataFrame.equals) ##################### ########...
https://api.github.com/repos/pandas-dev/pandas/pulls/22539
2018-08-30T01:41:21Z
2018-09-05T23:34:52Z
2018-09-05T23:34:52Z
2018-09-05T23:34:52Z
Bug Fix 21755
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 61dadd833be35..f71fee22e27eb 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1919,7 +1919,7 @@ def head(self, n=5): """ self._reset_group_selection() mask = self._cumcount_a...
Corrected the head and tail - [ ] closes partially #21755 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22536
2018-08-29T23:26:27Z
2018-08-30T00:02:28Z
null
2018-08-30T00:02:28Z
DEPR: deprecate integer add/sub with DTI/TDI/PI/Timestamp/Period
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index de111072bef02..22427e1ada1ad 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -955,6 +955,56 @@ Deprecations - :meth:`Timestamp.tz_localize`, :meth:`DatetimeIndex.tz_localize`, and :meth:`Series.tz...
Discussed in #21939; these operations cause headaches and internal-inconsistencies (e.g. ATM `Timedelta` is the only one of the related classes that doesn't support integer ops) - [x] closes #21939 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry...
https://api.github.com/repos/pandas-dev/pandas/pulls/22535
2018-08-29T18:12:08Z
2018-11-01T00:50:33Z
2018-11-01T00:50:33Z
2018-12-16T15:53:46Z
CLN: use dispatch_to_series where possible
A bunch of PRs touching DataFrame ops have gone through recently. This does some follow-up cleanup to unify the way things are done across a few different methods.
https://api.github.com/repos/pandas-dev/pandas/pulls/22534
2018-08-29T17:42:00Z
2018-09-08T03:03:12Z
null
2018-09-08T03:11:06Z
TST: Move tests/scripts to scripts/tests
diff --git a/Makefile b/Makefile index 4a82566cf726e..4a4aca21e1b78 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ build: clean_pyc python setup.py build_ext --inplace lint-diff: - git diff master --name-only -- "*.py" | grep "pandas" | xargs flake8 + git diff master --name-only -- "*.py" | grep -E "pandas...
Moves the `tests/scripts` directory to `scripts/tests`, as these tests don't really belong in the top-level `pandas` directory (they test the `scripts` directory, not `pandas`).
https://api.github.com/repos/pandas-dev/pandas/pulls/22531
2018-08-29T00:59:27Z
2018-09-01T21:56:36Z
2018-09-01T21:56:36Z
2018-09-01T21:57:47Z
CLN: remove unused np version check
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index fe993ecc0cdd7..fdcb41da46303 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -18,8 +18,6 @@ cnp.import_array() cimport util from lib import maybe_convert_objects -is_numpy_prior_1_6_2 = LooseVersion(np.__version__...
https://api.github.com/repos/pandas-dev/pandas/pulls/22530
2018-08-28T18:21:00Z
2018-08-29T11:00:54Z
2018-08-29T11:00:54Z
2018-08-29T13:40:40Z
TST: fixturize series/test_alter_axes.py
diff --git a/pandas/tests/series/conftest.py b/pandas/tests/series/conftest.py new file mode 100644 index 0000000000000..80a4e81c443ed --- /dev/null +++ b/pandas/tests/series/conftest.py @@ -0,0 +1,43 @@ +import pytest + +import pandas.util.testing as tm + +from pandas import Series + + +@pytest.fixture +def datetime_s...
- [x] prep for #22225, in the sense that it preempts (and splits off) the test-related changes that have been required on the DataFrame-side of the PR (see #22236) - [x] tests modified / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` In particular, it takes the fixture-like attributes...
https://api.github.com/repos/pandas-dev/pandas/pulls/22526
2018-08-28T06:23:12Z
2018-09-05T23:43:36Z
2018-09-05T23:43:36Z
2018-09-09T21:22:46Z
Updated condition to skip for pytables build issue on numpy 1.15 #22098
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index cb8ad5e3ea46f..a6f586c7f2638 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -16,6 +16,7 @@ _np_version_under1p14 = _nlv < LooseVersion('1.14') _np_version_under1p15 = _nlv < LooseVersion('1.15')...
- [ ] closes #22098 - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22522
2018-08-27T14:05:32Z
2018-08-31T10:09:40Z
2018-08-31T10:09:40Z
2018-08-31T10:09:42Z
TST: Streaming of S3 files
diff --git a/pandas/tests/io/test_s3.py b/pandas/tests/io/test_s3.py index 7a3062f470ce8..a2c3d17f8754a 100644 --- a/pandas/tests/io/test_s3.py +++ b/pandas/tests/io/test_s3.py @@ -1,3 +1,7 @@ +import pytest + +from pandas import read_csv +from pandas.compat import BytesIO from pandas.io.common import is_s3_url @@...
Issue #17135 was resolved by an upstream change, this is just a unit test to avoid regressions.
https://api.github.com/repos/pandas-dev/pandas/pulls/22520
2018-08-27T13:05:00Z
2018-08-29T12:26:44Z
2018-08-29T12:26:44Z
2018-08-29T12:39:27Z
API: Make .shift always copy (Fixes #22397)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index f2ec08c61a6d8..5621476d3d4e7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -544,6 +544,7 @@ Other API Changes - :class:`Index` subtraction will attempt to operate element-wise instead of raising...
- [x] closes #22397 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22517
2018-08-27T02:16:57Z
2018-09-15T12:25:21Z
2018-09-15T12:25:21Z
2018-09-15T17:53:00Z
DOC: Fix to_latex docstring.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 85bd6065314f4..1e2c0e17dad53 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2521,69 +2521,107 @@ def to_xarray(self): coords=coords, ) - _shared_docs['to_latex'...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Fix the DataFrame.to_latex docstring to match `scripts/validate_docstrings.py` as explained in #22459 and add an example. The docstring was previously in a variable that was only used in to_latex. I put it in the met...
https://api.github.com/repos/pandas-dev/pandas/pulls/22516
2018-08-26T19:32:47Z
2018-09-08T03:10:33Z
2018-09-08T03:10:33Z
2018-09-08T03:10:37Z
Fix test_sql pytest fixture warnings
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 824e5a2b23df3..e4df7043919ae 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -253,9 +253,13 @@ def _get_exec(self): else: return self.conn.cursor() - def _load_iris_data(self, datapath):...
- [y] closes #22338 - [y] tests added / passed - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` See Travis CI Python 3.6 build [before](https://travis-ci.org/pandas-dev/pandas/jobs/419432794) and [after](https://travis-ci.org/pandas-dev/pandas/jobs/420824121) my changes get rid of the warning f...
https://api.github.com/repos/pandas-dev/pandas/pulls/22515
2018-08-26T18:42:53Z
2018-09-14T01:54:18Z
2018-09-14T01:54:18Z
2018-09-14T01:54:18Z
BUG: Resample raises AmbiguousTimeError if index starts or ends on DST
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3e22084d98234..ade395b15cd47 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -615,6 +615,7 @@ Timezones - Bug when setting a new value with :meth:`DataFrame.loc` with a :class:`DatetimeIndex` with...
- [x] closes #10117 - [x] closes #19375 - [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/22514
2018-08-26T18:31:31Z
2018-08-27T03:24:02Z
null
2018-09-09T17:06:23Z
CLN: use self.dtype internally in Categorical
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index c4144d2e8b086..fa8ce61f1f4bc 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -500,8 +500,7 @@ def _from_sequence(cls, scalars, dtype=None, copy=False): def copy(self): """ Cop...
Some clean-up that makes the code a bit easier to read IMO.
https://api.github.com/repos/pandas-dev/pandas/pulls/22513
2018-08-26T17:23:50Z
2018-08-30T19:42:21Z
2018-08-30T19:42:21Z
2018-08-30T19:58:09Z
ENH: better MultiIndex.__repr__
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index 0e68cddde8bc7..fb9b9db428e34 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -182,15 +182,15 @@ on a deeper level. Defined Levels ~~~~~~~~~~~~~~ -The repr of a ``MultiIndex`` shows ...
closes #13480 closes #12423 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Proposal to make a new repr for MultiIndex. Displaying MultiIndex will be based on displaying vertically stacked tuples, as discussed in #13480. This makes it easier t...
https://api.github.com/repos/pandas-dev/pandas/pulls/22511
2018-08-26T08:00:56Z
2019-06-19T01:05:34Z
2019-06-19T01:05:34Z
2019-06-19T01:06:02Z
DOC: Update series apply docstring. GH22459
diff --git a/pandas/core/series.py b/pandas/core/series.py index 36ca2c0c6e097..c9b1a2c45eab3 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -3288,23 +3288,27 @@ def transform(self, func, axis=0, *args, **kwargs): def apply(self, func, convert_dtype=True, args=(), **kwds): """ - ...
- [X] refs #22459 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Updated `Series.apply` docstring to resolve errors raised from scripts/validate_docstrings.py from #22459.
https://api.github.com/repos/pandas-dev/pandas/pulls/22510
2018-08-26T03:07:06Z
2018-11-24T20:00:47Z
2018-11-24T20:00:47Z
2018-11-24T20:00:58Z
BUG: silent overflow in DateTimeArray subtraction
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3e22084d98234..21e45294c87a3 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -582,6 +582,7 @@ Datetimelike - Bug in :class:`DataFrame` comparisons against ``Timestamp``-like objects failing to rai...
- [x] closes #22492 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22508
2018-08-26T01:07:01Z
2018-08-31T10:10:59Z
2018-08-31T10:10:59Z
2018-08-31T20:11:08Z
Fix DataFrame.to_string() justification (2)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 6c91b6374b8af..c067adc8936a2 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -762,6 +762,7 @@ I/O - :func:`read_sas()` will correctly parse sas7bdat files with many columns (:issue:`22628`) - :fu...
- [x] closes #16839, closes #13032 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry 'Competes' with #22437 which attempts to revert `% d` to `%d` as suggested here: https://github.com/pandas-dev/pandas/issues/13032#issue-151973347 That turned o...
https://api.github.com/repos/pandas-dev/pandas/pulls/22505
2018-08-25T14:24:20Z
2018-09-25T12:55:05Z
2018-09-25T12:55:05Z
2018-09-25T12:55:09Z
DOC: Updated docstrings related to DateTimeIndex. GH22459
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index f87059ba1f017..33a234c74d01e 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1413,7 +1413,8 @@ def date_range(start=None, end=None, periods=None, freq=None, tz=None, >>> pd.date_range(s...
- [ ] closes #xxxx - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Updated `pandas.date_range` and `pandas.bdate_range` docstrings to resolve errors raised from `scripts/validate_docstrings.py` from #22459. Also added an example to `pandas.bdate...
https://api.github.com/repos/pandas-dev/pandas/pulls/22504
2018-08-25T10:29:06Z
2018-11-04T14:59:20Z
2018-11-04T14:59:20Z
2018-11-04T14:59:24Z
CLN: Remove versionadded in groupby.rst
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index cf8ba84ecd4f8..fecc336049a40 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -103,8 +103,6 @@ consider the following ``DataFrame``: .. note:: - .. versionadded:: 0.20 - A string passed to ``groupby`` may refer to either a ...
Follow-up to https://github.com/pandas-dev/pandas/pull/22415#pullrequestreview-148462071.
https://api.github.com/repos/pandas-dev/pandas/pulls/22503
2018-08-25T09:11:46Z
2018-08-28T12:04:47Z
2018-08-28T12:04:47Z
2018-08-28T19:26:01Z
Bug: exporting data frames to excel using xlsxwriter with option cons…
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 32085332caf40..c1259019b7efe 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -671,6 +671,7 @@ Missing - Bug in :func:`DataFrame.fillna` where a ``ValueError`` would raise when one column contained...
…tant_memory set to true, most of the cells are empty. Now raises NotImlementedError. #15392 - [x] closes #15392 - [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/22502
2018-08-24T21:54:56Z
2018-11-23T03:34:00Z
null
2018-11-23T03:34:00Z
CI: Bump to NumPy compat to 1.9.3
diff --git a/ci/circle-27-compat.yaml b/ci/circle-27-compat.yaml index b5be569eb28a4..5e9842f4742c5 100644 --- a/ci/circle-27-compat.yaml +++ b/ci/circle-27-compat.yaml @@ -7,7 +7,7 @@ dependencies: - cython=0.28.2 - jinja2=2.8 - numexpr=2.4.4 # we test that we correctly don't use an unsupported numexpr - - n...
1.9.2 doesn't seem to be available in `/pkgs/main`. We're seeing errors like ``` ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory ``` when importing numpy. Switching to 1.9.3 (which is available in main) solves that for me locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/22499
2018-08-24T13:41:26Z
2018-08-24T14:20:12Z
2018-08-24T14:20:12Z
2018-08-24T14:26:30Z
CLN: Simplify read_csv tz offset parsing
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 08fb0172adcff..8d37bf4c84d5d 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -1632,19 +1632,17 @@ def _infer_types(self, values, na_values, try_num_bool=True): if try_num_bool: try: - result = lib.maybe...
I _think_ after #22457 we do not need the `np.asarray` calls that were introduced in #22380
https://api.github.com/repos/pandas-dev/pandas/pulls/22494
2018-08-24T04:43:59Z
2018-08-29T12:31:53Z
2018-08-29T12:31:53Z
2018-08-29T15:56:04Z
BUG:reorder type check/conversion so wide_to_long handles str arg for…
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 618d7454c67fe..9d559acfa59e7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -802,6 +802,7 @@ Reshaping - Bug in :meth:`DataFrame.replace` raises ``RecursionError`` when replacing empty lists (:is...
closes #22468 - [x] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22490
2018-08-23T22:17:05Z
2018-09-23T20:11:03Z
2018-09-23T20:11:03Z
2018-09-24T01:28:42Z
Wrong error message in HDFStore.append
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index c57b1c3e211f6..27cce20e9d319 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1732,10 +1732,11 @@ def validate_col(self, itemsize=None): itemsize = self.itemsize if c.itemsize < itemsize: ...
Updated pytables.py to clarify error message when appending dataframe with None item in previously string-only column - [ ] closes #16300 - [ ] tests passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22489
2018-08-23T21:21:18Z
2018-08-24T14:53:34Z
null
2018-08-24T14:53:34Z
BUG: resample with TimedeltaIndex, fenceposts are off
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3a360b09ae789..1979bde796452 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -709,6 +709,7 @@ Groupby/Resample/Rolling datetime-like index leading to incorrect results and also segfault. (:issue...
- [x] closes #13022 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22488
2018-08-23T19:59:09Z
2018-09-05T11:31:04Z
2018-09-05T11:31:04Z
2018-09-05T11:31:07Z
API: better error-handling for df.set_index
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 2c142bdd7185b..d3cc0dfc866ed 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -714,6 +714,8 @@ Other API Changes - :class:`pandas.io.formats.style.Styler` supports a ``number-format`` property when...
- [x] closes #22484 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry split off of #22236, and so builds on top of it.
https://api.github.com/repos/pandas-dev/pandas/pulls/22486
2018-08-23T15:18:46Z
2018-10-19T13:13:39Z
2018-10-19T13:13:38Z
2018-10-22T14:16:10Z
BUG: loffset has no effect when passing in a numpy.timedelta64
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 7ed92935a0991..2bfc57d7f5dcd 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -707,6 +707,7 @@ Groupby/Resample/Rolling - Multiple bugs in :func:`pandas.core.Rolling.min` with ``closed='left'` and ...
- [x] closes #7687 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22482
2018-08-23T12:52:52Z
2018-09-04T11:09:18Z
2018-09-04T11:09:18Z
2018-09-04T11:09:21Z
BUG: fix Series(extension array) + extension array values addition
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 8171840c96b6e..a02152a123b48 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -1218,7 +1218,7 @@ def dispatch_to_extension_op(op, left, right): new_right = [new_right] new_right = list(new_right) elif is_extensi...
- [x] closes #22478 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22479
2018-08-23T04:57:40Z
2018-10-03T07:28:08Z
2018-10-03T07:28:07Z
2018-10-03T11:51:01Z
DOC: Fix DataFrame.to_csv docstring and add an example. GH22459
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 85bd6065314f4..6039da839010a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9359,80 +9359,100 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None, quotechar='"', line_terminator='\n', chunksi...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fix the DataFrame.to_csv docstring to match `scripts/validate_docstrings.py` as explained in #22459. I also added an example. Is the whatsnew entry needed for documentation too? ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22475
2018-08-23T01:39:36Z
2018-09-23T15:32:58Z
2018-09-23T15:32:58Z
2018-09-24T09:29:02Z
DOC: Updating Series.agg docstring
diff --git a/ci/doctests.sh b/ci/doctests.sh index fee33a0f93f40..2af5dbd26aeb1 100755 --- a/ci/doctests.sh +++ b/ci/doctests.sh @@ -28,7 +28,7 @@ if [ "$DOCTEST" ]; then fi pytest --doctest-modules -v pandas/core/series.py \ - -k"-agg -map -nlargest -nonzero -nsmallest -reindex -searchsorted -to_dic...
With reference to: #22459. I have fixed up the agg/map doc strings for `pandas/core/series.py` so they now pass our doc tests. CC @jorisvandenbossche Thanks,
https://api.github.com/repos/pandas-dev/pandas/pulls/22474
2018-08-23T00:19:44Z
2018-08-24T07:28:07Z
2018-08-24T07:28:07Z
2018-08-26T18:33:41Z
WIP: Fix tuple indexing
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f0635014b166b..3ec92e4be3faf 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -298,6 +298,10 @@ def __setstate__(self, state): def _slice(self, slicer): """ return a slice of my valu...
- [ y] closes #21360 - [ y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22472
2018-08-22T23:15:04Z
2018-08-26T18:45:13Z
null
2018-08-26T18:45:13Z
BUG: resample Grouper in a list grouping on a column with NaT throws an error
diff --git a/pandas/tests/groupby/test_grouping.py b/pandas/tests/groupby/test_grouping.py index 58e9797dbeea5..737e8a805f3ce 100644 --- a/pandas/tests/groupby/test_grouping.py +++ b/pandas/tests/groupby/test_grouping.py @@ -534,6 +534,23 @@ def test_grouping_labels(self, mframe): exp_labels = np.array([2, 2, ...
- [x] closes #14715 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22470
2018-08-22T20:53:16Z
2018-08-28T12:22:29Z
2018-08-28T12:22:28Z
2018-08-28T12:22:32Z
remove numpy_helper and some unneeded util functions
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index b7a1471ae5a9e..9c906a00bd4fe 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -104,10 +104,7 @@ cdef class IndexEngine: loc = self.get_loc(key) value = convert_scalar(arr, value) - if PySlice_Check(loc) or u...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22469
2018-08-22T17:36:20Z
2018-08-29T12:43:57Z
2018-08-29T12:43:57Z
2018-08-29T13:41:04Z
TEST: groupby(as_index=False, sort=False).aggregate formerly (?) gave unexpected results with a list-like function
diff --git a/pandas/tests/groupby/aggregate/test_other.py b/pandas/tests/groupby/aggregate/test_other.py index 606539a564323..61db4cee1ab02 100644 --- a/pandas/tests/groupby/aggregate/test_other.py +++ b/pandas/tests/groupby/aggregate/test_other.py @@ -512,3 +512,14 @@ def test_agg_category_nansum(observed): if ob...
- [x] closes #18473 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22467
2018-08-22T15:08:05Z
2018-08-29T12:32:42Z
2018-08-29T12:32:42Z
2018-08-29T12:32:45Z
DOC: confusing wording in Dataframe.quantile, term 'a la`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 052952103e28c..b79c83cccd5ab 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7249,8 +7249,7 @@ def f(s): def quantile(self, q=0.5, axis=0, numeric_only=True, interpolation='linear'): """ - Return value...
- [x] closes #22463 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22464
2018-08-22T13:53:19Z
2018-08-22T13:54:23Z
2018-08-22T13:54:23Z
2023-03-06T06:03:58Z
BUG: Retain timezone information in to_datetime if box=False
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index d7feb6e547b22..0f5ef1caf1d96 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -237,7 +237,7 @@ without timezone localization. This is inconsistent from parsing the same datetime string with :class:...
- [x] closes #22446 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Don't think this requires a whatsnew entry since this was introduced in (and part of) #21822 which is slated for v0.24.0
https://api.github.com/repos/pandas-dev/pandas/pulls/22457
2018-08-22T06:58:21Z
2018-08-24T03:29:53Z
2018-08-24T03:29:53Z
2018-08-24T03:30:45Z
MAINT: Reset sys.path if docstrings import fails
diff --git a/pandas/tests/scripts/test_validate_docstrings.py b/pandas/tests/scripts/test_validate_docstrings.py index cebcbf5a61465..29da40cd78d22 100644 --- a/pandas/tests/scripts/test_validate_docstrings.py +++ b/pandas/tests/scripts/test_validate_docstrings.py @@ -471,6 +471,9 @@ def import_scripts(self): ...
Follow-up to https://github.com/pandas-dev/pandas/pull/22413#discussion_r211459766 cc @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/22456
2018-08-22T06:45:30Z
2018-08-22T10:03:49Z
2018-08-22T10:03:49Z
2018-08-25T06:07:35Z