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
TST: coverage for skipped tests in io/formats/test_to_html.py
diff --git a/pandas/tests/io/formats/test_to_html.py b/pandas/tests/io/formats/test_to_html.py index 845fb1ee3dc3a..035b2d4c3347c 100644 --- a/pandas/tests/io/formats/test_to_html.py +++ b/pandas/tests/io/formats/test_to_html.py @@ -1066,14 +1066,10 @@ def test_to_html_regression_GH6098(self): df.pivot_table(i...
- [ N/A] precursor to #22786 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ N/A] whatsnew entry There are currently 3 skipped tests in `io/formats/test_to_html.py`; `test_to_html_truncate`, `test_to_html_truncate_multi_index` and `test_to_html_truncate_multi_in...
https://api.github.com/repos/pandas-dev/pandas/pulls/22888
2018-09-29T18:16:02Z
2018-11-07T14:14:27Z
2018-11-07T14:14:27Z
2018-12-29T09:53:52Z
STYLE: Fix linting of benchmarks
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index cccd38ef11251..fc34440ece2ed 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -9,7 +9,7 @@ try: hashing = import_module(imp) break - except: + except (Import...
- [x] closes #22884 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixed the following: ` asv_bench/benchmarks/algorithms.py:12:5: E722 do not use bare except' asv_bench/benchmarks/timeseries.py:1:1: F401 'warnings' imported but unused as...
https://api.github.com/repos/pandas-dev/pandas/pulls/22886
2018-09-29T16:33:23Z
2018-09-30T06:48:41Z
2018-09-30T06:48:41Z
2018-09-30T06:48:55Z
BLD: Drop nonexistent dependency of _libs/parsers
diff --git a/setup.py b/setup.py index 2aca048dcd4fb..bfd0c50c9e9be 100755 --- a/setup.py +++ b/setup.py @@ -544,8 +544,7 @@ def srcpath(name=None, suffix='.pyx', subdir='src'): '_libs.parsers': { 'pyxfile': '_libs/parsers', 'depends': ['pandas/_libs/src/parser/tokenizer.h', - ...
Title is self-explanatory. Follow-up to #22469. Closes #22831.
https://api.github.com/repos/pandas-dev/pandas/pulls/22883
2018-09-29T09:53:44Z
2018-09-29T19:55:52Z
2018-09-29T19:55:51Z
2018-09-29T19:56:01Z
Remove bare exceptions from 'pandas/tests' to decrease flake8 E722 warnings
diff --git a/pandas/tests/indexing/common.py b/pandas/tests/indexing/common.py index 127548bdaf106..d21db0113cc44 100644 --- a/pandas/tests/indexing/common.py +++ b/pandas/tests/indexing/common.py @@ -151,7 +151,7 @@ def get_result(self, obj, method, key, axis): with catch_warnings(record=True): t...
Closes #22872 In my experience, the main reson to not catch bare exception is that thet progam has no way of using distinguisging keyboard exception (`crtl + C`) from regular exception. So I opted for ```python except Exception: ``` in cases where it's not clear what exception may happen or function wrapped...
https://api.github.com/repos/pandas-dev/pandas/pulls/22882
2018-09-28T20:56:05Z
2018-11-09T15:04:45Z
null
2018-11-09T15:04:45Z
Use align_method in comp_method_FRAME
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index a05ef67a7238f..6532c9f7f8a96 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -510,6 +510,88 @@ Previous Behavior: 0 0 NaT +.. _whatsnew_0240.api.dataframe_cmp_broadcasting: + +DataF...
Closes #20090 <b>update</b> Since #23000 was merged, some of the discussion is out of date. The bottom line remains unchanged: This PR makes DataFrame _comparison_ ops behave like DataFrame _arithmetic_ ops currently do. Also fixes some bugs e.g. #20090 <b> end update</b> This is a much nicer alternative to th...
https://api.github.com/repos/pandas-dev/pandas/pulls/22880
2018-09-28T18:53:16Z
2018-10-13T07:08:21Z
2018-10-13T07:08:21Z
2020-04-05T17:39:10Z
CLN: remove Index._to_embed
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index b42bbdafcab45..af04a846ed787 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1114,7 +1114,7 @@ def to_series(self, index=None, name=None): if name is None: name = self.name - return...
`_to_embed`'s dtype keyword was not used, and apart from that it was a trivial return of the `values`, and only used in `to_series`, so doesn't seem worth to have.
https://api.github.com/repos/pandas-dev/pandas/pulls/22879
2018-09-28T17:57:54Z
2018-10-02T15:11:11Z
2018-10-02T15:11:11Z
2018-10-02T15:11:13Z
COMPAT: mpl 3.0
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 481c31d2410a9..3e1711edb0f27 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -193,6 +193,8 @@ Other Enhancements - :meth:`Series.resample` and :meth:`DataFrame.resample` have gained the :meth:`Res...
Closes #22790
https://api.github.com/repos/pandas-dev/pandas/pulls/22870
2018-09-28T13:06:29Z
2018-09-28T15:06:16Z
2018-09-28T15:06:16Z
2018-09-28T17:59:41Z
BUG: astype(Int64) raises AttributeError
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index a4209ba90aaee..40dd48880e0eb 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -784,7 +784,8 @@ Numeric - Bug in :class:`Series` comparison against datetime-like scalars and arrays (:issue:`22074`) ...
- [x] closes #22578 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22869
2018-09-28T05:56:53Z
2018-10-10T11:43:50Z
2018-10-10T11:43:50Z
2018-10-10T11:43:53Z
API: 'D' and offset.Day always represents calendar day
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 2a6249bef112b..e0de41708324d 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -408,7 +408,7 @@ In practice this becomes very cumbersome because we often need a very long index with a large number of timestamps. If we need...
- [x] closes #22864 - [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/22867
2018-09-28T02:01:06Z
2018-12-18T06:17:51Z
null
2022-05-19T03:03:09Z
Add to_flat_index method to MultiIndex
diff --git a/doc/source/api.rst b/doc/source/api.rst index 665649aead33c..81bb420c47a99 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1724,6 +1724,7 @@ MultiIndex Components MultiIndex.set_levels MultiIndex.set_labels MultiIndex.to_hierarchical + MultiIndex.to_flat_index MultiIndex.to_f...
- [X] closes #19950 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Very simple implementation at the moment. The thought here is to introduce this method and perhaps subsequently extend to allow for string concatenation of the elements. Longer ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22866
2018-09-27T22:39:57Z
2018-11-13T16:57:19Z
2018-11-13T16:57:19Z
2018-11-13T16:58:51Z
Allow passing a mask to NanOps
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 232d030da7f1e..2884bc1a19491 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -1,12 +1,16 @@ -import itertools import functools +import itertools import operator import warnings from distutils.version import LooseVersion import num...
- [x] closes #22764 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] pytest --doctest-modules pandas/core/nanops.py - [TO DO] whatsnew entry Added Docs String and Examples to NanOps
https://api.github.com/repos/pandas-dev/pandas/pulls/22865
2018-09-27T21:32:30Z
2018-10-03T11:23:23Z
2018-10-03T11:23:22Z
2018-10-09T18:44:52Z
STYLE: Fixing and refactoring linting
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index cd610907007eb..c3a85d595eb59 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -3,9 +3,18 @@ scanner: diff_only: True # If True, errors caused by only the patch are shown +# Opened issue in pep8speaks, so we can directly use the config in setup.cfg +# (a...
- Wrong path `pandas/src` corrected (`.px.in` was not being tested) - Made more compact and readable - Unified the flake8 errors that are being ignored - Moving doctests and check_imports to `lint.sh` - Moving linting from py2.7 to py3.6
https://api.github.com/repos/pandas-dev/pandas/pulls/22863
2018-09-27T21:07:12Z
2018-10-09T19:27:45Z
2018-10-09T19:27:45Z
2018-10-09T19:27:45Z
REF: Make PeriodArray an ExtensionArray
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index e4b31b21b11ac..47fef83d3015d 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -145,11 +145,11 @@ Current Behavior: .. _whatsnew_0240.enhancements.interval: -Storing Interval Data in Series and ...
Closes #22862 Closes #14108 Closes #18053
https://api.github.com/repos/pandas-dev/pandas/pulls/22862
2018-09-27T19:43:06Z
2018-10-25T22:38:55Z
2018-10-25T22:38:54Z
2018-11-20T20:29:30Z
CI: Linting with azure instead of travis
diff --git a/.travis.yml b/.travis.yml index 6bbc44fba864a..03026647d6bb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,7 +52,7 @@ matrix: - python-gtk2 - dist: trusty env: - - JOB="3.6, lint, coverage" ENV_FILE="ci/deps/travis-36.yaml" PATTERN="not slow and not network" PANDAS_TESTING...
closes #22844 Moving all the linting, other code checks and doctests to azure.
https://api.github.com/repos/pandas-dev/pandas/pulls/22854
2018-09-27T13:28:20Z
2018-12-03T00:05:47Z
2018-12-03T00:05:47Z
2018-12-03T12:12:48Z
BUG: DatetimeIndex slicing with boolean Index raises TypeError
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 149d618c4a621..41ed6130f4077 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1221,7 +1221,7 @@ Indexing - Bug in `MultiIndex.set_levels` when levels value is not subscriptable (:issue:`23273`) -...
- [x] closes #22533 - [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/22852
2018-09-27T09:02:20Z
2018-11-07T14:08:16Z
2018-11-07T14:08:15Z
2018-11-08T02:08:18Z
Fix blank line skipping in read_fwf, issue 22693
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 481c31d2410a9..3da7c30a231df 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -767,6 +767,7 @@ I/O - :func:`read_sas()` will correctly parse sas7bdat files with data page types having also bit 7 se...
- [x] closes #22693 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Fixes the bug where blank lines are not skipped using read_fwf even when skip_blank_lines is set to true. Override default behaviour in FixedWidthFieldParser.
https://api.github.com/repos/pandas-dev/pandas/pulls/22849
2018-09-27T01:09:01Z
2018-11-23T03:30:02Z
null
2020-09-27T04:45:29Z
Adds triangular option to DataFrame.corr, closes #22840
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 707257a35983e..6aa7437f8084e 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -21,6 +21,7 @@ New features the user to override the engine's default behavior to include or omit the dataframe's inde...
Adds the `tri` argument to `DataFrame.corr`. - [ x ] closes #22840 - [ 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/22842
2018-09-26T19:22:00Z
2018-09-28T12:25:08Z
null
2018-09-28T12:33:34Z
DOC: Fix warnings in doc build
diff --git a/doc/source/api.rst b/doc/source/api.rst index e4b055c14ec27..073ed8a082a11 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2603,3 +2603,12 @@ objects. generated/pandas.Series.ix generated/pandas.Series.imag generated/pandas.Series.real + + +.. Can't convince sphinx to generate toct...
Split from https://github.com/pandas-dev/pandas/pull/22743 This has just the docs changes, not the doc build / CI changes, so I don't have to keep fixing merge conflicts.
https://api.github.com/repos/pandas-dev/pandas/pulls/22838
2018-09-26T14:27:09Z
2018-09-26T19:03:57Z
2018-09-26T19:03:57Z
2018-09-26T19:14:02Z
DOC: remove appveyor badge from readme
diff --git a/README.md b/README.md index bf90f76ae7bd1..f26b9598bb5d3 100644 --- a/README.md +++ b/README.md @@ -53,14 +53,6 @@ </a> </td> </tr> -<tr> - <td></td> - <td> - <a href="https://ci.appveyor.com/project/pandas-dev/pandas"> - <img src="https://ci.appveyor.com/api/projects/status/86vn83mxgnl4xf...
https://api.github.com/repos/pandas-dev/pandas/pulls/22829
2018-09-25T12:48:33Z
2018-09-25T12:48:40Z
2018-09-25T12:48:40Z
2018-09-25T12:48:40Z
Add Azure Pipelines badge to readme
diff --git a/README.md b/README.md index 3dde5e5e2a76e..bf90f76ae7bd1 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,14 @@ </a> </td> </tr> +<tr> + <td></td> + <td> + <a href="https://dev.azure.com/pandas-dev/pandas/_build/latest?definitionId=1&branch=master"> + <img src="https://dev.azure.com/p...
https://api.github.com/repos/pandas-dev/pandas/pulls/22828
2018-09-25T12:39:56Z
2018-09-25T12:46:48Z
2018-09-25T12:46:47Z
2018-09-25T13:55:35Z
DOC: fix a failing doctest in DataFrame.to_dict
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index eced3bf34e7c6..f2188e6bb56b8 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -118,7 +118,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then MSG='Doctests frame.py' ; echo $MSG pytest --doctest-modules -v pandas/core/frame.py \ - ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Based on #22459. Fix the docstring for DataFrame.to_dict. I also updated `ci/doctests.sh`.
https://api.github.com/repos/pandas-dev/pandas/pulls/22827
2018-09-25T02:42:12Z
2018-10-15T15:18:03Z
2018-10-15T15:18:03Z
2018-10-15T17:00:15Z
Loc enhancements
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 739ad6a3d278b..c5b147b152aa6 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -11,95 +11,110 @@ class NumericSeriesIndexing(object): goal_time = 0.2 - params = [Int64Index, Float64Ind...
- [x] closes #9466 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Improves performance of `IndexEngine.get_indexer_non_unique` by using binary search when: * the index is monotonically increassing, and * the length of the iterable loc key is ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22826
2018-09-25T01:15:56Z
2018-10-01T12:08:59Z
2018-10-01T12:08:59Z
2018-10-02T03:40:30Z
BUG: Merge timezone aware data with DST
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3e1711edb0f27..4d92de3084be3 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -812,6 +812,7 @@ Reshaping - Bug in :meth:`Series.replace` and meth:`DataFrame.replace` when dict is used as the ``to_r...
- [x] closes #18885 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry When merging timezone aware data using `where`, make the comparison in UTC to avoid relocalizing on an ambiguous time.
https://api.github.com/repos/pandas-dev/pandas/pulls/22825
2018-09-24T23:44:10Z
2018-10-01T12:12:36Z
2018-10-01T12:12:36Z
2018-10-01T16:44:31Z
WIP: Add summary statistics to the dataresource
diff --git a/pandas/io/json/table_schema.py b/pandas/io/json/table_schema.py index 2dc176648fb31..dcfc5db1e9db2 100644 --- a/pandas/io/json/table_schema.py +++ b/pandas/io/json/table_schema.py @@ -113,6 +113,8 @@ def convert_pandas_type_to_json_field(arr, dtype=None): field['tz'] = arr.dt.tz.zone ...
- [ ] closes - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Following the discussion in https://github.com/nteract/nteract/issues/3177, this adds summary statistics for folks using the dataresource. Our main concern is how this might affect pe...
https://api.github.com/repos/pandas-dev/pandas/pulls/22819
2018-09-24T13:06:45Z
2018-11-23T03:29:03Z
null
2018-11-23T03:29:04Z
DOC: fixup spacing in to_csv docstring (GH22475)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 9d19b02c4d1fb..19ac4b49358d4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9512,6 +9512,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None, path_or_buf : str or file handle, default None ...
Follow-up on https://github.com/pandas-dev/pandas/pull/22475
https://api.github.com/repos/pandas-dev/pandas/pulls/22816
2018-09-24T09:28:51Z
2018-09-24T12:32:08Z
2018-09-24T12:32:08Z
2018-09-24T12:32:12Z
ERR: Clarify location of EOF on unbalanced quotes
diff --git a/pandas/_libs/src/parser/tokenizer.c b/pandas/_libs/src/parser/tokenizer.c index da0a9f7498aa8..2fce241027d56 100644 --- a/pandas/_libs/src/parser/tokenizer.c +++ b/pandas/_libs/src/parser/tokenizer.c @@ -1150,7 +1150,7 @@ static int parser_handle_eof(parser_t *self) { case IN_QUOTED_FIELD: ...
* Clarifies message in the C engine (original issue) * Python's `csv` module no longer fires specific errors for that, so removed it from handling Closes #22789.
https://api.github.com/repos/pandas-dev/pandas/pulls/22814
2018-09-24T00:26:28Z
2018-09-25T16:38:54Z
2018-09-25T16:38:54Z
2018-09-28T08:01:33Z
BUG: Maintain column order with groupby.nth
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index d6f9bb66e1e28..02828ec431aac 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -288,6 +288,7 @@ Other Enhancements - Added :meth:`Interval.overlaps`, :meth:`IntervalArray.overlaps`, and :meth:`Inter...
- [ ] closes #20760 - [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/22811
2018-09-23T10:52:42Z
2018-11-20T01:10:52Z
2018-11-20T01:10:52Z
2018-12-08T13:05:42Z
BUG: DataFrame.to_dict when orient=index data loss
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index a1a0857fe6365..d4be2f60a9e7a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -373,6 +373,22 @@ is the case with :attr:`Period.end_time`, for example p.end_time +.. _whatsnew_0240.api_breaki...
- [x] closes #22801 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22810
2018-09-23T01:26:47Z
2018-10-11T13:09:06Z
2018-10-11T13:09:05Z
2018-10-11T13:09:10Z
BUG: Avoid AmbiguousTime or NonExistentTime Error when resampling
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index ed1bf0a4f8394..31ef70703e2ca 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -679,6 +679,7 @@ Timezones - Bug when setting a new value with :meth:`DataFrame.loc` with a :class:`DatetimeIndex` with...
- [x] closes #19375 - [x] closes #10117 - [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/22809
2018-09-22T22:58:48Z
2018-09-23T12:11:02Z
2018-09-23T12:11:02Z
2018-09-23T16:18:45Z
BUG: Hashtable size hint cap
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 5213120b33f06..f2dc4c089c79f 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1828,6 +1828,7 @@ Groupby/Resample/Rolling - Calling :meth:`pandas.core.groupby.GroupBy.rank` with empty groups and ``...
- [x] closes #22729 - [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/22805
2018-09-22T13:44:31Z
2019-01-15T12:33:24Z
2019-01-15T12:33:23Z
2019-01-15T12:33:27Z
BUG: Fix json_normalize throwing TypeError when record_path has a sequence of dicts #22706
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 3a01c913ffbd5..c9e01694ef90d 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1495,6 +1495,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :meth:`Dat...
- [x] closes #22706 - [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/22804
2018-09-22T02:59:21Z
2018-12-13T20:25:51Z
2018-12-13T20:25:50Z
2018-12-13T20:25:51Z
Fix Timestamp.round errors
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 6c91b6374b8af..fde7c20f7beba 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -646,6 +646,7 @@ Datetimelike - Bug in :class:`DatetimeIndex` subtraction that incorrectly failed to raise ``OverflowEr...
- [x] closes #22591 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry - [x] rebase for the new `ambiguous` kwarg, resolve conflicts.
https://api.github.com/repos/pandas-dev/pandas/pulls/22802
2018-09-21T20:11:57Z
2018-10-01T12:10:50Z
2018-10-01T12:10:50Z
2018-10-01T21:13:50Z
Enforce flake8 E741
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index fda26d87bf7f6..cd610907007eb 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -8,5 +8,4 @@ pycodestyle: ignore: # Errors and warnings to ignore - E402, # module level import not at top of file - E731, # do not assign a lambda expression...
Enforce flake8 E741 #19496 ( Was added here ) But running `flake8 --select E741` returns nothing Looks like this is a valid flake8 rule: ( unless im looking at the wrong docs ) https://lintlyci.github.io/Flake8Rules/
https://api.github.com/repos/pandas-dev/pandas/pulls/22795
2018-09-20T20:31:10Z
2018-09-20T21:21:10Z
2018-09-20T21:21:10Z
2018-09-21T13:58:09Z
DOC: Updating Series.autocorr docstring
diff --git a/pandas/core/series.py b/pandas/core/series.py index fdb9ef59c1d3e..eef64fe68c360 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2021,7 +2021,10 @@ def diff(self, periods=1): def autocorr(self, lag=1): """ - Lag-N autocorrelation + Compute the lag-N autocorr...
- [ ] 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/22787
2018-09-20T14:26:05Z
2018-09-26T11:50:53Z
2018-09-26T11:50:53Z
2018-09-26T11:50:57Z
BUG: to_html misses truncation indicators (...) when index=False
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 9275357e5ad18..7c98da440e1bf 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1319,6 +1319,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`read_sas()...
- [x] closes #15019 - [x] closes #22783 - [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/22786
2018-09-20T14:09:21Z
2018-11-15T13:49:18Z
2018-11-15T13:49:17Z
2018-11-17T00:34:25Z
Preserve Extension type on cross section
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 0e591e180e078..707257a35983e 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -500,6 +500,7 @@ ExtensionType Changes - :meth:`Series.combine()` works correctly with :class:`~pandas.api.extensions.E...
closes #22784 Builds on #22780 (first commit). 0197e0c has the relevant changes.
https://api.github.com/repos/pandas-dev/pandas/pulls/22785
2018-09-20T13:50:36Z
2018-09-26T14:27:53Z
2018-09-26T14:27:53Z
2018-09-26T14:27:56Z
Update dsintro.rst
diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst index efa52a6f7cfe2..bb6845057ba87 100644 --- a/doc/source/dsintro.rst +++ b/doc/source/dsintro.rst @@ -366,13 +366,56 @@ dictionary. .. _basics.dataframe.from_series: -From a Series -~~~~~~~~~~~~~ +From a Pandas Series +~~~~~~~~~~~~~~~~~~~~ The resul...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] Added examples to create DataFrame from series and series with `nan`
https://api.github.com/repos/pandas-dev/pandas/pulls/22781
2018-09-20T12:11:41Z
2018-09-23T13:35:24Z
null
2018-09-23T13:35:24Z
ENH: is_homogeneous
diff --git a/pandas/core/base.py b/pandas/core/base.py index d831dc69338bd..26fea89b45ae1 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -663,6 +663,21 @@ def transpose(self, *args, **kwargs): T = property(transpose, doc="return the transpose, which is by " "definiti...
Split https://github.com/pandas-dev/pandas/pull/22325 @jorisvandenbossche suggested moving this off of the BlockManager. Right now, I've made this public. Do we want that? If so I'll add to api.rst, release note, etc. Otherwise, I'll make it private.
https://api.github.com/repos/pandas-dev/pandas/pulls/22780
2018-09-20T11:53:14Z
2018-09-20T16:22:46Z
2018-09-20T16:22:46Z
2018-09-21T07:25:34Z
DOC: Fix outdated default values in util.testing docstrings
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index edd0b0aa82d23..3db251e89842d 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -225,7 +225,7 @@ def assert_almost_equal(left, right, check_dtype="equiv", ---------- left : object right : object - check_dtype : bool / ...
- [ ] 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/22776
2018-09-19T23:28:13Z
2018-09-20T14:31:15Z
2018-09-20T14:31:15Z
2018-09-20T19:54:04Z
DOC: update the DataFrame.reindex_like docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 572bb3668caf8..4a8d40893c9a3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3926,22 +3926,36 @@ def shift(self, periods=1, freq=None, axis=0): def set_index(self, keys, drop=True, append=False, inplace=False, verify...
- [x] The PEP8 style check passes: git diff upstream/master -u -- "*.py" | flake8 --diff - [x] The html version looks good: python doc/make.py --single <your-function-or-method> - [ ] The validation script passes: scripts/validate_docstrings.py <your-function-or-method> Errors due to the fact that this method `.rein...
https://api.github.com/repos/pandas-dev/pandas/pulls/22775
2018-09-19T23:05:50Z
2018-11-26T23:12:14Z
2018-11-26T23:12:13Z
2018-11-26T23:12:26Z
DOC: Reorders DataFrame.any and all docstrings to match function signature
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3f7334131e146..75baeab402734 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9671,15 +9671,15 @@ def _doc_parms(cls): original index. * None : reduce all axes, return a scalar. +bool_only : boolean, default None + I...
This PR updates the docstrings for `DataFrame.any` and `DataFrame.all` to match the corresponding function signatures. Specifically, the `bool_only` parameter was moved to be the seconds parameter in the docstring.
https://api.github.com/repos/pandas-dev/pandas/pulls/22774
2018-09-19T22:22:22Z
2018-09-20T14:52:53Z
2018-09-20T14:52:53Z
2018-09-20T15:55:03Z
TST: Fixturize series/test_asof.py
diff --git a/pandas/tests/series/test_asof.py b/pandas/tests/series/test_asof.py index 3104d85601434..e85a0ac42ae1a 100644 --- a/pandas/tests/series/test_asof.py +++ b/pandas/tests/series/test_asof.py @@ -8,10 +8,8 @@ import pandas.util.testing as tm -from .common import TestData - -class TestSeriesAsof(TestData...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22772
2018-09-19T18:09:43Z
2018-09-23T12:37:42Z
2018-09-23T12:37:42Z
2018-09-23T21:23:38Z
TST: Fixturize series/test_arithmetic.py
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index 37ba1c91368b3..b29eb6f62f96f 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -24,13 +24,12 @@ def test_ser_flex_cmp_return_dtypes(self, opname): tm.assert_serie...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22771
2018-09-19T17:57:58Z
2018-11-23T03:24:36Z
null
2018-11-23T03:24:37Z
CI: Publish test summary
diff --git a/ci/azure/macos.yml b/ci/azure/macos.yml index 25b66615dac7e..5bf8d18d6cbb9 100644 --- a/ci/azure/macos.yml +++ b/ci/azure/macos.yml @@ -37,3 +37,7 @@ jobs: - script: | export PATH=$HOME/miniconda3/bin:$PATH source activate pandas && pushd /tmp && python -c "import pandas; pandas.show...
xref #22766
https://api.github.com/repos/pandas-dev/pandas/pulls/22770
2018-09-19T17:53:35Z
2018-09-19T18:31:12Z
2018-09-19T18:31:11Z
2018-09-20T05:28:14Z
TST: Fixturize series/test_apply.py
diff --git a/pandas/tests/series/test_apply.py b/pandas/tests/series/test_apply.py index b717d75d835d0..20215279cf031 100644 --- a/pandas/tests/series/test_apply.py +++ b/pandas/tests/series/test_apply.py @@ -17,18 +17,18 @@ import pandas.util.testing as tm from pandas.conftest import _get_cython_table_params -from...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22769
2018-09-19T17:50:14Z
2018-09-23T13:42:15Z
2018-09-23T13:42:15Z
2018-09-23T13:42:19Z
TST: Fixturize series/test_api.py
diff --git a/pandas/tests/series/test_api.py b/pandas/tests/series/test_api.py index 3b82242626c20..769cd2e0b76e8 100644 --- a/pandas/tests/series/test_api.py +++ b/pandas/tests/series/test_api.py @@ -20,8 +20,6 @@ ensure_clean) import pandas.util.testing as tm -from .common import ...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22768
2018-09-19T17:38:49Z
2018-11-01T01:33:38Z
null
2018-11-01T01:33:39Z
DOC: fix DataFrame.isin docstring and doctests
diff --git a/ci/doctests.sh b/ci/doctests.sh index 48774a1e4d00d..b3d7f6785815a 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"-axes -combine -isin -itertuples -join -nl...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Based on #22459. Fix the docstring for DataFrame.isin. I also updated `ci/doctests.sh`.
https://api.github.com/repos/pandas-dev/pandas/pulls/22767
2018-09-19T17:20:24Z
2018-09-25T13:07:52Z
2018-09-25T13:07:52Z
2018-09-25T13:08:02Z
CI: Fix travis CI
diff --git a/.travis.yml b/.travis.yml index a180e83eeec21..40baee2c03ea0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,7 @@ matrix: # Exclude the default Python 3.5 build - python: 3.5 + include: - dist: trusty env: - JOB="3.7" ENV_FILE="ci/travis-37.yaml" TEST_ARGS="-...
I messed up in #22760 and accidentally disabled travis. cc @jreback (going to just merge this though)
https://api.github.com/repos/pandas-dev/pandas/pulls/22765
2018-09-19T15:49:10Z
2018-09-19T15:49:37Z
2018-09-19T15:49:37Z
2018-09-19T16:08:50Z
ENH: add groupby & reduce support to EA
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3d82dd042da20..29b766e616b3b 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -48,7 +48,7 @@ Pandas has gained the ability to hold integer dtypes with missing values. This l Here is an example of t...
closes #21789 closes #22346 xref #22865
https://api.github.com/repos/pandas-dev/pandas/pulls/22762
2018-09-19T13:31:08Z
2018-10-12T12:19:59Z
2018-10-12T12:19:58Z
2018-10-12T12:31:20Z
DOC: Add cookbook entry using callable method for DataFrame.corr
diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index a4dc99383a562..21c8ab4128188 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -1223,6 +1223,42 @@ Computation `Numerical integration (sample-based) of a time series <http://nbviewer.ipython.org/5720498>`__ +Correlation +******...
Provides a cookbook entry using the callable method option for `DataFrame.corr` (PR #22684) to calculate a distance correlation matrix. (Related: issue #22402)
https://api.github.com/repos/pandas-dev/pandas/pulls/22761
2018-09-19T11:19:06Z
2018-10-07T23:24:30Z
2018-10-07T23:24:30Z
2018-10-07T23:38:31Z
Set up CI with Azure Pipelines
diff --git a/.travis.yml b/.travis.yml index 76f4715a4abb2..a180e83eeec21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,11 +30,6 @@ matrix: exclude: # Exclude the default Python 3.5 build - python: 3.5 - include: - - os: osx - language: generic - env: - - JOB="3.5, OSX" ENV...
Closes https://github.com/pandas-dev/pandas/issues/22690
https://api.github.com/repos/pandas-dev/pandas/pulls/22760
2018-09-19T11:14:11Z
2018-09-19T15:42:25Z
2018-09-19T15:42:25Z
2018-09-19T16:07:11Z
ENH: Making header_style a property of ExcelFormatter #22758
diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py index 0bc268bc18b95..d6fcfb2207cf9 100644 --- a/pandas/io/formats/excel.py +++ b/pandas/io/formats/excel.py @@ -34,15 +34,6 @@ def __init__(self, row, col, val, style=None, mergestart=None, self.mergeend = mergeend -header_style = {"font"...
- [y] closes #22758 - [y] tests added / passed - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/22759
2018-09-19T06:27:03Z
2018-09-20T22:17:21Z
2018-09-20T22:17:21Z
2018-09-20T23:17:44Z
TST: Fixturize series/test_validate.py
diff --git a/pandas/tests/series/test_validate.py b/pandas/tests/series/test_validate.py index a0cde5f81d021..8c4b6ee5b1d75 100644 --- a/pandas/tests/series/test_validate.py +++ b/pandas/tests/series/test_validate.py @@ -1,14 +1,7 @@ -from pandas.core.series import Series - import pytest import pandas.util.testing as...
This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22756
2018-09-18T23:34:26Z
2018-09-25T12:30:34Z
2018-09-25T12:30:34Z
2018-10-03T08:47:40Z
TST: Fixturize series/test_analytics.py
diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py index 3f14c80e77dd0..cbcfa629c8928 100644 --- a/pandas/tests/series/test_analytics.py +++ b/pandas/tests/series/test_analytics.py @@ -25,10 +25,8 @@ assert_almost_equal, assert_frame_equal, assert_index_equal, assert_se...
- [ ] This is in reference to issue #22550
https://api.github.com/repos/pandas-dev/pandas/pulls/22755
2018-09-18T22:48:49Z
2018-11-02T14:22:47Z
2018-11-02T14:22:47Z
2018-11-02T14:22:52Z
BUG: nlargest/nsmallest gave wrong result (#22752)
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 1819cfa2725db..f911d506b1f4f 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -505,14 +505,21 @@ class NSort(object): param_names = ['keep'] def setup(self, keep)...
- [X] closes #22752 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry When asking for the n largest/smallest rows in a dataframe nlargest/nsmallest sometimes failed to differentiate the correct result. I looked at the nsmallest/nlargest impl...
https://api.github.com/repos/pandas-dev/pandas/pulls/22754
2018-09-18T22:48:48Z
2018-09-25T12:58:21Z
2018-09-25T12:58:21Z
2018-09-25T12:58:36Z
WIP: Use dispatch_to_series for combine_const
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ff7590f6d5358..d74861e6d5d50 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4924,10 +4924,42 @@ def _combine_const(self, other, func, errors='raise', try_cast=True): if lib.is_scalar(other) or np.ndim(other) == 0: ret...
This and #22019 get rid of the only two usages of `BlockManager.eval` and `Block.eval`. Getting rid of those will be a good day. This is pretty ugly at the moment. There are some design issues (namely, what broadcasting rules are intended to be supported) that need to be cleared up before this can be made pretty. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22751
2018-09-18T20:46:31Z
2018-10-05T14:28:28Z
null
2018-10-13T16:22:14Z
BUG: read_table and read_csv crash (#22748)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 31ef70703e2ca..9b11ae6c0054d 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -755,6 +755,7 @@ I/O - :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when consider...
A missing null-pointer check made read_table and read_csv prone to crash on badly encoded text. Add null-pointer check. - [X] closes #22748 - [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/22750
2018-09-18T20:35:40Z
2018-09-24T03:53:10Z
2018-09-24T03:53:10Z
2018-09-24T03:53:17Z
Corrected to necessary pip requirements format
diff --git a/ci/requirements-optional-pip.txt b/ci/requirements-optional-pip.txt index 2e1bf0ca22bcf..ad0eba32684a8 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
- [x] Addresses bug introduced by #22601 Requirements format for building pip env requires '==' instead of '='
https://api.github.com/repos/pandas-dev/pandas/pulls/22749
2018-09-18T19:54:54Z
2018-10-03T21:38:47Z
null
2018-10-03T21:39:25Z
DOC: add more links to the API in advanced.rst
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 611afb3670ebc..835c4cc9d4ab3 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -15,7 +15,8 @@ MultiIndex / Advanced Indexing ****************************** -This section covers indexing with a ``MultiIndex`` and :ref:`more adva...
Links were added to ``advanced.rst`` in #22671, but after reading the docs over agian, there still are some links missing and some are strangely placed. Changes consist mainly of: * add links for first-time encounters for more methods * make fewer links to DataFrame.xs (only keep first link * Moved some links from...
https://api.github.com/repos/pandas-dev/pandas/pulls/22746
2018-09-18T19:37:24Z
2018-09-19T14:39:47Z
2018-09-19T14:39:47Z
2018-09-19T16:41:40Z
Git version
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..7fb87d31fb469 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -185,7 +185,7 @@ Other Enhancements - :class:`Resampler` now is iterable like :class:`GroupBy` (:issue:`15314`). - :me...
Finished off the work largely completed in this pull request: #21680 - [y] closes #21295 - [y] tests added / passed - [y] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [y] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22745
2018-09-18T18:57:05Z
2018-09-19T14:23:27Z
2018-09-19T14:23:27Z
2018-10-09T18:43:34Z
CI: Fail doc build on warning
diff --git a/.travis.yml b/.travis.yml index 40baee2c03ea0..502f06fbd329a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -111,17 +111,20 @@ before_script: script: - echo "script start" - - ci/run_build_docs.sh - ci/script_single.sh - ci/script_multi.sh - ci/lint.sh - - ci/doctests.sh + - ci/docs/doctes...
(continuing a theme) xref https://github.com/pandas-dev/pandas/issues/21564 We print the doc build output to a file and parse that file for errors. This is preferable to Sphinx'x built-in ability to raise on errors, since we will print warnings for *all* the errors present in a PR, rather than just the first (and...
https://api.github.com/repos/pandas-dev/pandas/pulls/22743
2018-09-18T16:14:04Z
2019-01-06T01:49:05Z
null
2019-01-07T13:19:13Z
BUG: fix numpy deprecation warning for scalar datetime64 values
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 30745f186edcc..559b2d8eda588 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -803,6 +803,7 @@ Other - Require at least 0.28.2 version of ``cython`` to support read-only memoryviews (:issue:`21688`...
This should fix the DeprecationWarning described in #22741 . Not sure if it's worth adding a test. What's the policy on things like these? - [x] closes #22741 - [ ] 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/22742
2018-09-18T13:03:16Z
2018-11-23T03:29:23Z
null
2018-11-23T03:29:24Z
CLN: Remove some unused imports in pyx files
diff --git a/pandas/_libs/sparse.pyx b/pandas/_libs/sparse.pyx index 2993114a668bb..d852711d3b707 100644 --- a/pandas/_libs/sparse.pyx +++ b/pandas/_libs/sparse.pyx @@ -1,7 +1,4 @@ # -*- coding: utf-8 -*- -import operator -import sys - import cython import numpy as np diff --git a/pandas/_libs/tslib.pyx b/pandas/_...
Removing some unused imports according to PyCharm.
https://api.github.com/repos/pandas-dev/pandas/pulls/22739
2018-09-18T04:51:44Z
2018-09-18T11:10:57Z
2018-09-18T11:10:57Z
2018-09-18T15:13:57Z
Fixturize tests/frame/test_api and tests/sparse/frame/test_frame
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 78a19029db567..35f2f566ef85e 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -24,8 +24,6 @@ import pandas.util.testing as tm -from pandas.tests.frame.common import TestData - class SharedWithSp...
- [x] split off from #22730 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` `tests/frame/test_api` was easy enough to fixturize, but I ran into problems because some tests (notably those in `SharedWithSparse`) are also used in `tests/sparse/frame/test_frame`, and th...
https://api.github.com/repos/pandas-dev/pandas/pulls/22738
2018-09-17T23:32:06Z
2018-09-18T14:33:56Z
2018-09-18T14:33:56Z
2018-09-23T15:52:45Z
CLN: Removes module pandas.json
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 649629714c3b1..34eb5d8d7ed0f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -577,6 +577,7 @@ Removal of prior version deprecations/changes - Removed the ``pandas.formats.style`` shim for :class:`...
- [x] closes #19944 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I'm just not sure about which file should I add my changes in whatsnew, can anyone help me with that?
https://api.github.com/repos/pandas-dev/pandas/pulls/22737
2018-09-17T22:15:15Z
2018-09-18T11:15:25Z
2018-09-18T11:15:25Z
2018-09-18T11:15:59Z
Fixturize tests/frame/test_arithmetic
diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py index fdedb93835d75..4a4ce4540b9d5 100644 --- a/pandas/tests/frame/conftest.py +++ b/pandas/tests/frame/conftest.py @@ -70,9 +70,10 @@ def mixed_float_frame(): Columns are ['A', 'B', 'C', 'D']. """ df = DataFrame(tm.getSeriesDat...
Split off from #22730 as per review from @WillAyd The changes in `conftest.py` are due to the following: > In translating the quasi-fixtures from `TestData` to `conftest` in #22236, I sorted the dtypes for the columns of `mixed_float_frame` and `mixed_int_frame`, which turns out to have been a mistake. This is rev...
https://api.github.com/repos/pandas-dev/pandas/pulls/22736
2018-09-17T20:41:00Z
2018-09-26T10:05:38Z
2018-09-26T10:05:37Z
2018-10-05T16:22:15Z
Fixturize tests/frame/test_apply
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index 7b71240a34b5c..e27115cfc255b 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -23,25 +23,36 @@ assert_frame_equal) import pandas.util.testing as tm from panda...
Split off from #22730 as per review from @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/22735
2018-09-17T20:29:52Z
2018-09-23T18:28:40Z
2018-09-23T18:28:40Z
2018-09-23T21:21:48Z
removing superfluous reference to axis in Series.reorder_levels docst…
diff --git a/pandas/core/series.py b/pandas/core/series.py index a4d403e4bcd94..ba34a3e95e5d3 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2886,7 +2886,6 @@ def reorder_levels(self, order): ---------- order : list of int representing new level order. (reference le...
Hi, I removed the superfluous reference to axis in Series.reorder_levels docstring. - [ ] xref #22627 - [x] tests added / passed (doesn't apply) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry (doesn't apply, only removed a line in the docstring)
https://api.github.com/repos/pandas-dev/pandas/pulls/22734
2018-09-17T16:17:31Z
2018-09-17T17:10:25Z
2018-09-17T17:10:25Z
2018-09-17T17:10:35Z
TST/CLN: Fixturize frame/test_analytics
diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py index 4a4ce4540b9d5..348331fc0ccdf 100644 --- a/pandas/tests/frame/conftest.py +++ b/pandas/tests/frame/conftest.py @@ -17,6 +17,20 @@ def float_frame(): return DataFrame(tm.getSeriesData()) +@pytest.fixture +def float_frame_with_na()...
- [x] 1 step closer towards #22471 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This module is **much** harder to fixturize than e.g. #22236 or #22730, mainly due to the class methods `_check_stat_op` and `_check_bool_op`, which, despite having an argument for the...
https://api.github.com/repos/pandas-dev/pandas/pulls/22733
2018-09-17T01:03:20Z
2018-10-06T15:50:20Z
2018-10-06T15:50:20Z
2018-10-09T16:26:30Z
DOC: Fix Series nsmallest and nlargest docstring/doctests
diff --git a/ci/doctests.sh b/ci/doctests.sh index 2af5dbd26aeb1..2b5edc5aa1172 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"-nlargest -nonzero -nsmallest -reindex -searchsorted -to_dict" + ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Based on #22459. Fix the docstring for Series.nsmallest and Series.nlargest. I did both together since the same example could be used. I removed both from the skipped doctests in `ci/doctests.sh`. I also found out abo...
https://api.github.com/repos/pandas-dev/pandas/pulls/22731
2018-09-17T00:51:52Z
2018-09-18T13:58:22Z
2018-09-18T13:58:22Z
2018-09-18T15:04:12Z
CLN: res/exp and GH references in frame tests
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 5327e3fcbea76..66bbc1f1a649b 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -340,7 +340,7 @@ def test_corr_cov_independent_index_column(self): assert result.index....
EDIT2: reverted import-related clean-up due to https://github.com/pandas-dev/pandas/pull/22730#issuecomment-423844217 EDIT: after review by @WillAyd, the fixturization was split out to #22735, #22736 and #22738. Now contains only the following clean-ups, also for #22733: * Replace instances of pd. with direct impor...
https://api.github.com/repos/pandas-dev/pandas/pulls/22730
2018-09-17T00:29:23Z
2018-10-08T03:26:01Z
2018-10-08T03:26:01Z
2018-10-08T17:09:21Z
CLN/DOC: Refactor timeseries.rst intro and overview
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 5dfac98d069e7..71bc064ffb0c2 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -21,51 +21,59 @@ Time Series / Date functionality ******************************** -pandas has proven very successful as a tool for working ...
Refactoring `timeseries.rst` introduction and overview to give a better introduction into pandas timeseries functionality: - Introduce a wider range of examples - Overview all scalar and array classes, related data types, and range methods, and `NaT` in the beginning
https://api.github.com/repos/pandas-dev/pandas/pulls/22728
2018-09-16T06:06:56Z
2018-09-17T19:10:56Z
2018-09-17T19:10:56Z
2018-09-17T19:11:15Z
CLN: io/formats/html.py: refactor
diff --git a/pandas/io/formats/html.py b/pandas/io/formats/html.py index 967e5fca5f711..bc2de210df3f4 100644 --- a/pandas/io/formats/html.py +++ b/pandas/io/formats/html.py @@ -78,7 +78,7 @@ def _write_cell(self, s, kind='td', indent=0, tags=None): self.write(u'{start}{rs}</{kind}>' .format...
- [N/A ] follow on from #20341 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [N/A ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22726
2018-09-16T01:04:57Z
2018-11-18T22:32:00Z
2018-11-18T22:32:00Z
2018-11-19T00:14:48Z
CLN/ERR: str.cat internals
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 5a23951145cb4..4086021bc61a6 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -3,8 +3,9 @@ from pandas.compat import zip from pandas.core.dtypes.generic import ABCSeries, ABCIndex -from pandas.core.dtypes.missing import isna, notn...
This is mainly a clean-up of internal methods for `str.cat` that I didn't want to touch within #20347. ~~As a side benefit of changing the implementation, this also solves #22721. Finally, I've also added a better message for TypeErrors (closes #22722)~~ ~~closes #22721~~ ~~closes #22722~~ - [x] tests modified ...
https://api.github.com/repos/pandas-dev/pandas/pulls/22725
2018-09-16T00:11:27Z
2018-10-14T21:54:51Z
2018-10-14T21:54:51Z
2018-10-15T18:29:13Z
TST/CLN: remove duplicate data file used in tests (unicode_series.csv)
https://github.com/pandas-dev/pandas/pull/22723.diff
- [N/A ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ N/A] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/22723
2018-09-15T17:17:29Z
2018-09-18T11:17:21Z
2018-09-18T11:17:21Z
2018-09-18T14:25:43Z
DOC: Fix broken link in install.rst
diff --git a/doc/source/install.rst b/doc/source/install.rst index 4640da8b8239a..7a846c817aee2 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -270,7 +270,7 @@ Optional Dependencies * For Excel I/O: * `xlrd/xlwt <http://www.python-excel.org/>`__: Excel reading (xlrd) and writing (xlwt) - ...
Firstly, the link was like `http://https://`; secondly, `/en/default/` endpoint now returns "Permission denied" error (not sure whether it was different before).
https://api.github.com/repos/pandas-dev/pandas/pulls/22716
2018-09-14T22:21:57Z
2018-09-15T12:01:10Z
2018-09-15T12:01:10Z
2018-09-15T14:17:08Z
TST: Mock clipboard IO
diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py index a6b331685e72a..bb73c6bc6b38b 100644 --- a/pandas/tests/io/test_clipboard.py +++ b/pandas/tests/io/test_clipboard.py @@ -13,7 +13,6 @@ from pandas.util import testing as tm from pandas.util.testing import makeCustomDataframe as mk...
No idea if this will work on not.
https://api.github.com/repos/pandas-dev/pandas/pulls/22715
2018-09-14T20:51:46Z
2018-09-16T19:39:53Z
2018-09-16T19:39:53Z
2018-09-16T19:39:53Z
BUG: Empty CategoricalIndex fails with boolean categories
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 487d5d0d2accd..6f8646f12cafc 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -616,6 +616,7 @@ Categorical ^^^^^^^^^^^ - Bug in :meth:`Categorical.from_codes` where ``NaN`` values in ``codes`` w...
Fixes #22702. This bug was introduced in [7818486859d1aba53](https://github.com/pandas-dev/pandas/commit/7818486859d1aba53ce359b93cfc772e688958e5); per [my comment](https://github.com/pandas-dev/pandas/issues/22702#issuecomment-421364087), the problem is here: ```python if not is_dtype_equal(values.dtype, ca...
https://api.github.com/repos/pandas-dev/pandas/pulls/22710
2018-09-14T14:02:41Z
2018-09-20T13:40:11Z
2018-09-20T13:40:10Z
2018-09-20T13:40:13Z
Support writing CSV to GCS
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 9b70dd4ba549f..c196169cb82d5 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -174,7 +174,7 @@ Other Enhancements - :func:`to_csv` now supports ``compression`` keyword when a file handle is passed....
- [x] fixes #23094 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This seems to work as-is and doesn't break any of the IO tests; as I mentioned in https://github.com/pandas-dev/pandas/issues/8508#issuecomment-421184687 getting S3 to work is a...
https://api.github.com/repos/pandas-dev/pandas/pulls/22704
2018-09-14T00:08:30Z
2018-10-12T22:23:57Z
2018-10-12T22:23:57Z
2019-08-16T11:23:01Z
BUG: Fix dtype inconsistency when appending to empty DataFrame
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3660c1e843f6c..b6e6452cbee04 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -775,6 +775,7 @@ Reshaping - Bug in :meth:`DataFrame.replace` raises ``RecursionError`` when replacing empty lists (:is...
- [ ] closes #22621 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry *edit*: currently rewriting the DataFrame.append function
https://api.github.com/repos/pandas-dev/pandas/pulls/22703
2018-09-13T23:01:55Z
2018-09-27T22:09:19Z
null
2018-09-27T22:10:37Z
Remove --strict-data-files on pytest by default
diff --git a/setup.cfg b/setup.cfg index 5fc0236066b93..b4f30d49557f3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -39,7 +39,6 @@ markers = network: mark a test as network high_memory: mark a test as a high-memory only doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL -addopts = --strict-data-f...
- closes #22683 Explanation: pytest gets the configuration from setup.cfg, witch forces the option "--strict-data-files" by default. This makes the test to fail on missing files that are not packaged (on pypi and in the github tarball). Removing this line fixes the issue and the tests are skipped. Cheers. Elias...
https://api.github.com/repos/pandas-dev/pandas/pulls/22701
2018-09-13T20:13:23Z
2018-09-13T20:14:09Z
null
2018-09-13T20:14:10Z
Remove --strict-data-files on pytest by default
diff --git a/setup.cfg b/setup.cfg index 9ec967c25e225..6d9657737a8bd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,5 +32,4 @@ markers = slow: mark a test as slow network: mark a test as network high_memory: mark a test as a high-memory only -addopts = --strict-data-files -doctest_optionflags= NORMALIZE_...
- closes #22683 Explanation: pytest gets the configuration from setup.cfg, witch forces the option "--strict-data-files" by default. This makes the test to fail on missing files that are not packaged (on pypi and in the github tarball). Removing this line fixes the issue and the tests are skipped. Adding missing...
https://api.github.com/repos/pandas-dev/pandas/pulls/22700
2018-09-13T20:11:02Z
2018-09-13T20:17:10Z
null
2018-09-13T20:18:11Z
TST: Fail on warning
diff --git a/.travis.yml b/.travis.yml index 32e6d2eae90a7..76f4715a4abb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -64,7 +64,7 @@ matrix: # In allow_failures - dist: trusty env: - - JOB="3.6, NumPy dev" ENV_FILE="ci/travis-36-numpydev.yaml" TEST_ARGS="--skip-slow --skip-network" PANDAS_TEST...
Sets our pytest config to fail on unhandled warnings. Fixes a bunch of tests to not fail. This still has a few TODOs. Closes https://github.com/pandas-dev/pandas/issues/16481 Closes https://github.com/pandas-dev/pandas/issues/19677 Closes https://github.com/pandas-dev/pandas/issues/13962 Closes https://gith...
https://api.github.com/repos/pandas-dev/pandas/pulls/22699
2018-09-13T20:03:15Z
2018-09-18T16:52:01Z
2018-09-18T16:52:00Z
2018-09-18T16:52:05Z
API/DEPR: 'periods' argument instead of 'n' for DatetimeIndex.shift()
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 9e2c20c78f489..0511688543dc4 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -561,6 +561,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`, `n` argument was deprecated in favor of `periods`. ``` In [2]: idx = pd.DatetimeIndex(start='2014-08-01 10:00...
https://api.github.com/repos/pandas-dev/pandas/pulls/22697
2018-09-13T17:47:41Z
2018-09-20T22:18:31Z
2018-09-20T22:18:31Z
2018-09-22T17:55:45Z
BUG: fix DataFrame+DataFrame op with timedelta64 dtype
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 851c1a3fbd6e9..a240f1fd85dd0 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -666,7 +666,7 @@ Timedelta - Bug in :class:`Index` with numeric dtype when multiplying or dividing an array with dtype ...
<s>Needs whatsnew note.</s> This has the benefit of looking a lot like the SparseDataframe._combine_frame implementation. With luck we can de-duplicate those at some point. Likely to be a perf hit for non-td64 dtypes. One option would be to use dispatch_to_series more selectively, but that gets complicated in a...
https://api.github.com/repos/pandas-dev/pandas/pulls/22696
2018-09-13T17:27:58Z
2018-10-02T21:22:53Z
2018-10-02T21:22:53Z
2018-10-12T16:48:29Z
BUG: Incorrect addition of Week(weekday=6) to DatetimeIndex
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index a3fa4e6b88256..b19cc61a2999e 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -1764,6 +1764,7 @@ def test_dt64_with_DateOffsets_relativedelta(klass): ...
- [ ] closes #22465 - [ ] 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/22695
2018-09-13T17:17:07Z
2018-09-14T11:13:50Z
2018-09-14T11:13:50Z
2018-09-15T14:25:45Z
TST: Test for bug fixed during #22534 discussion
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index a6f4e0e38ec5d..9c61f13b944ea 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -100,6 +100,18 @@ def test_df_flex_cmp_constant_return_types_empty(self, opname): # Arithmetic ...
In the course of profiling #22534 a bug was found, but that PR was made redundant and the bug fixed in master. This just adds a test for that bug.
https://api.github.com/repos/pandas-dev/pandas/pulls/22694
2018-09-13T16:48:39Z
2018-09-15T11:55:18Z
2018-09-15T11:55:18Z
2018-09-15T15:07:52Z
DEPR: Removed styler shim
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 9a4747f40b86d..66b6923ef13e4 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -571,6 +571,7 @@ Removal of prior version deprecations/changes - Strings passed into :meth:`DataFrame.groupby` that ref...
https://api.github.com/repos/pandas-dev/pandas/pulls/22691
2018-09-13T13:36:44Z
2018-09-13T20:21:19Z
2018-09-13T20:21:19Z
2018-09-13T20:21:22Z
Only sort dict columns in from_records for py < 3.6
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 251bc6587872d..f1bc84ccc3c83 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1293,7 +1293,8 @@ def from_records(cls, data, index=None, exclude=None, columns=None, if isinstance(data, dict): if columns is None: - ...
- [ ] closes #xxxx (no existing issue) - [x] tests passed (no new test added - can add one if necessary) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry DataFrame.from_records does not respect dictionary order on Python 3.6+. For example: ``` >>> df = pd.DataFrame.fro...
https://api.github.com/repos/pandas-dev/pandas/pulls/22687
2018-09-13T09:53:26Z
2018-12-23T23:45:22Z
null
2018-12-23T23:45:23Z
ENH: correlation function accepts method being a callable
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index 5e7b8be5f8af0..0d2021de8f88e 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -153,6 +153,21 @@ Like ``cov``, ``corr`` also supports the optional ``min_periods`` keyword: frame.corr(min_periods=12) +.. versiona...
- other than the listed strings for the `method` argument, accept a callable for generic correlation calculations - ~~~minor fix of = to == in requirements file~~~ - [ ] closes #xxxx (no issue opened for PR) - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] wha...
https://api.github.com/repos/pandas-dev/pandas/pulls/22684
2018-09-13T08:44:25Z
2018-09-26T10:20:21Z
2018-09-26T10:20:21Z
2018-09-26T10:20:26Z
TST Replace unittest.TestCase.fail calls, use pytest.raises instead of legacy constructs
diff --git a/pandas/tests/frame/test_indexing.py b/pandas/tests/frame/test_indexing.py index f0c4d7be2f293..96b2e98dd7e8d 100644 --- a/pandas/tests/frame/test_indexing.py +++ b/pandas/tests/frame/test_indexing.py @@ -71,12 +71,8 @@ def test_getitem(self): def test_getitem_dupe_cols(self): df = DataFrame...
Similarly to https://github.com/numpy/numpy/pull/11933, > Following pytest migration there are unit tests that used to call unittest.TestCase.fail and now will produce a misleading error message on failure because the fail method no longer exists (test classes just inherit from object). > > This fixes this issue, b...
https://api.github.com/repos/pandas-dev/pandas/pulls/22681
2018-09-12T20:39:38Z
2018-09-13T22:05:04Z
2018-09-13T22:05:04Z
2018-09-13T22:11:41Z
Close ZipFile in compression test
diff --git a/pandas/conftest.py b/pandas/conftest.py index fdac045e67ffa..28c24fc8c0640 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -8,11 +8,14 @@ import pandas as pd from pandas.compat import PY3 import pandas.util._test_decorators as td - import hypothesis -hypothesis.settings.suppress_health_chec...
Maybe fixes #22675 Maybe fixed #22682
https://api.github.com/repos/pandas-dev/pandas/pulls/22679
2018-09-12T16:06:24Z
2018-09-13T13:24:15Z
2018-09-13T13:24:15Z
2018-09-13T13:24:18Z
DOC: Add section on MultiIndex.to_frame() ordering
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 955f1461075f9..ac83deee49b09 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1130,6 +1130,9 @@ def to_frame(self, index=True): """ Create a DataFrame with the levels of the MultiIndex as col...
- Closes #22662
https://api.github.com/repos/pandas-dev/pandas/pulls/22674
2018-09-12T01:10:02Z
2018-09-12T11:11:54Z
2018-09-12T11:11:53Z
2018-09-12T11:11:56Z
DOC: Fix DataFrame.to_xarray doctests and allow the CI to run it.
diff --git a/ci/doctests.sh b/ci/doctests.sh index a941515fde4ae..e7fe80e60eb6d 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` Fix the docstring for DataFrame.to_xarray as described in #22459 . I removed the pandas.panel example since it was deprecated and I replaced it with a MultiIndex.
https://api.github.com/repos/pandas-dev/pandas/pulls/22673
2018-09-12T00:42:11Z
2018-09-19T15:37:37Z
2018-09-19T15:37:37Z
2018-09-19T17:21:25Z
MAINT: Standardize searchsorted signature
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index f2ec08c61a6d8..f311d72427d33 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -559,6 +559,7 @@ Deprecations - :func:`pandas.read_table` is deprecated. Instead, use :func:`pandas.read_csv` passing `...
"value" is the law of the land. xref #14645. Follow-up to #15601.
https://api.github.com/repos/pandas-dev/pandas/pulls/22672
2018-09-12T00:24:12Z
2018-09-15T17:53:41Z
2018-09-15T17:53:41Z
2018-09-16T04:00:56Z
DOC: add cross references to advanced.rst
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 2be1a53aa6c93..611afb3670ebc 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -15,7 +15,7 @@ MultiIndex / Advanced Indexing ****************************** -This section covers indexing with a ``MultiIndex`` and more advanced i...
IMO the [MultiIndex / Advanced Indexing](http://pandas-docs.github.io/pandas-docs-travis/advanced.html) section of the docs are a bit thin on cross references, so it's too difficult to make deeper looks into the API, when you are in doubt. I've added cross references. They're added relatively sparingly, typically o...
https://api.github.com/repos/pandas-dev/pandas/pulls/22671
2018-09-12T00:06:59Z
2018-09-12T06:01:13Z
2018-09-12T06:01:13Z
2018-09-12T06:03:06Z
CLN: Standardize searchsorted signatures
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 3660c1e843f6c..99a5d3b3966fc 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -570,6 +570,8 @@ Removal of prior version deprecations/changes - Strings passed into :meth:`DataFrame.groupby` that ref...
The parameter is "value" across the board. xref #14645.
https://api.github.com/repos/pandas-dev/pandas/pulls/22670
2018-09-11T23:23:23Z
2018-09-13T19:52:35Z
2018-09-13T19:52:35Z
2018-09-14T18:10:21Z
is_bool_dtype for ExtensionArrays
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index e2ba35c1ad7f9..2f70d4e5946a0 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -485,6 +485,7 @@ ExtensionType Changes - ``ExtensionArray`` has gained the abstract methods ``.dropna()`` (:issue:`2118...
Closes #22326 Closes #22665 Two commits: https://github.com/pandas-dev/pandas/commit/fe3500248dec1b21469e94e054f636dc7707fae0 partially implements an Arrow-backed ExtensionArray. We need this as we don't currently have any boolean-values EAs. https://github.com/pandas-dev/pandas/commit/04029ac94d1e53fbec18264b...
https://api.github.com/repos/pandas-dev/pandas/pulls/22667
2018-09-11T19:28:36Z
2018-09-20T14:01:32Z
2018-09-20T14:01:32Z
2018-09-20T23:23:15Z
API: register_extension_dtype class decorator
diff --git a/doc/source/api.rst b/doc/source/api.rst index 77d37ec2a7b2e..9c3770a497cf8 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2559,6 +2559,7 @@ objects. .. autosummary:: :toctree: generated/ + api.extensions.register_extension_dtype api.extensions.register_dataframe_accessor api....
Closes https://github.com/pandas-dev/pandas/issues/22664
https://api.github.com/repos/pandas-dev/pandas/pulls/22666
2018-09-11T19:03:12Z
2018-09-13T11:27:43Z
2018-09-13T11:27:43Z
2018-09-13T11:30:33Z
DOC/CLN: small whatsnew fixes
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index fb7af00f61534..3660c1e843f6c 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -164,7 +164,7 @@ This is the same behavior as ``Series.values`` for categorical data. See Other Enhancements ^^^^^^^^^...
Small edits to fix some instances where the text isn't rendering as intended.
https://api.github.com/repos/pandas-dev/pandas/pulls/22659
2018-09-11T05:24:48Z
2018-09-11T18:24:14Z
2018-09-11T18:24:14Z
2018-09-24T17:21:40Z