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: Implementing single doc building for api docs
diff --git a/doc/make.py b/doc/make.py index e3cb29aa3e086..3d4c0b4f4fbc7 100755 --- a/doc/make.py +++ b/doc/make.py @@ -14,10 +14,12 @@ import sys import os import shutil -import subprocess +# import subprocess import argparse from contextlib import contextmanager +import webbrowser import jinja2 +import pandas ...
Same as #19840, using @jorisvandenbossche approach, but using the --single attribute instead of separate functionality for docstrings.
https://api.github.com/repos/pandas-dev/pandas/pulls/19864
2018-02-23T12:16:35Z
2018-02-26T20:52:13Z
null
2023-05-11T01:17:27Z
REF: Base class for all extension tests
diff --git a/ci/lint.sh b/ci/lint.sh index fcd65fc5aba5e..545ac9c90c5c1 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -111,6 +111,15 @@ if [ "$LINT" ]; then RET=1 fi + # Check for the following code in the extension array base tests + # tm.assert_frame_equal + # tm.assert_series_equal + grep -...
Added the staticmethods - assert_series_equal - assert_frame_equal to the base class. Useful for test cases like DecimalArray with NaNs, since our assert_*_equal methods don't properly handle Decimal NaNs. - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/19863
2018-02-23T12:09:25Z
2018-02-24T15:19:19Z
2018-02-24T15:19:19Z
2018-05-02T13:10:24Z
ENH: Let initialisation from dicts use insertion order for python >= 3.6 (part II)
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 4cf7c8013aa2b..129ac6b06205c 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -99,9 +99,9 @@ def max_value(group): applied = df.groupby('A').apply(max_value) ...
- [x] xref #19018 and #19830 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This PR is the second part of the preparation for allowing initialisation using insertion order for python>=3.6. See cross-referenced issues for details. After this PR all tests will pass...
https://api.github.com/repos/pandas-dev/pandas/pulls/19859
2018-02-23T08:34:05Z
2018-02-24T14:55:36Z
2018-02-24T14:55:35Z
2018-02-24T17:37:09Z
DOC: Updated links to 2 tutorials in tutorials.rst
diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst index db9385519bff2..0398e2892cef5 100644 --- a/doc/source/tutorials.rst +++ b/doc/source/tutorials.rst @@ -26,32 +26,34 @@ repository <http://github.com/jvns/pandas-cookbook>`_. To run the examples in th clone the GitHub repository and get IPython Noteb...
Two of the links to the [pandas-cookbook](https://github.com/jvns/pandas-cookbook) did not work for version `v0.2` of the documents. Now all links work. Where a version `v0.2` exists, it links to that version. In the remaining two cases, it now links to version `v0.1` instead of raising the `404: Page not found` error...
https://api.github.com/repos/pandas-dev/pandas/pulls/19857
2018-02-23T06:36:49Z
2018-02-24T16:31:13Z
2018-02-24T16:31:13Z
2018-02-24T16:31:18Z
ENH: Add option to disable MathJax (#19824).
diff --git a/doc/source/options.rst b/doc/source/options.rst index cce16a5396377..a82be4d84bf3f 100644 --- a/doc/source/options.rst +++ b/doc/source/options.rst @@ -402,6 +402,10 @@ display.html.table_schema False Whether to publish a Table display.html.border 1 A ``...
This prevents MathJax from processing table contents: <img width="599" alt="screen shot 2018-02-24 at 7 36 50 am" src="https://user-images.githubusercontent.com/1804856/36632244-0c07bdac-1939-11e8-85eb-0c22d42991d1.png"> I'm hoping for a code review, to find out if this might be accepted. If so, I'll add the test...
https://api.github.com/repos/pandas-dev/pandas/pulls/19856
2018-02-23T05:35:34Z
2018-03-01T23:06:21Z
2018-03-01T23:06:20Z
2018-07-24T21:40:59Z
BUG: names on union and intersection for Index were inconsistent (GH9943 GH9862)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 6ace245a4bae1..f42cfc4d4c27f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1215,6 +1215,8 @@ Indexing - Bug in `scalar in Index` if scalar is a float while the ``Index`` is of integer dtype (:i...
xref #9943 closes #9862 - [x] tests added / passed - Added tests to check names on unions when Index has different values - Fixed test for ranges with unions - Added tests for all index types for corner cases for union, difference - Added tests so that `index.intersection(empty_index)==index.difference(i...
https://api.github.com/repos/pandas-dev/pandas/pulls/19849
2018-02-22T22:05:05Z
2018-11-06T18:21:48Z
2018-11-06T18:21:48Z
2019-07-12T17:21:39Z
Separate TimedeltaIndex mul/div tests
diff --git a/pandas/tests/indexes/datetimes/test_datetime.py b/pandas/tests/indexes/datetimes/test_datetime.py index 2cf33644377ab..b685584a29fb9 100644 --- a/pandas/tests/indexes/datetimes/test_datetime.py +++ b/pandas/tests/indexes/datetimes/test_datetime.py @@ -2,7 +2,7 @@ import pytest import numpy as np -from ...
Collect DTI/TDI/PI indexing tests ~symmetrically.
https://api.github.com/repos/pandas-dev/pandas/pulls/19848
2018-02-22T20:44:09Z
2018-02-23T12:35:07Z
2018-02-23T12:35:07Z
2018-02-23T15:23:28Z
Fix+test DTI/TDI/PI add/sub with ndarray[datetime64/timedelta64]
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index fd3c3a5a7a301..b0e4ae02ff8ee 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -755,6 +755,7 @@ Datetimelike - Bug in :func:`Timestamp.floor` :func:`DatetimeIndex.floor` where time stamps far in the...
Two notes for upcoming passes: - the tests are pretty redundant, can be parametrized more tightly once they are all OK. - catching ndarray[datetime64] separately from DatetimeIndex is kind of weird, but for the moment necesarry. Once #19835 goes through and re-orders the catching, we'll be able to fix this.
https://api.github.com/repos/pandas-dev/pandas/pulls/19847
2018-02-22T20:08:11Z
2018-02-25T16:11:42Z
2018-02-25T16:11:42Z
2018-06-22T03:28:41Z
DOC: Make API reference intro section concise
diff --git a/doc/source/api.rst b/doc/source/api.rst index b8aad67e147ba..0e47499a03f3a 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -6,19 +6,18 @@ API Reference ************* This page gives an overview of all public pandas objects, functions and -methods. In general, all classes and functions expos...
Also revise the typo "in not guaranteed" to "is not guaranteed"
https://api.github.com/repos/pandas-dev/pandas/pulls/19846
2018-02-22T20:06:18Z
2018-02-26T08:43:00Z
2018-02-26T08:43:00Z
2018-02-26T08:43:06Z
CI: Align pep8speaks config with setup.cfg
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index 299b76c8922cc..fda26d87bf7f6 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -6,5 +6,7 @@ scanner: pycodestyle: max-line-length: 79 ignore: # Errors and warnings to ignore - - E731 - - E402 + - E402, # module level import not a...
I copy pasted the ignored flake8 codes from setup.cfg, so that the online pep8speaks does the same as our linting on CI
https://api.github.com/repos/pandas-dev/pandas/pulls/19841
2018-02-22T12:49:13Z
2018-02-22T13:55:03Z
2018-02-22T13:55:03Z
2018-02-22T13:55:03Z
DOC: script to build single docstring page
diff --git a/doc/make.py b/doc/make.py index e3cb29aa3e086..2819a62347627 100755 --- a/doc/make.py +++ b/doc/make.py @@ -14,11 +14,14 @@ import sys import os import shutil -import subprocess +# import subprocess import argparse from contextlib import contextmanager +import webbrowser import jinja2 +import panda...
Add a way to build a single docstring page, without the need to build the full docs.
https://api.github.com/repos/pandas-dev/pandas/pulls/19840
2018-02-22T12:43:33Z
2018-03-01T09:35:05Z
2018-03-01T09:35:05Z
2018-03-01T09:35:09Z
DOC: Making doc/source/conf.py pass PEP-8, and added to lint
diff --git a/ci/lint.sh b/ci/lint.sh index b862a3bfcf29e..e3a39668885f0 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -37,12 +37,12 @@ if [ "$LINT" ]; then fi echo "Linting scripts/*.py DONE" - echo "Linting doc script" - flake8 doc/make.py + echo "Linting doc scripts" + flake8 doc/make.py doc/sou...
- [X] closes https://github.com/pandas-dev/pandas/issues/19838 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19839
2018-02-22T11:48:28Z
2018-02-22T14:06:09Z
2018-02-22T14:06:08Z
2018-02-22T14:06:18Z
DOC: remove deprecated from_items from dsintro docs
diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst index e8f73a9ec2e8a..1ba00b8fb6f23 100644 --- a/doc/source/dsintro.rst +++ b/doc/source/dsintro.rst @@ -364,6 +364,19 @@ and returns a DataFrame. It operates like the ``DataFrame`` constructor except for the ``orient`` parameter which is ``'columns'`` by def...
Follow-up on https://github.com/pandas-dev/pandas/pull/19802 and https://github.com/pandas-dev/pandas/pull/18529
https://api.github.com/repos/pandas-dev/pandas/pulls/19837
2018-02-22T10:40:54Z
2018-02-24T14:39:08Z
2018-02-24T14:39:08Z
2018-02-24T14:39:11Z
DOC: correct min_count param docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8034cf89cf8b7..85e2ce475ffa2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7855,7 +7855,7 @@ def _doc_parms(cls): >>> pd.Series([np.nan]).prod() 1.0 ->>> pd.Series([np.nan]).sum(min_count=1) +>>> pd.Series([np.nan]).prod(min_c...
correct min_count param docstring for function ’Series.prodβ€˜οΌŒ ’Series.sum', 'DataFrame.prod', 'DataFrame.sum' - [ ] 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/19836
2018-02-22T06:28:32Z
2018-02-23T11:24:24Z
2018-02-23T11:24:24Z
2018-02-23T11:44:20Z
De-duplicate add_offset_array methods
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index ac75e5ae5e2a0..a68d883f04380 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -2,7 +2,7 @@ Base and utility classes for tseries type pandas objects. """ import warnings - +import ...
Combine DTI/TDI/PI add_offset_array and sub_offset_array methods. Re-order `__add__` and `__sub__` if/else branches to put scalars up front. This was going to include fixes for DTI/TDI with ndarray[timedelta64]/ndarray[datetime64], but the diff got big enough to split that off to the next one.
https://api.github.com/repos/pandas-dev/pandas/pulls/19835
2018-02-22T05:15:07Z
2018-02-24T14:43:35Z
2018-02-24T14:43:35Z
2018-06-22T03:28:35Z
Continue porting period_helper; fix leftover asfreq bug
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 4c1e98b236db7..c1ba35dff90ed 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -763,7 +763,7 @@ Timedelta - Bug in :class:`TimedeltaIndex` where division by a ``Series`` would return a ``TimedeltaIn...
In #19650 we fixed a bug with asfreq but missed a weekly-frequency case. This fixes and tests that. I'll see if I can cook up a more thorough set of tests to make sure nothing else slips through the cracks. Other than that, the main thing this does is substitute in `ORD_OFFSET = WEEK_OFFSET * 7 + 4` and `BDAY_OFFS...
https://api.github.com/repos/pandas-dev/pandas/pulls/19834
2018-02-22T02:27:13Z
2018-02-23T11:35:01Z
2018-02-23T11:35:01Z
2018-02-23T15:27:43Z
BUG: Fix qcut with NaT present
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 4c1e98b236db7..86661eb5e4414 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -896,6 +896,7 @@ Reshaping - Bug in :func:`DataFrame.join` which does an ``outer`` instead of a ``left`` join when bein...
- [X] closes #19768 - [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/19833
2018-02-22T01:05:37Z
2018-02-22T11:39:39Z
2018-02-22T11:39:39Z
2018-02-22T17:58:05Z
DOC: correct Series.reset_index example
diff --git a/pandas/core/series.py b/pandas/core/series.py index 90dc14836ab55..b682d88ec2ce7 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1015,7 +1015,7 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False): >>> s = pd.Series([1, 2, 3, 4], index=pd.Index(['a', 'b', '...
- [ ] 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/19832
2018-02-21T23:52:45Z
2018-02-22T02:23:12Z
2018-02-22T02:23:12Z
2018-02-22T02:23:14Z
Fix to_csv of DataFrame with single level multiindex.
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index de111072bef02..7a5d455ff853f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -188,7 +188,7 @@ Renaming names in a MultiIndex :func:`DataFrame.rename_axis` now supports ``index`` and ``columns`` ar...
### What's this PR do? Fixes the output of to_csv to show the value instead of the tuple when a ``DataFrame`` or ``Series`` is constructed using a ``MultiIndex`` with one level. Although, I'm not sure if it's more desirable to require a MultiIndex to be instantiated with more than one level in the future. - [X] c...
https://api.github.com/repos/pandas-dev/pandas/pulls/19831
2018-02-21T22:38:08Z
2018-11-01T00:38:03Z
2018-11-01T00:38:03Z
2018-11-01T00:38:26Z
ENH: Let initialisation from dicts use insertion order for python >= 3.6 (part I)
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index d1ad9f71e6350..a057ca0879cac 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -646,7 +646,7 @@ def test_infer_output_shape_columns(self): 'datetime': [pd.Timestamp('2017...
- [x] xref #19018 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This PR prepares pandas to allow initialisation using insertion order for python>=3.6. E.g. ``Series({'B': 1, 'A': 2})`` will then retain order and not convert to ``Series({'A': 2, 'B': 1})``. Letti...
https://api.github.com/repos/pandas-dev/pandas/pulls/19830
2018-02-21T22:04:58Z
2018-02-23T01:22:35Z
2018-02-23T01:22:35Z
2018-02-23T07:26:46Z
Test Decorators and Better Pytest Integration in 'test_excel'
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 80a2c05d86971..78aaf4596c8b7 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -365,6 +365,20 @@ def callable(obj): return any("__call__" in klass.__dict__ for klass in type(obj).__mro__) +if sys.version_info[0...
- [x] closes #19816 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Once I started looking at it, it made sense to make the module more "pytest compatible". There was a lot of skipping being done imperatively that seemed better suited to using ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19829
2018-02-21T21:33:39Z
2018-02-26T12:21:07Z
2018-02-26T12:21:07Z
2018-02-26T16:15:04Z
make ops.add_foo take just class
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 061b69f25e7ac..e4ef1b97882d9 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6131,8 +6131,8 @@ def isin(self, values): DataFrame._add_numeric_operations() DataFrame._add_series_or_dataframe_operations() -ops.add_flex_arithmetic_methods(...
As discussed Also small cleanup for Sparse ops.
https://api.github.com/repos/pandas-dev/pandas/pulls/19828
2018-02-21T21:33:21Z
2018-02-26T11:37:50Z
2018-02-26T11:37:50Z
2018-06-22T03:21:52Z
Implement add_offset_array for PeriodIndex
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 8f2d7d382a16e..e410c50fb006b 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -44,6 +44,7 @@ from pandas.util._decorators import (Appender, Substitution, cache_readonly, ...
This already works for DTI/TDI, this just rounds it out. There will be some code de-duplication we can do if/when #19744 goes through.
https://api.github.com/repos/pandas-dev/pandas/pulls/19826
2018-02-21T20:52:33Z
2018-02-22T03:08:50Z
2018-02-22T03:08:50Z
2018-02-22T05:45:04Z
Keep subclassing in apply
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ed93503388893..9dbbe3f9e2b77 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -295,8 +295,10 @@ Other Enhancements - ``IntervalIndex.astype`` now supports conversions between subtypes when passed a...
When generating new objects on apply, it calls `self.obj._constructor` and `self.obj._constructior_sliced` instead of: `DataFrame` and `Series`; keeping subclassing. - [x] closes #19822 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] keeps subclass inside `Da...
https://api.github.com/repos/pandas-dev/pandas/pulls/19823
2018-02-21T19:14:17Z
2018-02-24T15:10:35Z
2018-02-24T15:10:35Z
2018-02-24T15:10:37Z
Fix rfloordiv return type, un-xfail Timedelta tests
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 76c4fa08fca4d..4290ae68ce785 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -765,6 +765,7 @@ Timedelta - Bug in :func:`Timedelta.__floordiv__`, :func:`Timedelta.__rfloordiv__` where operating wit...
- [ ] closes #xxxx - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19820
2018-02-21T18:16:05Z
2018-02-22T11:15:41Z
2018-02-22T11:15:41Z
2018-06-22T03:22:39Z
fix Timedelta.__mul__(NaT)
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index a4b943f995a33..a24eabc219764 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -735,6 +735,7 @@ Datetimelike Timedelta ^^^^^^^^^ +- Bug in :func:`Timedelta.__mul__` where multiplying by ``NaT`` r...
- [ ] 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/19819
2018-02-21T17:49:17Z
2018-02-22T11:12:52Z
2018-02-22T11:12:52Z
2018-06-22T03:22:56Z
Update df.to_stata() docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d81d22173bfbd..e34aaaae9b887 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1612,7 +1612,7 @@ def to_stata(self, fname, convert_dates=None, write_index=True, time_stamp : datetime A datetime to use as file creation da...
Updates the docstring for the `to_stata()` method to fix the `dataset_label` parameter. See #19817. Also changes the examples; it's a little weird for the examples for `to_stata()` to detail the `StataWriter` class. - [ ] closes #19817 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19818
2018-02-21T17:04:17Z
2018-02-22T02:20:06Z
2018-02-22T02:20:06Z
2018-02-22T02:20:09Z
ASV: excel asv occasional failure
diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py index a7c6c43d15026..58ab6bb8046c5 100644 --- a/asv_bench/benchmarks/io/excel.py +++ b/asv_bench/benchmarks/io/excel.py @@ -25,13 +25,12 @@ def setup(self, engine): self.writer_read.save() self.bio_read.seek(0) - ...
closes #19779
https://api.github.com/repos/pandas-dev/pandas/pulls/19811
2018-02-21T11:05:51Z
2018-02-21T11:53:21Z
2018-02-21T11:53:21Z
2018-02-21T11:53:21Z
BF: Skip test_read_excel_parse_dates if no xlwt which is used in to_excel
diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py index ebb8424b78ed4..4c790a0f0f64a 100644 --- a/pandas/tests/io/test_excel.py +++ b/pandas/tests/io/test_excel.py @@ -968,6 +968,7 @@ def test_read_excel_chunksize(self): def test_read_excel_parse_dates(self): # GH 11544, 12051 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19803
2018-02-20T22:37:24Z
2018-02-21T11:30:59Z
2018-02-21T11:30:59Z
2018-02-21T17:49:01Z
ENH: Add columns parameter to from_dict
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index a4b943f995a33..f3dca23d1039f 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -295,6 +295,7 @@ Other Enhancements - ``IntervalIndex.astype`` now supports conversions between subtypes when passed an...
- [x] xref #18529 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry @jorisvandenbossche it seems to have been quite straightforward to implement this but let me know if I missed anything.
https://api.github.com/repos/pandas-dev/pandas/pulls/19802
2018-02-20T21:56:46Z
2018-02-22T10:34:47Z
2018-02-22T10:34:47Z
2018-02-22T10:47:52Z
dispatch Series[datetime64] comparison ops to DatetimeIndex
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index eb8133a1bbf97..c9b446b97e956 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -138,11 +138,9 @@ def wrapper(self, other): result = func(np.asarray(other)) result = com....
When we tried this a few weeks ago (#19524) there were idiosyncratic CI errors. Hopefully the smaller scope here will avoid that problem. If this works, we'll be very nearly ready to move these ops to the Block level and ensure consistency with DataFrame in addition to Index/Series.
https://api.github.com/repos/pandas-dev/pandas/pulls/19800
2018-02-20T21:16:13Z
2018-03-01T22:54:43Z
2018-03-01T22:54:43Z
2018-06-22T03:24:44Z
DOC: Edit installation instructions for clarity.
diff --git a/doc/source/install.rst b/doc/source/install.rst index c4e331d64e721..4ff63d59024b2 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -6,7 +6,7 @@ Installation ============ -The easiest way for the majority of users to install pandas is to install it +The easiest way to install pandas ...
Rewrote some lines to ease reading. Didn't change substance.
https://api.github.com/repos/pandas-dev/pandas/pulls/19798
2018-02-20T20:21:41Z
2018-02-21T10:56:22Z
2018-02-21T10:56:22Z
2018-02-21T10:56:32Z
Simplify bool ops closures, improve tests
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index fb19fd81fe7c7..8045f152f8dd5 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -651,6 +651,7 @@ Other API Changes - :func:`Series.to_csv` now accepts a ``compression`` argument that works in the sam...
Series bool ops are not going to be possible to dispatch to their Index counterparts, so this one I'm _mostly_ going to leave alone. This breaks up the tests, adds an xfail for op(Series, Categorical), and fixes+tests op(series, Index). It makes some headway in simplifying the closure so the possible paths through th...
https://api.github.com/repos/pandas-dev/pandas/pulls/19795
2018-02-20T18:59:45Z
2018-03-04T21:40:24Z
null
2020-04-05T17:40:57Z
TST: move more series tests to test_arithmetic
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index f727edf8fb7d8..5b8d9cfab3e0d 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -1,17 +1,26 @@ # -*- coding: utf-8 -*- from datetime import datetime, timedelta import op...
Doesn't overlap with other outstanding PRs. Per usual, there is more that _could_ be done, but we're doing this in pieces. - [ ] 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/19794
2018-02-20T18:08:31Z
2018-02-21T23:50:05Z
2018-02-21T23:50:05Z
2018-06-22T03:24:31Z
Raise OptionError instead of KeyError in __getattr__. Fixes #19789.
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ca5749afd11bc..1a8fa5a89468a 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -908,3 +908,4 @@ Other ^^^^^ - Improved error message when attempting to use a Python keyword as an identifier in a ...
- [x] closes #19789 - [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/19790
2018-02-20T14:51:37Z
2018-02-24T15:08:17Z
2018-02-24T15:08:17Z
2018-02-24T15:08:19Z
parametrize a whole mess of tests
diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py index ddc97636ae0a8..9ce34e9b22efb 100644 --- a/pandas/tests/indexes/datetimes/test_arithmetic.py +++ b/pandas/tests/indexes/datetimes/test_arithmetic.py @@ -614,19 +614,19 @@ def test_sub_dti_dti(self): ...
What it says on the tin. Because this is a big diff, nothing is moved or changed other than parametrizing tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/19785
2018-02-20T06:06:59Z
2018-02-22T00:11:32Z
2018-02-22T00:11:32Z
2018-06-22T03:23:57Z
DOC: correct Series.searchsorted example
diff --git a/pandas/core/base.py b/pandas/core/base.py index 0ca029ffd4c25..ebd69a5f9aac1 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1165,21 +1165,16 @@ def factorize(self, sort=False, na_sentinel=-1): >>> x.searchsorted([1, 3], side='right') array([1, 3]) - >>> x = pd.Cat...
two major changes: - categories must be ordered using series.searchsorted. - delete last two exsamples because of `ValueError: Value(s) to be inserted must be in categories`. - [ ] 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/19784
2018-02-20T05:04:00Z
2018-02-21T10:38:42Z
2018-02-21T10:38:42Z
2018-02-21T14:04:57Z
BUG: GH19458 fixes precision issue in TimeDelta.total_seconds()
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index f31d0a5a0667c..349d7607559c5 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -733,6 +733,7 @@ Datetimelike - Bug in :func:`to_datetime` where passing an out-of-bounds datetime with ``errors='coerc...
- [X] closes #19458 - [X] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19783
2018-02-20T04:01:37Z
2018-02-20T11:20:47Z
2018-02-20T11:20:46Z
2018-02-20T12:10:09Z
Sparse Ops Cleanup
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b96af6af3707f..1aeda86c55eff 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3995,7 +3995,7 @@ def _combine_const(self, other, func, errors='raise', try_cast=True): try_cast=try_cast) return self...
This is in preparation for implementing the direct-pinning discussed [here](https://github.com/pandas-dev/pandas/pull/19649#discussion_r167527010). The main roadblock to that is SparseSeries which calls ops.add_special_arithmetic_methods twice. This PR gets rid of the double-call, so the follow-up will be straight-fo...
https://api.github.com/repos/pandas-dev/pandas/pulls/19782
2018-02-20T03:14:27Z
2018-02-21T00:15:57Z
2018-02-21T00:15:57Z
2018-02-21T00:18:17Z
DOC: RangeIndex as default index
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b96af6af3707f..b25dbe4fac6da 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -251,11 +251,11 @@ class DataFrame(NDFrame): data : numpy ndarray (structured or homogeneous), dict, or DataFrame Dict can contain Series, arrays, con...
Small correction to DataFrame docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/19781
2018-02-20T03:04:38Z
2018-02-22T02:17:54Z
2018-02-22T02:17:54Z
2018-02-22T10:35:50Z
DOC: added plotting module to the api reference docs
diff --git a/doc/source/api.rst b/doc/source/api.rst index 103b0fe9ff019..46c6fb46b9d41 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2378,15 +2378,23 @@ Style Export and Import Styler.to_excel Plotting -~~~~~~~~ +-------- -.. currentmodule:: pandas +.. currentmodule:: pandas.plotting + +The fol...
- [x ] closes #19777 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19780
2018-02-20T02:46:01Z
2018-02-22T00:18:04Z
2018-02-22T00:18:04Z
2018-02-22T00:18:40Z
CI: remove PIP & old conda build in favor of pandas-ci builds
diff --git a/.travis.yml b/.travis.yml index b1168f18315c3..22ef6c819c6d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,9 +50,6 @@ matrix: packages: - python-gtk2 # In allow_failures - - dist: trusty - env: - - JOB="3.5" TEST_ARGS="--skip-slow --skip-network" - dist: t...
xref https://github.com/pandas-dev/pandas-ci/pull/3
https://api.github.com/repos/pandas-dev/pandas/pulls/19775
2018-02-19T20:02:37Z
2018-02-19T23:05:15Z
2018-02-19T23:05:15Z
2018-02-19T23:05:15Z
BUG: DataFrame.diff(axis=0) with DatetimeTZ data
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 90ce6b47728fb..ac527387ae6a1 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -833,6 +833,7 @@ Timezones - Bug in the :class:`DataFrame` constructor, where tz-aware Datetimeindex and a given column...
- [x] closes #18578 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Unfortunately, `DataFrame.diff` doesn't work correctly with axis=1; it returns values like so after this patch: ``` In [2]: df = DataFrame({0: date_range('2010', fre...
https://api.github.com/repos/pandas-dev/pandas/pulls/19773
2018-02-19T18:42:01Z
2018-03-01T22:50:35Z
2018-03-01T22:50:35Z
2018-03-01T23:48:14Z
BUG: Fix MultiIndex .loc with all numpy arrays
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 76c4fa08fca4d..e6ed71c719c9a 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -833,6 +833,7 @@ MultiIndex - Bug in :func:`MultiIndex.get_loc` which would cast boolean to integer labels (:issue:`190...
- [x] closes #19686 - [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/19772
2018-02-19T18:12:17Z
2018-02-23T01:40:20Z
2018-02-23T01:40:20Z
2018-02-23T03:50:50Z
Fix Timedelta floordiv, rfloordiv with offset, fix td64 return types
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 11c49995372f5..56c30615a20fa 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -716,6 +716,8 @@ Datetimelike - Bug in :class:`Timestamp` and :func:`to_datetime` where a string representing a barely ...
Fixes xfails introduced in #19752.
https://api.github.com/repos/pandas-dev/pandas/pulls/19770
2018-02-19T17:45:25Z
2018-02-19T23:16:37Z
2018-02-19T23:16:37Z
2018-06-22T03:23:40Z
DEPR: remove pandas.core.common is_*
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 2f820043d7b6f..5520e3af8b0ed 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -388,6 +388,23 @@ Convert to an xarray DataArray p.to_xarray() + + +.. _whatsnew_0230.api_breaking.core_common: ...
xref #13990 xref #19304
https://api.github.com/repos/pandas-dev/pandas/pulls/19769
2018-02-19T17:30:28Z
2018-02-22T00:12:22Z
2018-02-22T00:12:22Z
2018-02-22T00:12:51Z
DOC: correct Panel.apply exsample
diff --git a/pandas/core/panel.py b/pandas/core/panel.py index 2cb80e938afb9..7f973992fb07f 100644 --- a/pandas/core/panel.py +++ b/pandas/core/panel.py @@ -1020,7 +1020,7 @@ def apply(self, func, axis='major', **kwargs): Equivalent to previous: - >>> p.apply(lambda x: x.sum(), axis='minor') + ...
- [ ] 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/19766
2018-02-19T16:02:22Z
2018-02-19T16:10:32Z
2018-02-19T16:10:32Z
2018-02-20T01:45:57Z
DOC/BLD: update vendored IPython.sphinxext version
diff --git a/doc/sphinxext/ipython_sphinxext/ipython_console_highlighting.py b/doc/sphinxext/ipython_sphinxext/ipython_console_highlighting.py index c5ec26aefd442..b93a151fb3cb0 100644 --- a/doc/sphinxext/ipython_sphinxext/ipython_console_highlighting.py +++ b/doc/sphinxext/ipython_sphinxext/ipython_console_highlightin...
updated to commit cc353b25b0fff58e4ed13899df9b3c8153df01d9 from ipython/ipython xref https://github.com/pandas-dev/pandas/issues/18147, https://github.com/pandas-dev/pandas/pull/19687 Alternative for https://github.com/pandas-dev/pandas/pull/19657 until new release of IPython is out
https://api.github.com/repos/pandas-dev/pandas/pulls/19765
2018-02-19T10:59:16Z
2018-02-19T13:18:18Z
2018-02-19T13:18:18Z
2018-02-19T13:18:45Z
DOC: fix various warnings and errors in the docs (from deprecations/api changes
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index c455fbb8d0687..c81842d3d9212 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -274,7 +274,7 @@ Passing a list of labels or tuples works similar to reindexing: df.loc[[('bar', 'two'), ('qux', 'one')]] -.. info:: +.. note:: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19763
2018-02-19T10:36:33Z
2018-02-20T09:20:56Z
2018-02-20T09:20:56Z
2018-02-20T09:21:04Z
ENH: ISO8601-compliant datetime string conversion in `iterrows()` and Series construction.
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 99a3773603fc4..7f33372f765fb 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -766,7 +766,6 @@ Datetimelike - Bug in :func:`to_datetime` where passing an out-of-bounds datetime with ``errors='coerc...
- [x] closes https://github.com/pandas-dev/pandas/issues/19671 - [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/19762
2018-02-19T09:19:19Z
2018-02-25T23:05:25Z
2018-02-25T23:05:25Z
2018-02-25T23:17:37Z
DOC: correct Period.strftime exsample
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index c11a8b149bc13..32ffe4e6d0453 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -1403,7 +1403,7 @@ cdef class _Period(object): Examples -------- - >>> a = Period(freq='Q@JUL', y...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19758
2018-02-19T02:55:34Z
2018-02-19T13:52:14Z
2018-02-19T13:52:14Z
2018-02-19T14:49:48Z
ENH: fake http proxy in case of --skip-network testing
diff --git a/ci/script_multi.sh b/ci/script_multi.sh index 6c354fc4cab0b..45c61ee3172fe 100755 --- a/ci/script_multi.sh +++ b/ci/script_multi.sh @@ -12,6 +12,11 @@ if [ -n "$LOCALE_OVERRIDE" ]; then python -c "$pycmd" fi +# Enforce absent network during testing by faking a proxy +if echo "$TEST_ARGS" | grep -e ...
- [ ] tests added / passed - most likely they will fail until #19754 is merged. there might be more - [ ] whatsnew entry - probably not worthwhile for this
https://api.github.com/repos/pandas-dev/pandas/pulls/19757
2018-02-19T02:49:43Z
2018-02-19T15:38:41Z
2018-02-19T15:38:41Z
2018-02-20T22:35:27Z
ENH: implement Timedelta.__mod__ and __divmod__
diff --git a/doc/source/timedeltas.rst b/doc/source/timedeltas.rst index 50cff4c7bbdfb..5f3a01f0725d4 100644 --- a/doc/source/timedeltas.rst +++ b/doc/source/timedeltas.rst @@ -283,6 +283,20 @@ Rounded division (floor-division) of a ``timedelta64[ns]`` Series by a scalar td // pd.Timedelta(days=3, hours=4) pd.T...
This implements exclusively the `__mod__, __rmod__, __divmod__, __rdivmod__` parts of #19365, does _not_ implement any of the bugfixes or tests that got rolled into that PR. Several tests are xfailed for now, will be fixed after #19738. These tests will be rebased/moved to test_arithmetic after #19752. - [ ] close...
https://api.github.com/repos/pandas-dev/pandas/pulls/19755
2018-02-19T00:04:04Z
2018-02-19T23:16:05Z
2018-02-19T23:16:05Z
2018-06-22T03:23:22Z
BF: mark two tests (test_{statsmodels,seaborn}) as requiring network
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index b438d6a6137b0..a595d9f18d6b8 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -53,6 +53,7 @@ def test_xarray(df): assert df.to_xarray() is not None +@tm.network def test_statsmodels(): ...
- [notworthit] closes #xxxx - [nowtheywill] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [notworthit] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19754
2018-02-18T23:13:05Z
2018-02-19T06:00:14Z
null
2018-02-19T06:00:14Z
TST: add test for numpy ops, esp. nanmin/max bug for np<1.13
diff --git a/pandas/tests/test_nanops.py b/pandas/tests/test_nanops.py index df3c49a73d227..dffb303af6ae1 100644 --- a/pandas/tests/test_nanops.py +++ b/pandas/tests/test_nanops.py @@ -13,6 +13,7 @@ import pandas.core.nanops as nanops import pandas.util.testing as tm import pandas.util._test_decorators as td +from p...
- [x] closes #8383 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The bug in #8383 concerns np.nanmin and np.nanmax only, don't know if I'm testing too much.
https://api.github.com/repos/pandas-dev/pandas/pulls/19753
2018-02-18T22:13:06Z
2018-02-19T13:50:57Z
2018-02-19T13:50:57Z
2018-05-18T18:09:17Z
split off scalar tests to submodules
diff --git a/pandas/tests/scalar/interval/__init__.py b/pandas/tests/scalar/interval/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/scalar/test_interval.py b/pandas/tests/scalar/interval/test_interval.py similarity index 100% rename from pandas/tests/scalar/test_interval.p...
Spun off from #19738, implements test_arithmetic for timedeltas, _moves_ and organizes tests without changing anything in the non-test code. A handful of xfail tests are implemented (these are fixed in #19378)
https://api.github.com/repos/pandas-dev/pandas/pulls/19752
2018-02-18T20:34:27Z
2018-02-19T16:45:31Z
2018-02-19T16:45:31Z
2018-06-22T03:31:08Z
DEPR: Add deprecation warning for factorize() order keyword
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 35856b64c171a..ed3069943bb6a 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -610,6 +610,7 @@ Deprecations - The ``broadcast`` parameter of ``.apply()`` is deprecated in favor of ``result_type='...
#### What's this PR do? In response to #19727. Adds functionality to the ``deprecate_kwargs`` utility. Currently, the utility doesn't allow the deprecation of an old keyword without having a new one in place. The change proposed here allows the deprecation of an *old* keyword without specifying a *new* keyword by a...
https://api.github.com/repos/pandas-dev/pandas/pulls/19751
2018-02-18T19:54:51Z
2018-02-21T11:37:47Z
2018-02-21T11:37:47Z
2018-02-22T05:17:15Z
FIX: const-correctness in numpy helpers
diff --git a/pandas/_libs/src/numpy_helper.h b/pandas/_libs/src/numpy_helper.h index 844be9b292be3..5cfa51dc8a0be 100644 --- a/pandas/_libs/src/numpy_helper.h +++ b/pandas/_libs/src/numpy_helper.h @@ -32,7 +32,7 @@ PANDAS_INLINE PyObject* get_value_1d(PyArrayObject* ap, Py_ssize_t i) { // returns ASCII or UTF8 (py3)...
In python 3.7 the return type of PyUnicode_AsUTF8 changed from (char *) to (const char *). PyUnicode_FromString also takes (const char *) as input, also be explicit about that. https://bugs.python.org/issue28769 commit 2a404b63d48d73bbaa007d89efb7a01048475acd in cpython - [ ] closes #xxxx - [ ] tests added...
https://api.github.com/repos/pandas-dev/pandas/pulls/19749
2018-02-18T17:34:19Z
2018-02-18T23:32:33Z
2018-02-18T23:32:33Z
2018-02-19T01:34:34Z
DOC: Updated tutorials.rst, added 3 recent video tutorials
diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst index 710212bc237cd..db9385519bff2 100644 --- a/doc/source/tutorials.rst +++ b/doc/source/tutorials.rst @@ -9,52 +9,52 @@ This is a guide to many pandas tutorials, geared mainly for new users. Internal Guides --------------- -pandas own :ref:`10 Minut...
I have made the following changes to `tutorials.rst` (found [here](http://pandas-docs.github.io/pandas-docs-travis/tutorials.html)): - Updated the version of the [pandas-cookbook](https://github.com/jvns/pandas-cookbook) from `v0.1` to `v0.2`. - Added an introductory paragraph to the tutorial series by @TomAugspurge...
https://api.github.com/repos/pandas-dev/pandas/pulls/19748
2018-02-18T11:39:47Z
2018-02-18T13:38:17Z
2018-02-18T13:38:17Z
2018-02-18T13:38:18Z
DOC: Spellcheck of gotchas.rst (FAQ page)
diff --git a/ci/lint.sh b/ci/lint.sh index e3a39668885f0..fcd65fc5aba5e 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -156,6 +156,7 @@ if [ "$LINT" ]; then RET=1 fi echo "Check for deprecated messages without sphinx directive DONE" + else echo "NOT Linting" fi diff --git a/doc/source/gotchas...
Minor changes to the documentation, specifically `gotchas.rst`, i.e. the FAQ page. * Function/method references as links. * Consistent double backticks ` `` ` around Series, DataFrame. * Minor rephrasing of a sentence or two, added some missing punctuation. * Replaced `.. ipython::` with `ipython:: python` twice,...
https://api.github.com/repos/pandas-dev/pandas/pulls/19747
2018-02-18T09:59:15Z
2018-02-23T11:46:12Z
2018-02-23T11:46:12Z
2018-02-23T11:46:12Z
[DOCS] Add example of how to preserve order of columns with usecols.
diff --git a/doc/source/io.rst b/doc/source/io.rst index 7bb34e4d232dd..b7f8792b42fd6 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -135,8 +135,14 @@ usecols : array-like or callable, default ``None`` be positional (i.e. integer indices into the document columns) or strings that correspond to column n...
#### What's this PR do? Adding an example of how to preserve order when using the ``usecols`` parameter. I've noticed that some folks are still unaware that the columns will not necessarily be returned in the specified order passed to ``usecols``.
https://api.github.com/repos/pandas-dev/pandas/pulls/19746
2018-02-18T07:00:57Z
2018-02-21T19:53:08Z
2018-02-21T19:53:08Z
2018-02-22T05:21:23Z
Conform Series.to_csv to DataFrame.to_csv
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index ed4022d422b4d..a0633a2be085a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -245,7 +245,7 @@ Deprecations - :meth:`DataFrame.to_stata`, :meth:`read_stata`, :class:`StataReader` and :class:`StataW...
(**EDIT**: Most of this comment is related to an old attempt. See [this comment](https://github.com/pandas-dev/pandas/pull/19745#issuecomment-404944973) and below for the content of the current PR) I tried my best to keep everything backwards compatible. A simpler solution would have been simply ```python def ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19745
2018-02-18T01:06:49Z
2018-07-25T16:49:08Z
null
2023-05-11T01:17:24Z
Fix name setting in DTI/TDI __add__ and __sub__
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 879b245af49cd..fdcec41110363 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -730,6 +730,8 @@ Datetimelike - Bug in :class:`Timestamp` and :func:`to_datetime` where a string representing a barely ...
- [ ] 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/19744
2018-02-17T23:01:13Z
2018-02-21T23:55:22Z
2018-02-21T23:55:22Z
2018-06-22T03:31:07Z
DOC/BLD: Pinning sphinx to 1.5, as 1.7 has been released and it's incompatible with vendored numpydoc
diff --git a/ci/requirements_dev.txt b/ci/requirements_dev.txt index 82f8de277c57b..a474658fa2922 100644 --- a/ci/requirements_dev.txt +++ b/ci/requirements_dev.txt @@ -7,4 +7,4 @@ pytest>=3.1 python-dateutil>=2.5.0 pytz setuptools>=3.3 -sphinx +sphinx=1.5*
- [X] closes #19742 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19743
2018-02-17T22:00:32Z
2018-02-18T17:14:39Z
2018-02-18T17:14:39Z
2018-02-19T08:14:57Z
Fix wraparound/overflow in date_range
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index a2198d9103528..fac007febd29f 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -716,7 +716,7 @@ Datetimelike - Bug in :class:`Timestamp` and :func:`to_datetime` where a string representing a barely ...
- [x] closes #14187 - [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/19740
2018-02-17T18:53:45Z
2018-02-19T21:49:45Z
null
2018-02-19T21:50:07Z
finish off tests.tseries.test_timezones
diff --git a/pandas/tests/scalar/timestamp/test_unary_ops.py b/pandas/tests/scalar/timestamp/test_unary_ops.py index 8a6989c909cb2..994ff86e6fdf9 100644 --- a/pandas/tests/scalar/timestamp/test_unary_ops.py +++ b/pandas/tests/scalar/timestamp/test_unary_ops.py @@ -4,11 +4,13 @@ import pytest import pytz from pytz im...
- [ ] 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/19739
2018-02-17T04:58:44Z
2018-02-18T16:22:16Z
2018-02-18T16:22:16Z
2018-02-18T18:22:13Z
Implement missing tests, fix offset floordiv, rfloordiv, fix return types
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index a2198d9103528..9a4c5b42c858f 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -716,6 +716,8 @@ Datetimelike - Bug in :class:`Timestamp` and :func:`to_datetime` where a string representing a barely ...
This splits off of #19365 a bunch of peripheral changes that were never intended to be part of #19365 in the first place. - Implements many tests in the "how is there not already a test for that!?" category - Fixes(+tests) Timedelta // DateOffset and DateOffset // Timedelta - Fixes(+tests) return types for `Timede...
https://api.github.com/repos/pandas-dev/pandas/pulls/19738
2018-02-17T02:38:52Z
2018-02-19T07:36:38Z
null
2018-06-22T03:31:10Z
DOC: correct merge_asof example
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 4b99b0407cfcc..7b1a0875bba59 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -457,8 +457,8 @@ def merge_asof(left, right, on=None, time ticker price quantity bid ask 0...
- [ ] closes #19489 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry - update of incorrect documentation example for merge_asof. - add a test corresponding to this example.
https://api.github.com/repos/pandas-dev/pandas/pulls/19737
2018-02-17T02:18:03Z
2018-02-18T17:46:54Z
2018-02-18T17:46:53Z
2018-02-19T00:06:21Z
Split+Parametrize Timedelta tests
diff --git a/pandas/tests/scalar/timedelta/test_construction.py b/pandas/tests/scalar/timedelta/test_construction.py new file mode 100644 index 0000000000000..5ccad9e6b4e3c --- /dev/null +++ b/pandas/tests/scalar/timedelta/test_construction.py @@ -0,0 +1,222 @@ +# -*- coding: utf-8 -*- +from datetime import timedelta +...
Started splitting non-contentious parts off of #19365. This even-easier bit got split off of that. Just organizing+splitting+parametrizing tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/19736
2018-02-17T01:54:34Z
2018-02-20T11:16:30Z
2018-02-20T11:16:30Z
2018-06-22T03:31:07Z
TST: GH18498 - Split test_pytables into sub-modules
diff --git a/pandas/tests/io/pytables/__init__.py b/pandas/tests/io/pytables/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/io/pytables/common.py b/pandas/tests/io/pytables/common.py new file mode 100644 index 0000000000000..f014874c79ce0 --- /dev/null +++ b/pandas/tests/i...
- [x] closes #18498 - [x] tests moved / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Moved test classes for pytables into sub-modules. Moved hdf test data files needed into sub-module. I did not change any tests, just broke up the classes into separate modu...
https://api.github.com/repos/pandas-dev/pandas/pulls/19735
2018-02-17T01:25:10Z
2018-07-28T14:36:46Z
null
2018-07-28T14:36:46Z
CLN: Removed Unnecessary Conditionals in groupby_helper
diff --git a/pandas/_libs/groupby_helper.pxi.in b/pandas/_libs/groupby_helper.pxi.in index fe4d31516d839..93fbb4477e2d0 100644 --- a/pandas/_libs/groupby_helper.pxi.in +++ b/pandas/_libs/groupby_helper.pxi.in @@ -56,36 +56,19 @@ def group_add_{{name}}(ndarray[{{dest_type2}}, ndim=2] out, with nogil: - i...
- [X] closes #19724 - [X] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ASV results are pretty inconsistent but I couldn't find anything directly related from this change. Of the marks below, only `max` was touched by this change, and that doesn't ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19734
2018-02-17T00:48:42Z
2018-02-18T16:39:50Z
2018-02-18T16:39:49Z
2018-02-18T18:40:56Z
BUG: Avoid Timedelta rounding when specifying unit and integer (#12690)
diff --git a/doc/source/whatsnew/v0.23.1.txt b/doc/source/whatsnew/v0.23.1.txt index 5a553264e828b..5e26c0ac4433a 100644 --- a/doc/source/whatsnew/v0.23.1.txt +++ b/doc/source/whatsnew/v0.23.1.txt @@ -53,7 +53,10 @@ Strings ^^^^^^^ - Bug in :meth:`Series.str.replace()` where the method throws `TypeError` on Python ...
- [x] closes #14156 - [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/19732
2018-02-16T20:28:14Z
2018-05-21T11:06:04Z
2018-05-21T11:06:04Z
2018-06-08T17:12:29Z
BUG: drop_duplicates not raising KeyError on missing key
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index a2198d9103528..a4924417ff2b7 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -767,6 +767,8 @@ Indexing - Bug in :class:`IntervalIndex` where empty and purely NA data was constructed inconsistently...
Fix #17879 introduced an error by iterating over the columns in the dataframe, not the columns in the subset. This meant that passing in a column name missing from the dataframe would no longer raise a `KeyError` like it had previously. This fix checks the subset first before pulling necessary columns from the dataf...
https://api.github.com/repos/pandas-dev/pandas/pulls/19730
2018-02-16T18:14:12Z
2018-02-21T11:40:22Z
2018-02-21T11:40:21Z
2018-02-21T14:16:45Z
BUG: fix index op names and pinning
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 59fe4bba649d3..c343126db0ea1 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1,11 +1,11 @@ -import datetime +from datetime import datetime, timedelta import warnings import operator import numpy as np from ...
This is a moderately big one, but changes very little. Fixes incorrect Index ops names and several methods that are defined but not pinned to the class (#19716). Avoids the need to pass `reversed` and `str_rep` in a bunch of places, cleans up some of the Index classmethods. Removes the no-longer-needed catchin...
https://api.github.com/repos/pandas-dev/pandas/pulls/19723
2018-02-16T02:09:12Z
2018-02-23T11:36:43Z
2018-02-23T11:36:42Z
2018-06-22T03:31:15Z
Cythonized GroupBy any
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index c347442784d41..3e7e5c821b14c 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -11,6 +11,13 @@ from .pandas_vb_common import setup # noqa +method_blacklist = { + 'object': {'median', 'prod',...
- [X] closes #15435 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ```bash before after ratio [2fdf1e25] [a2223dbf] - 1.21s 956Β±3ms 0.79 groupby.GroupByMethods.time_method('floa...
https://api.github.com/repos/pandas-dev/pandas/pulls/19722
2018-02-16T02:06:07Z
2018-03-01T01:30:19Z
2018-03-01T01:30:19Z
2018-03-01T03:40:46Z
Remove redundant parentheses from if conditions
diff --git a/pandas/plotting/_timeseries.py b/pandas/plotting/_timeseries.py index 56b5311326e98..1f99ce0918b86 100644 --- a/pandas/plotting/_timeseries.py +++ b/pandas/plotting/_timeseries.py @@ -108,8 +108,8 @@ def _upsample_others(ax, freq, kwargs): lines.extend(rlines) labels.extend(rlabels) - ...
- [ ] 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/19719
2018-02-15T20:40:44Z
2018-02-15T20:46:51Z
null
2018-02-15T20:46:51Z
BUG: fix Series constructor for scalar and Categorical dtype
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 8d6a3dc72163e..c963a3f403868 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -709,7 +709,8 @@ Categorical ``self`` but in a different order (:issue:`19551`) - Bug in :meth:`Index.astype` with a...
Categories and ordering of the resulting Series were not the same as those of the passed Categorical dtype. Closes #19565 - [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/19717
2018-02-15T18:49:12Z
2018-02-24T14:58:41Z
2018-02-24T14:58:41Z
2018-02-24T14:58:45Z
BUG: Fix Series constructor for Categorical with index
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index fb22dc40e335f..5330f7e7e998b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -919,6 +919,7 @@ Reshaping - Comparisons between :class:`Series` and :class:`Index` would return a ``Series`` with an i...
Fixes Series constructor so that ValueError is raised when a Categorical and index of incorrect length are given. Closes issue #19342 - [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/19714
2018-02-15T14:04:56Z
2018-02-27T01:13:01Z
2018-02-27T01:13:01Z
2018-02-27T01:45:16Z
Implement maybe_cache for compat between immutable/mutable classes
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 932618ba1df21..2a0e6f9ad4702 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -848,3 +848,4 @@ Other ^^^^^ - Improved error message when attempting to use a Python keyword as an identifier in a ...
Also fixes lookups/docstrings for class-level access to cache_readonly attributes. - [x] closes #19700 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Related: https://github.com/pandas-dev/pandas2/issues/27
https://api.github.com/repos/pandas-dev/pandas/pulls/19709
2018-02-15T06:35:41Z
2018-02-16T03:36:37Z
null
2020-04-05T17:39:43Z
Fix the non cython build for cpp extensions
diff --git a/setup.py b/setup.py index c66979dd19ef0..c7784260d79ca 100755 --- a/setup.py +++ b/setup.py @@ -311,7 +311,6 @@ class CheckSDist(sdist_class): 'pandas/_libs/missing.pyx', 'pandas/_libs/reduction.pyx', 'pandas/_libs/testing.pyx', - 'panda...
- [ ] closes #19668 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @TomAugspurger @jreback This _should_ fix the problem with building with a non Cython environment. The problem is that we assume extensions are C everywhere and I didn't ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19707
2018-02-15T00:57:10Z
2018-02-19T23:38:43Z
2018-02-19T23:38:43Z
2018-02-19T23:38:47Z
DOC: Adding guide for the pandas documentation sprint
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 258ab874cafcf..d0c5032079288 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -292,12 +292,9 @@ Some other important things to know about the docs: overviews per topic together with some other information (what'...
This PR is to make it easier to review the proposal guide for the pandas documentation sprint, as discussed in pandas-dev.
https://api.github.com/repos/pandas-dev/pandas/pulls/19704
2018-02-14T22:06:34Z
2018-03-12T17:32:30Z
2018-03-12T17:32:30Z
2018-03-12T17:44:34Z
Try matplotlib RC
diff --git a/ci/requirements-3.6.sh b/ci/requirements-3.6.sh index f5c3dbf59a29d..4cdd8f90ec278 100644 --- a/ci/requirements-3.6.sh +++ b/ci/requirements-3.6.sh @@ -5,3 +5,5 @@ source activate pandas echo "[install 3.6 downstream deps]" conda install -n pandas -c conda-forge pandas-datareader xarray geopandas seabo...
Don't want to merge this.
https://api.github.com/repos/pandas-dev/pandas/pulls/19702
2018-02-14T21:44:34Z
2018-03-12T20:02:40Z
null
2018-03-12T20:02:44Z
GroupBy Rank SegFault Fix - astype instead of view
diff --git a/pandas/_libs/groupby_helper.pxi.in b/pandas/_libs/groupby_helper.pxi.in index 1d77a373bb7dd..fe4d31516d839 100644 --- a/pandas/_libs/groupby_helper.pxi.in +++ b/pandas/_libs/groupby_helper.pxi.in @@ -531,7 +531,7 @@ def group_rank_{{name}}(ndarray[float64_t, ndim=2] out, # each label corresponds to a ...
xref #19679 and #19481
https://api.github.com/repos/pandas-dev/pandas/pulls/19701
2018-02-14T19:46:29Z
2018-02-14T23:12:15Z
2018-02-14T23:12:15Z
2018-02-14T23:22:37Z
Move conda build and ASV check to cron job
diff --git a/.travis.yml b/.travis.yml index 4cbe7f86bd2fa..b1168f18315c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,7 +52,7 @@ matrix: # In allow_failures - dist: trusty env: - - JOB="3.5_CONDA_BUILD_TEST" TEST_ARGS="--skip-slow --skip-network" CONDA_BUILD_TEST=true + - JOB="3.5" ...
xref #19695 (not closing until pip build test is moved or we decide to keep that here) https://travis-ci.org/pandas-dev/pandas-ci and http://github.com/pandas-dev/pandas-ci
https://api.github.com/repos/pandas-dev/pandas/pulls/19698
2018-02-14T16:22:16Z
2018-02-14T19:56:52Z
2018-02-14T19:56:52Z
2018-02-14T19:58:11Z
remove usages of _get_na_value
diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py index b7af533f96ddc..2e5ec8b554ce7 100644 --- a/pandas/core/indexes/api.py +++ b/pandas/core/indexes/api.py @@ -2,7 +2,6 @@ _new_Index, _ensure_index, ...
I think the function might also be incorrectly excluding period_dtype.
https://api.github.com/repos/pandas-dev/pandas/pulls/19692
2018-02-14T03:53:07Z
2018-02-16T18:21:52Z
2018-02-16T18:21:52Z
2018-02-18T18:22:02Z
add missing args, make kwarg explicit
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index be7c1624936bf..81b6b28d3927e 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3943,8 +3943,8 @@ def _evaluate_with_timedelta_like(self, other, op, opstr, reversed=False): def _evaluate_with_datetime_like(self...
Index._evaluate_compare is never hit, but if it were it would raise twice: once for not having the right signature and again for referencing a non-existent base.AbstractMethodError `BlockManager.isna` is entirely non-obvious because there is a required kwarg that isn't in its signature. This makes it explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/19691
2018-02-14T03:10:36Z
2018-02-15T12:31:12Z
2018-02-15T12:31:12Z
2018-06-22T03:32:32Z
DOC/BLD: unpin sphinx to use sphinx 1.7
diff --git a/ci/requirements-3.6_DOC.run b/ci/requirements-3.6_DOC.run index 6c45e3371e9cf..084f38ce17eb2 100644 --- a/ci/requirements-3.6_DOC.run +++ b/ci/requirements-3.6_DOC.run @@ -1,7 +1,7 @@ ipython ipykernel ipywidgets -sphinx=1.5* +sphinx nbconvert nbformat notebook diff --git a/ci/requirements_dev.txt b/...
xref https://github.com/pandas-dev/pandas/issues/18147, closes https://github.com/pandas-dev/pandas/issues/16705 Sphinx 1.7 is released, so let's try out if we can now remove the pinning of sphinx to 1.5.x
https://api.github.com/repos/pandas-dev/pandas/pulls/19687
2018-02-13T21:53:27Z
2018-02-26T08:46:26Z
2018-02-26T08:46:26Z
2018-02-26T08:46:29Z
API: Validate keyword arguments to fillna
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index a4b943f995a33..54fbbb12c2917 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -556,6 +556,7 @@ Datetimelike API Changes - Subtracting ``NaT`` from a :class:`Series` with ``dtype='datetime64[ns]'`` ...
Closes https://github.com/pandas-dev/pandas/issues/19682
https://api.github.com/repos/pandas-dev/pandas/pulls/19684
2018-02-13T20:13:08Z
2018-02-22T00:20:58Z
2018-02-22T00:20:58Z
2018-05-02T13:09:54Z
DOC: fix IPython spelling.
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2782ee7b9d201..bc045d74cee52 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1059,7 +1059,7 @@ def to_gbq(self, destination_table, project_id, chunksize=10000, private_key : str (optional) Service account private key i...
It's upper case I and P (or full lower case),
https://api.github.com/repos/pandas-dev/pandas/pulls/19683
2018-02-13T19:53:57Z
2018-02-13T21:41:15Z
2018-02-13T21:41:15Z
2018-02-13T21:41:59Z
Explicitly set dtype of np.lexsort in group_rank
diff --git a/pandas/_libs/groupby_helper.pxi.in b/pandas/_libs/groupby_helper.pxi.in index 48dac7bf10362..1d77a373bb7dd 100644 --- a/pandas/_libs/groupby_helper.pxi.in +++ b/pandas/_libs/groupby_helper.pxi.in @@ -531,7 +531,7 @@ def group_rank_{{name}}(ndarray[float64_t, ndim=2] out, # each label corresponds to a ...
xref #19481 I didn't see any other instance in `group_rank` where the dtype was open to interpretation, so I'm wondering if `np.lexsort` is returning a plain `int` on 32 bit systems. Hoping that explicitly getting a view of that `np.lexsort` result to match the dtype of `_as` will resolve the test issues
https://api.github.com/repos/pandas-dev/pandas/pulls/19679
2018-02-13T18:19:44Z
2018-02-13T23:56:32Z
2018-02-13T23:56:32Z
2018-02-14T19:23:22Z
DOC: Clarify and add fill_value example in arithmetic ops
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 4c234ccb4dd47..5a715f3dceb76 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -255,8 +255,10 @@ def _get_frame_op_default_axis(name): ---------- other : Series or scalar value fill_value : None or float value, default None (NaN) - Fill missing ...
- [ ] closes #19653 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/19675
2018-02-13T14:32:36Z
2018-02-22T00:16:22Z
2018-02-22T00:16:22Z
2018-02-22T00:16:25Z
Cythonized GroupBy Fill
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 61db39528a5fb..c347442784d41 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -370,11 +370,11 @@ class GroupByMethods(object): param_names = ['dtype', 'method'] params = [['int', 'float'...
- [X] closes #11296 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I am not a fan of how I've implemented this in `groupby.py` but I think this change highlights even more the need for some refactoring of that module, specifically in how Cython...
https://api.github.com/repos/pandas-dev/pandas/pulls/19673
2018-02-13T07:36:11Z
2018-02-25T16:05:27Z
2018-02-25T16:05:27Z
2018-02-25T20:38:08Z
Fix docstrings, error messages
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index c98f8ceea0ffa..f37f6d545f343 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -627,9 +627,9 @@ def _convert_scalar_indexer(self, key, kind=None): ._convert_scalar_in...
The discussion in #19558 makes me think getting PeriodArray and DatetimeArray implemented sooner rather than later will make things easier for other goals. In preparation for that, this PR goes through (most) of the methods that will need to be ported and adapts their error messages to be class-agnostic, and to use `s...
https://api.github.com/repos/pandas-dev/pandas/pulls/19672
2018-02-13T05:43:38Z
2018-02-19T02:40:48Z
null
2018-06-22T03:32:18Z
ENH-19629: Adding numpy nansun/nanmean, etc etc to _cython_table
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 43e384b01ad2c..1b7cc3d5b235e 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1098,6 +1098,7 @@ Numeric - Bug in :class:`DataFrame` flex arithmetic (e.g. ``df.add(other, fill_value=foo)``) with a ...
- [x] closes #19629 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry As per the issue, here's proof of solution: ```python Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 12:04:33) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/fin...
https://api.github.com/repos/pandas-dev/pandas/pulls/19670
2018-02-13T00:45:49Z
2018-05-07T21:26:32Z
null
2018-05-07T21:26:32Z
DOC: Ambiguous description in to_parquet engine documentation
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2782ee7b9d201..02d9cc5cbdf30 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1678,9 +1678,10 @@ def to_parquet(self, fname, engine='auto', compression='snappy', fname : str string file path engine : {'auto', '...
Ambiguity correction in documentation on pandas.DataFrame.to_parquet - [x] closes #19662 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] tests added / passed - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19669
2018-02-12T23:17:59Z
2018-02-15T08:17:32Z
2018-02-15T08:17:32Z
2018-02-15T08:17:32Z
TST: split tests for windows to sub-modules
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1c5cf87d6b39b..9cbd20e35463c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2633,7 +2633,7 @@ def _ensure_valid_index(self, value): if not len(self.index) and is_list_like(value): try: value = Series(...
Splitting the test_window.py file into the test_rolling.py files, test_expanding.py and test_ewma.py - [x] closes #19228 - [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/19667
2018-02-12T20:41:23Z
2018-07-08T16:08:25Z
null
2018-07-08T16:08:25Z
enable multivalues insert
diff --git a/doc/source/io.rst b/doc/source/io.rst index 0b9a610b50d7d..93f5c5bea53b4 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4711,6 +4711,12 @@ writes ``data`` to the database in batches of 1000 rows at a time: data.to_sql('data_chunked', engine, chunksize=1000) +.. note:: + + The functi...
### Summary Currently when pushing a dataframe to a database, lines are inserted one by one. This change enables multivalues inserts. TODO - [x] release note - [ ] address chunksize behavior ### Reference http://docs.sqlalchemy.org/en/rel_0_9/core/dml.html?highlight=insert%20values#sqlalchemy.sql.expressio...
https://api.github.com/repos/pandas-dev/pandas/pulls/19664
2018-02-12T19:47:31Z
2018-03-07T21:54:46Z
2018-03-07T21:54:46Z
2018-05-17T11:28:07Z
DOC: ignore Panel deprecation warnings during doc build
diff --git a/doc/source/conf.py b/doc/source/conf.py index c188f83f80250..7c4edd0486636 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -15,6 +15,8 @@ import re import inspect import importlib +import warnings + from pandas.compat import u, PY3 try: @@ -375,6 +377,13 @@ 'wiki': ('https:/...
The doc build log is currently full of Panel deprecation warnings. To avoid having to put `:okwarning:` on all code-blocks that use Panel, I put a general filterwarnings for this warning in the conf.py file which hopefully works (alternative would be to put this inside the .rst file itself at the top in a suppressed i...
https://api.github.com/repos/pandas-dev/pandas/pulls/19663
2018-02-12T19:26:48Z
2018-02-13T19:01:43Z
2018-02-13T19:01:43Z
2018-02-13T19:01:46Z
collect index formatting tests
diff --git a/pandas/tests/indexes/datetimes/test_formats.py b/pandas/tests/indexes/datetimes/test_formats.py index ea2731f66f0ef..0d1a9e65ce6c6 100644 --- a/pandas/tests/indexes/datetimes/test_formats.py +++ b/pandas/tests/indexes/datetimes/test_formats.py @@ -1,6 +1,10 @@ -from pandas import DatetimeIndex +from dateti...
It looks like PeriodIndex/TDI/DTI tests are using different rules for what constitutes test_indexing/test_setops. Double-checking before making a PR: test_get_loc_* --> test_indexing test_get_indexer_* --> test_indexing test_insert_* --> test_indexing test_where_* --> test_indexing test_join_* --> test_setops...
https://api.github.com/repos/pandas-dev/pandas/pulls/19661
2018-02-12T17:51:03Z
2018-02-18T16:09:45Z
2018-02-18T16:09:45Z
2018-02-18T18:21:44Z
DOC: spellchecked io.rst
diff --git a/doc/source/io.rst b/doc/source/io.rst index 1785de54b7dd6..7bb34e4d232dd 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -28,8 +28,11 @@ IO Tools (Text, CSV, HDF5, ...) =============================== -The pandas I/O API is a set of top level ``reader`` functions accessed like ``pd.read_csv()...
Spellcheck of the docs, specifically of `io.rst`. I did not read everything thoroughly, but I believe the suggested changes will help enforce a greater level of consistency in the docs. * Backticks ` `` ` around Series, DataFrame. * Added some function references, i.e. `` :meth:`~DataFrame.method` ``. * Consisten...
https://api.github.com/repos/pandas-dev/pandas/pulls/19660
2018-02-12T17:07:07Z
2018-02-14T11:31:20Z
2018-02-14T11:31:20Z
2018-02-14T11:31:39Z