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
Fixed apply_index
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 1b63253cde2c5..e6271a7806706 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -33,6 +33,7 @@ Methods :toctree: api/ DateOffset.apply + DateOffse...
Closes https://github.com/pandas-dev/pandas/issues/34580
https://api.github.com/repos/pandas-dev/pandas/pulls/35165
2020-07-07T19:00:14Z
2020-07-15T12:25:34Z
2020-07-15T12:25:34Z
2020-07-15T12:25:37Z
Infer compression if file extension is uppercase
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 798a3d838ef7e..3976696ecdd06 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1053,6 +1053,7 @@ I/O - Bug in :meth:`~HDFStore.create_table` now raises an error when `column` argument was not specified...
Inferring compression fails for files with uppercase extensions (e.g. `x.zip` works but `y.ZIP` does not) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35164
2020-07-07T18:06:02Z
2020-07-17T10:58:30Z
2020-07-17T10:58:30Z
2020-07-17T10:58:39Z
REF: remove always-UTC arg from tz_convert, tz_convert_single
diff --git a/asv_bench/benchmarks/tslibs/tz_convert.py b/asv_bench/benchmarks/tslibs/tz_convert.py index 2a1f559bdf6d4..c2c90024ca5bd 100644 --- a/asv_bench/benchmarks/tslibs/tz_convert.py +++ b/asv_bench/benchmarks/tslibs/tz_convert.py @@ -1,16 +1,23 @@ import numpy as np from pytz import UTC -from pandas._libs.ts...
https://api.github.com/repos/pandas-dev/pandas/pulls/35154
2020-07-07T01:53:44Z
2020-07-09T22:00:14Z
2020-07-09T22:00:14Z
2020-07-09T22:04:13Z
BUG: transform with nunique should have dtype int64
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9bd4ddbb624d9..0e929ff062cff 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1080,6 +1080,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby` lost index, when one of the ``agg`` keys ref...
- [x] closes #35109 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry cc @WillAyd Removes casting on transformations which go through `_transform_fast`. The result is a reduction that is broadcast to the original i...
https://api.github.com/repos/pandas-dev/pandas/pulls/35152
2020-07-06T22:40:18Z
2020-07-10T22:46:42Z
2020-07-10T22:46:42Z
2020-07-10T22:47:43Z
CI: move py36 slow to azure (#34776)
diff --git a/.travis.yml b/.travis.yml index fdea9876d5d89..b016cf386098e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -58,12 +58,6 @@ matrix: services: - mysql - postgresql - - - env: - - JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow" SQL="1" - services: ...
- [x] closes #34776 - [x] 0 tests added / 0 passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35151
2020-07-06T22:18:18Z
2020-07-07T13:10:07Z
2020-07-07T13:10:07Z
2020-07-07T22:27:19Z
BUG: pd.crosstab fails when passed multiple columns, margins True and normalize True
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 42f95d88d74ac..f27c83fafef55 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -258,6 +258,7 @@ Reshaping - Bug in :meth:`DataFrame.pivot_table` with ``aggfunc='count'`` or ``aggfunc='sum'`` returning...
- [x] closes #35144 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35150
2020-07-06T20:09:58Z
2020-08-19T17:59:04Z
2020-08-19T17:59:03Z
2020-08-20T00:09:02Z
ASV: tslibs.fields
diff --git a/asv_bench/benchmarks/tslibs/fields.py b/asv_bench/benchmarks/tslibs/fields.py new file mode 100644 index 0000000000000..0607a799ec707 --- /dev/null +++ b/asv_bench/benchmarks/tslibs/fields.py @@ -0,0 +1,74 @@ +import numpy as np + +from pandas._libs.tslibs.fields import ( + get_date_field, + get_star...
https://api.github.com/repos/pandas-dev/pandas/pulls/35149
2020-07-06T19:41:32Z
2020-07-08T21:51:13Z
2020-07-08T21:51:13Z
2020-07-08T21:57:08Z
Move mark registration
diff --git a/pandas/conftest.py b/pandas/conftest.py index 5fe4cc45b0006..e0adb37e7d2f5 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -44,6 +44,19 @@ # Configuration / Settings # ---------------------------------------------------------------- # pytest +def pytest_configure(config): + # Register mar...
Should avoid warnings like ``` D:\a\1\s\test_venv\lib\site-packages\pandas\tests\plotting\test_series.py:655: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html @pytest.mark.s...
https://api.github.com/repos/pandas-dev/pandas/pulls/35146
2020-07-06T18:06:03Z
2020-07-06T23:28:06Z
2020-07-06T23:28:06Z
2020-10-05T11:22:40Z
DEPR: Deprecate n-dim indexing for Series
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9bd4ddbb624d9..926aaaaabf3a9 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -788,6 +788,7 @@ Deprecations - :meth:`Categorical.to_dense` is deprecated and will be removed in a future version, use ``n...
Closes https://github.com/pandas-dev/pandas/issues/27837
https://api.github.com/repos/pandas-dev/pandas/pulls/35141
2020-07-06T15:14:46Z
2020-07-06T23:25:28Z
2020-07-06T23:25:28Z
2020-07-06T23:25:32Z
Fix regression on datetime in MultiIndex
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 708b687434327..04d1dbceb3342 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1165,6 +1165,10 @@ def _convert_to_indexer(self, key, axis: int, is_setter: bool = False): if len(key) == labels.nlevels: ...
- [x] closes #35015 - [x] tests added / passed - `tests.indexing.multiindex.test_datetime:test_multiindex_datetime_columns` - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry - Not needed - this was a regression
https://api.github.com/repos/pandas-dev/pandas/pulls/35140
2020-07-06T14:27:12Z
2020-07-08T12:43:19Z
2020-07-08T12:43:18Z
2020-07-08T15:40:22Z
CI: pin sphinx <= 3.1.1 for autodoc failure
diff --git a/environment.yml b/environment.yml index 2429f4ab3d699..87f3f4b13b5c5 100644 --- a/environment.yml +++ b/environment.yml @@ -27,7 +27,7 @@ dependencies: # documentation - gitpython # obtain contributors from git for whatsnew - gitdb2=2.0.6 # GH-32060 - - sphinx + - sphinx<=3.1.1 # document...
xref https://github.com/pandas-dev/pandas/issues/35138
https://api.github.com/repos/pandas-dev/pandas/pulls/35139
2020-07-06T14:03:02Z
2020-07-06T14:30:36Z
2020-07-06T14:30:36Z
2020-07-06T14:35:16Z
CI: pin isort version
diff --git a/environment.yml b/environment.yml index 2429f4ab3d699..24c0832b6fb4c 100644 --- a/environment.yml +++ b/environment.yml @@ -20,7 +20,7 @@ dependencies: - flake8<3.8.0 # temporary pin, GH#34150 - flake8-comprehensions>=3.1.0 # used by flake8, linting of unnecessary comprehensions - flake8-rst>=0....
- [X] xref #35134 - [X] 0 tests added / 0 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry. __this is a CI PR. I don't think we touch whatsnew for those.__ ### Scope <s>Remove the `--recursive` keyword from `code_checks.sh`, so that the...
https://api.github.com/repos/pandas-dev/pandas/pulls/35136
2020-07-06T13:04:58Z
2020-07-06T14:19:44Z
2020-07-06T14:19:44Z
2020-07-09T15:12:19Z
CLN: unused imports in tslibs
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index df43ebcfd9df2..e4d05e0d70e2f 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -51,7 +51,6 @@ from pandas._libs.tslibs.timezones cimport utc_pytz as UTC from pandas._libs.tslibs.tzconversion cimport...
https://api.github.com/repos/pandas-dev/pandas/pulls/35133
2020-07-06T02:15:29Z
2020-07-06T23:00:01Z
2020-07-06T23:00:01Z
2020-07-06T23:15:31Z
support binary file handles in to_csv
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index cc42f952b1733..ab233f653061a 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1064,6 +1064,23 @@ DD/MM/YYYY instead. For convenience, a ``dayfirst`` keyword is provided: pd.read_csv('tmp.csv', parse_dates=...
- [x] fixes #19827, fixes #35058, fixes #23854 *, fixes #13068 *, and fixes #22555 - [x] 3 tests added - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The first commit addresses https://github.com/pandas-dev/pandas/issues/35058#issuecomment-65...
https://api.github.com/repos/pandas-dev/pandas/pulls/35129
2020-07-05T20:07:33Z
2020-08-07T11:53:10Z
2020-08-07T11:53:09Z
2020-08-07T22:45:53Z
CLN: remove the circular import in NDFrame.dtypes
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index d892e2487b31c..9da9a9530480d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5366,9 +5366,8 @@ def dtypes(self): string object dtype: object """ - from pandas import Series # noqa: F81...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/35128
2020-07-05T13:04:40Z
2020-07-07T00:39:26Z
2020-07-07T00:39:26Z
2020-07-07T07:24:17Z
TST: Add test for category equalness on applies (#21239)
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index 114b3c0d0a3fc..3a32278e2a4b1 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -793,6 +793,18 @@ def test_apply_with_byte_string(self): result = df.apply(lambda x: x.astype("object")) ...
- [x] closes #21239 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The test checks if equalness comparisons through `df.apply()` works correctly for the categorical `dtype`, especially with `np.NaN` and `None` value...
https://api.github.com/repos/pandas-dev/pandas/pulls/35125
2020-07-04T20:51:02Z
2020-07-06T21:28:08Z
2020-07-06T21:28:08Z
2020-07-06T21:28:17Z
CLN: remove kwargs in Index.format
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 2f12a2e4c27ea..3dbee7d0929cb 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -902,7 +902,12 @@ def _mpl_repr(self): # how to represent ourselves to matplotlib return self.values - def format...
Removes kwargs in ``Index.format`` and subclasses. Also changes ``Index._format_with_header`` to have parameter ``na_rep`` not have a default value (in order to not have default value set in two locations). Related to #35118.
https://api.github.com/repos/pandas-dev/pandas/pulls/35122
2020-07-04T13:06:52Z
2020-07-14T22:32:48Z
2020-07-14T22:32:48Z
2020-08-08T08:30:27Z
TST add test case for drop_duplicates
diff --git a/pandas/tests/frame/methods/test_drop_duplicates.py b/pandas/tests/frame/methods/test_drop_duplicates.py index 7c6391140e2bb..cebec215a0d9d 100644 --- a/pandas/tests/frame/methods/test_drop_duplicates.py +++ b/pandas/tests/frame/methods/test_drop_duplicates.py @@ -333,64 +333,73 @@ def test_drop_duplicates_...
Add a test case to drop_duplicates for inplace=True.
https://api.github.com/repos/pandas-dev/pandas/pulls/35121
2020-07-04T12:13:06Z
2020-07-08T12:52:26Z
2020-07-08T12:52:25Z
2020-07-08T15:40:09Z
TYP, DOC, CLN:SeriesGroupBy._wrap_applied_output
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 6f956a3dcc9b6..ebb9d82766c1b 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -19,6 +19,7 @@ Iterable, List, Mapping, + Optional, Sequence, Tuple, Type, @@ -30,7 +31,7 @...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/35120
2020-07-04T11:14:26Z
2020-07-07T19:19:27Z
2020-07-07T19:19:27Z
2020-07-07T20:18:13Z
REF: make ccalendar self-contained
diff --git a/pandas/_libs/tslibs/ccalendar.pyx b/pandas/_libs/tslibs/ccalendar.pyx index 9f8cf6c28adab..de8fd3911e946 100644 --- a/pandas/_libs/tslibs/ccalendar.pyx +++ b/pandas/_libs/tslibs/ccalendar.pyx @@ -7,11 +7,6 @@ import cython from numpy cimport int64_t, int32_t -from locale import LC_TIME - -from pandas....
https://api.github.com/repos/pandas-dev/pandas/pulls/35119
2020-07-04T03:03:43Z
2020-07-07T00:44:21Z
2020-07-07T00:44:21Z
2020-07-07T01:04:23Z
CLN: Index._format_with_header (remove kwargs etc.)
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index b12a556a8291d..2f12a2e4c27ea 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2,7 +2,16 @@ from datetime import datetime import operator from textwrap import dedent -from typing import TYPE_CHECKING, Any, Calla...
Refactor of ``Index._format_with_header`` and subclass methods: * remove ``kwargs`` for cleaner signature. * Add return type * Move functionality specific to ``CategoricalIndex`` to that class.
https://api.github.com/repos/pandas-dev/pandas/pulls/35118
2020-07-03T22:10:37Z
2020-07-07T13:20:00Z
2020-07-07T13:20:00Z
2020-08-08T08:30:29Z
CLN: convert lambda to function
diff --git a/pandas/io/formats/printing.py b/pandas/io/formats/printing.py index 36e774305b577..1cf79dc105901 100644 --- a/pandas/io/formats/printing.py +++ b/pandas/io/formats/printing.py @@ -276,9 +276,13 @@ class TableSchemaFormatter(BaseFormatter): formatters[mimetype].enabled = False -default_ppri...
Minor cleanup: conversion to proper function.
https://api.github.com/repos/pandas-dev/pandas/pulls/35117
2020-07-03T21:34:26Z
2020-07-04T15:30:16Z
2020-07-04T15:30:16Z
2020-07-04T15:30:21Z
TST: base test for ExtensionArray.astype to its own type + copy keyword
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 5882b74aa8b05..af63d49a24d7a 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -361,6 +361,7 @@ ExtensionArray ^^^^^^^^^^^^^^ - Fixed Bug where :class:`DataFrame` column set to scalar extension type ...
- [] closes #28488 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` n.b. I'm not certain. I get no output on the command line when I run this command. - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35116
2020-07-03T19:58:22Z
2020-09-22T13:41:25Z
2020-09-22T13:41:25Z
2020-09-22T13:41:46Z
BUG: get_loc with time object matching NaT micros
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9bd4ddbb624d9..95a9a331e7f6b 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -976,6 +976,7 @@ Indexing - Bug in :meth:`DataFrame.loc` with dictionary of values changes columns with dtype of ``int`` to...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35114
2020-07-03T18:37:22Z
2020-07-07T13:14:29Z
2020-07-07T13:14:29Z
2020-07-07T14:30:16Z
PERF: ints_to_pydatetime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index f494e74bde55f..cf9dfe4a39b8f 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -15,7 +15,7 @@ PyDateTime_IMPORT cimport numpy as cnp -from numpy cimport float64_t, int64_t, ndarray, uint8_t +from numpy cimport float64_t, int64_t, ...
This refactors ints_to_pydatetime to use a much more concise pattern (similar to #35077 but without the helper function refactored out) that I intend to move all of the ~7 functions using get_dst_info to use. In the process, we are slower on very small arrays and faster on bigger arrays, which I think is a good trade:...
https://api.github.com/repos/pandas-dev/pandas/pulls/35113
2020-07-03T17:18:38Z
2020-07-06T22:59:08Z
2020-07-06T22:59:08Z
2020-07-07T00:15:07Z
BUG: reset_index is passing a bad dtype to NumPy
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b6993e9ed851a..87041341ac3a6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -75,6 +75,7 @@ from pandas.core.dtypes.cast import ( cast_scalar_to_array, coerce_to_dtypes, + construct_1d_arraylike_from_scalar, find_common_ty...
- [ ] closes #35095 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35111
2020-07-03T13:16:44Z
2020-07-06T20:55:03Z
2020-07-06T20:55:03Z
2020-07-07T08:26:07Z
DOC: Fix code formatting and typos in Series.tz_localize
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a66cade3b81b0..d892e2487b31c 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9580,8 +9580,9 @@ def tz_localize( dtype: int64 If the DST transition causes nonexistent times, you can shift these - dates forw...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The missing line feed prevented the example from being formatted as code sample.
https://api.github.com/repos/pandas-dev/pandas/pulls/35110
2020-07-03T11:41:52Z
2020-07-03T14:14:19Z
2020-07-03T14:14:19Z
2020-07-03T16:21:10Z
REF: implement tz_localize_to_utc_single
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index f494e74bde55f..e02ad6017efff 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -46,7 +46,6 @@ from pandas._libs.tslibs.timezones cimport ( get_dst_info, is_utc, is_tzlocal, - utc_pytz as UTC, ) from pandas._libs.tsl...
In addition to implementing `tz_localize_to_utc_single`, this replaces all (but one, xref #35102) usages of tz_convert_single that have UTC as the target timezone. In conjunction with 35102, this will allow us to remove the second kwarg altogether, similar to #35104.
https://api.github.com/repos/pandas-dev/pandas/pulls/35108
2020-07-03T03:59:31Z
2020-07-07T00:14:26Z
2020-07-07T00:14:26Z
2020-07-07T01:08:21Z
TYP: get_utcoffset
diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd index 0784b090b3edb..f51ee41cb99a6 100644 --- a/pandas/_libs/tslibs/timezones.pxd +++ b/pandas/_libs/tslibs/timezones.pxd @@ -1,4 +1,4 @@ -from cpython.datetime cimport tzinfo +from cpython.datetime cimport datetime, timedelta, tzinfo ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35107
2020-07-03T00:15:24Z
2020-07-06T22:51:44Z
2020-07-06T22:51:44Z
2020-07-06T23:20:04Z
PERF: tz_localize(None) from dst, asvs
diff --git a/asv_bench/benchmarks/tslibs/tz_convert.py b/asv_bench/benchmarks/tslibs/tz_convert.py new file mode 100644 index 0000000000000..2a1f559bdf6d4 --- /dev/null +++ b/asv_bench/benchmarks/tslibs/tz_convert.py @@ -0,0 +1,30 @@ +import numpy as np +from pytz import UTC + +from pandas._libs.tslibs.tzconversion imp...
This makes tz_convert_dst follow the same pattern we use elsewhere, and brings a perf improvement along with it. ``` In [2]: dti = pd.date_range("2016-01-01", periods=10000, freq="S", tz="US/Pacific") ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35106
2020-07-03T00:12:40Z
2020-07-07T00:13:27Z
2020-07-07T00:13:27Z
2020-07-07T01:06:58Z
CLN: tz_convert is always from UTC
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index d1d6bc40ef288..dc01210f2789f 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -388,8 +388,9 @@ def tz_convert(int64_t[:] vals, tzinfo tz1, tzinfo tz2): bint to_utc = is_...
Follow-up can remove the unnecessary arg from tz_convert, possibly rename.
https://api.github.com/repos/pandas-dev/pandas/pulls/35104
2020-07-02T22:42:52Z
2020-07-07T00:12:00Z
2020-07-07T00:11:59Z
2020-07-07T01:05:26Z
TYP: maybe_get_tz
diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd index f51ee41cb99a6..136710003d32a 100644 --- a/pandas/_libs/tslibs/timezones.pxd +++ b/pandas/_libs/tslibs/timezones.pxd @@ -9,7 +9,7 @@ cdef bint treat_tz_as_pytz(tzinfo tz) cpdef bint tz_compare(tzinfo start, tzinfo end) cpdef obj...
https://api.github.com/repos/pandas-dev/pandas/pulls/35103
2020-07-02T22:27:09Z
2020-07-08T21:52:29Z
2020-07-08T21:52:29Z
2020-07-08T22:07:15Z
REF: standardize tz_convert_single usage
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index e104b722ea119..426e6e0104f89 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1379,7 +1379,7 @@ default 'raise' cdef: npy_datetimestruct dts - int64_t...
I'm increasingly convinced that we can get all tz_convert/tz_convert_single usages to have tz1=UTC, and everything else should go through tz_localize_to_utc.
https://api.github.com/repos/pandas-dev/pandas/pulls/35102
2020-07-02T21:19:33Z
2020-07-07T00:07:34Z
2020-07-07T00:07:34Z
2020-07-07T01:06:17Z
PERF: Fix quantile perf regression
diff --git a/pandas/util/_validators.py b/pandas/util/_validators.py index bb6c6de441558..fa7201a5188a5 100644 --- a/pandas/util/_validators.py +++ b/pandas/util/_validators.py @@ -371,14 +371,13 @@ def validate_percentile(q: Union[float, Iterable[float]]) -> np.ndarray: ValueError if percentiles are not in given ...
Closes https://github.com/pandas-dev/pandas/issues/35049 ```pyhon 591 µs ± 29.5 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) 440 µs ± 22.8 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) ```
https://api.github.com/repos/pandas-dev/pandas/pulls/35101
2020-07-02T20:44:16Z
2020-07-03T15:07:32Z
2020-07-03T15:07:32Z
2020-07-03T15:07:43Z
Document Tips for Debugging C Extensions
diff --git a/doc/source/development/debugging_extensions.rst b/doc/source/development/debugging_extensions.rst new file mode 100644 index 0000000000000..358c4036df961 --- /dev/null +++ b/doc/source/development/debugging_extensions.rst @@ -0,0 +1,93 @@ +.. _debugging_c_extensions: + +{{ header }} + +====================...
Quick notes in case they are helpful to others. Can move to the Wiki as well if we don't want in the standard docs
https://api.github.com/repos/pandas-dev/pandas/pulls/35100
2020-07-02T19:20:06Z
2020-12-10T00:19:42Z
2020-12-10T00:19:42Z
2023-04-12T20:17:09Z
TYP: type unit as str
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index f494e74bde55f..8d8a62a58f25f 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -363,8 +363,8 @@ def format_array_from_datetime( def array_with_unit_to_datetime( ndarray values, - object unit, - str errors='coerce' + st...
https://api.github.com/repos/pandas-dev/pandas/pulls/35099
2020-07-02T18:10:29Z
2020-07-06T18:01:30Z
2020-07-06T18:01:30Z
2020-07-06T18:33:03Z
BUG: fix union_indexes not supporting sort=False for Index subclasses
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9bd4ddbb624d9..0b2493cfaf7ff 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1112,6 +1112,7 @@ Reshaping - Fixed bug in :func:`melt` where melting MultiIndex columns with ``col_level`` > 0 would rais...
- [X] closes #35092 - [X] 1 tests added / 1 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry # Scope of PR The reason for `DataFrame.append` unnecessarily sorting columns turned out to be that when merging indexes we were not passing th...
https://api.github.com/repos/pandas-dev/pandas/pulls/35098
2020-07-02T18:05:31Z
2020-07-09T13:02:33Z
2020-07-09T13:02:32Z
2020-07-09T15:11:45Z
TYP: type for get_timezone
diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd index 0179be3cdd8e6..0784b090b3edb 100644 --- a/pandas/_libs/tslibs/timezones.pxd +++ b/pandas/_libs/tslibs/timezones.pxd @@ -8,7 +8,7 @@ cdef bint is_tzlocal(tzinfo tz) cdef bint treat_tz_as_pytz(tzinfo tz) cpdef bint tz_compare(tzi...
Nearly done with these
https://api.github.com/repos/pandas-dev/pandas/pulls/35096
2020-07-02T16:55:11Z
2020-07-02T17:34:52Z
2020-07-02T17:34:52Z
2020-07-02T17:41:02Z
TYP: types for tz_compare
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index ea97bab2198eb..37d83a73c6597 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -73,7 +73,7 @@ from pandas._libs.tslibs.nattype cimport ( ) from pandas._libs.tslibs.conversion cimport convert_to_tsobject from pandas._libs.tslibs.timedeltas c...
https://api.github.com/repos/pandas-dev/pandas/pulls/35093
2020-07-02T02:54:43Z
2020-07-02T14:42:06Z
2020-07-02T14:42:06Z
2020-07-02T16:25:05Z
BENCH: implement asvs for ints_to_pydatetime
diff --git a/asv_bench/benchmarks/tslibs/tslib.py b/asv_bench/benchmarks/tslibs/tslib.py new file mode 100644 index 0000000000000..eacf5a5731dc2 --- /dev/null +++ b/asv_bench/benchmarks/tslibs/tslib.py @@ -0,0 +1,55 @@ +""" +ipython analogue: + +tr = TimeIntsToPydatetime() +mi = pd.MultiIndex.from_product( + tr.para...
https://api.github.com/repos/pandas-dev/pandas/pulls/35091
2020-07-01T21:37:44Z
2020-07-02T14:42:55Z
2020-07-02T14:42:55Z
2020-07-02T16:28:10Z
TST: update gbq service account key
diff --git a/ci/travis_encrypt_gbq.sh b/ci/travis_encrypt_gbq.sh index e404ca73a405e..7d5692d9520af 100755 --- a/ci/travis_encrypt_gbq.sh +++ b/ci/travis_encrypt_gbq.sh @@ -19,7 +19,7 @@ if [[ ! -f $GBQ_JSON_FILE ]]; then fi echo "Encrypting $GBQ_JSON_FILE..." -read -d "\n" TRAVIS_KEY TRAVIS_IV <<<$(travis encrypt-...
Re-enable gbq integration tests. - [ ] closes #34779 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35090
2020-07-01T20:06:54Z
2020-07-09T23:41:00Z
2020-07-09T23:41:00Z
2020-07-09T23:41:00Z
CLN: tighter typing in libconversion
diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd index 623d9f14d646b..2cf75944a8196 100644 --- a/pandas/_libs/tslibs/conversion.pxd +++ b/pandas/_libs/tslibs/conversion.pxd @@ -13,11 +13,11 @@ cdef class _TSObject: bint fold -cdef convert_to_tsobject(object ts, object tz...
https://api.github.com/repos/pandas-dev/pandas/pulls/35088
2020-07-01T18:42:24Z
2020-07-02T14:44:10Z
2020-07-02T14:44:10Z
2020-07-02T16:27:03Z
PERF: tz_convert/tz_convert_single
diff --git a/pandas/_libs/tslibs/tzconversion.pyx b/pandas/_libs/tslibs/tzconversion.pyx index a096b2807c640..d1d6bc40ef288 100644 --- a/pandas/_libs/tslibs/tzconversion.pyx +++ b/pandas/_libs/tslibs/tzconversion.pyx @@ -345,36 +345,28 @@ cpdef int64_t tz_convert_single(int64_t val, tzinfo tz1, tzinfo tz2): conver...
Making these follow the same pattern we use elsewhere, we get a perf bump: ``` In [2]: dti = pd.date_range("2016-01-01", periods=10000, tz="US/Pacific") In [3]: %timeit dti.tz_localize(None) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35087
2020-07-01T17:04:08Z
2020-07-02T16:59:10Z
2020-07-02T16:59:10Z
2020-07-02T17:17:01Z
CLN: Removed unreached else block GH33478
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index dab8475d9580c..6f956a3dcc9b6 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1218,7 +1218,7 @@ def _wrap_applied_output(self, keys, values, not_indexed_same=False): return self.obj._const...
Unreached else block in method _wrap_applied_output was removed. Local tests passed before and after change - [ ] xref #33478 (Not fully closed, this addresses 1 part) - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew ent...
https://api.github.com/repos/pandas-dev/pandas/pulls/35086
2020-07-01T17:01:14Z
2020-07-02T14:51:28Z
2020-07-02T14:51:28Z
2020-07-05T06:46:06Z
Fix numpy warning
diff --git a/pandas/conftest.py b/pandas/conftest.py index d74c43069574f..5fe4cc45b0006 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -256,9 +256,7 @@ def nselect_method(request): # ---------------------------------------------------------------- # Missing values & co. # -------------------------------...
https://api.github.com/repos/pandas-dev/pandas/pulls/35085
2020-07-01T16:31:59Z
2020-07-06T15:19:37Z
2020-07-06T15:19:37Z
2020-07-06T15:19:43Z
TYP: annotations, typing for infer_tzinfo
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index ac24dd546d9d3..9ee76a8c291a8 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -246,11 +246,12 @@ def datetime_to_datetime64(ndarray[object] values): """ cdef: Py_ssize...
Keeping these orthogonal
https://api.github.com/repos/pandas-dev/pandas/pulls/35084
2020-07-01T15:54:22Z
2020-07-02T00:16:06Z
2020-07-02T00:16:06Z
2020-07-02T00:43:11Z
No fastcall attribute in POWER platform
diff --git a/pandas/_libs/src/ujson/lib/ultrajson.h b/pandas/_libs/src/ujson/lib/ultrajson.h index 69284e1c3f2ab..757cabdbbc730 100644 --- a/pandas/_libs/src/ujson/lib/ultrajson.h +++ b/pandas/_libs/src/ujson/lib/ultrajson.h @@ -94,7 +94,7 @@ typedef __int64 JSLONG; #define EXPORTFUNCTION __declspec(dllexport) #def...
Compiling the development branch of pandas fail in AIX. pandas/_libs/src/ujson/lib/ultrajsonenc.c:397:1: error: ‘fastcall’ attribute directive ignored [-Werror=attributes] Buffer_AppendShortHexUnchecked(char *outputOffset, unsigned short value) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pandas/_libs/src/ujson/lib/ultraj...
https://api.github.com/repos/pandas-dev/pandas/pulls/35083
2020-07-01T14:45:30Z
2020-07-09T23:54:09Z
2020-07-09T23:54:09Z
2020-07-15T18:05:17Z
CLN: stronger typing in libtimezones
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index ba6cee3d7ad8e..1328bc8a5175f 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -991,7 +991,7 @@ class Timestamp(_Timestamp): "Timestamp from components." ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35082
2020-07-01T14:41:49Z
2020-07-01T17:07:40Z
2020-07-01T17:07:40Z
2020-07-01T17:14:03Z
TYP: stronger typing in libtimezones
diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd index 14c0523787422..2428993c45f56 100644 --- a/pandas/_libs/tslibs/timezones.pxd +++ b/pandas/_libs/tslibs/timezones.pxd @@ -14,4 +14,4 @@ cpdef object maybe_get_tz(object tz) cdef get_utcoffset(tzinfo tz, obj) cdef bint is_fixed_offs...
https://api.github.com/repos/pandas-dev/pandas/pulls/35079
2020-07-01T03:26:34Z
2020-07-01T15:28:46Z
2020-07-01T15:28:46Z
2020-07-01T15:42:29Z
BUG: DataFrameGroupBy.__getitem__ fails to propagate dropna
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 260b92b5989c1..df010c3776f7c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -128,7 +128,7 @@ Indexing Missing ^^^^^^^ -- +- Bug in :meth:`SeriesGroupBy.transform` now correctly handles missing val...
- [x] closes #35014 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35078
2020-07-01T02:50:08Z
2020-08-07T21:33:06Z
2020-08-07T21:33:06Z
2020-08-07T21:53:39Z
BENCH: implement asvs for get_resolution
diff --git a/asv_bench/benchmarks/tslibs/resolution.py b/asv_bench/benchmarks/tslibs/resolution.py new file mode 100644 index 0000000000000..274aa1ad6d4a9 --- /dev/null +++ b/asv_bench/benchmarks/tslibs/resolution.py @@ -0,0 +1,50 @@ +""" +ipython analogue: + +tr = TimeResolution() +mi = pd.MultiIndex.from_product(tr.p...
https://api.github.com/repos/pandas-dev/pandas/pulls/35075
2020-06-30T22:34:26Z
2020-07-02T14:57:19Z
2020-07-02T14:57:19Z
2020-07-02T16:22:48Z
TST: Test for groupby transform on categorical column
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index 60c82bf1fb71c..4de61f719dfbb 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -1509,3 +1509,53 @@ def test_aggregate_categorical_with_isnan(): index=inde...
Added test for groupby transform on categorical column - [x] closes #29037 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/35074
2020-06-30T22:31:58Z
2020-07-01T18:25:40Z
2020-07-01T18:25:40Z
2020-07-01T18:25:49Z
REF: de-duplicate month_offset in tslibs.fields
diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd index b55780fe7d5b9..41cc477413607 100644 --- a/pandas/_libs/tslibs/ccalendar.pxd +++ b/pandas/_libs/tslibs/ccalendar.pxd @@ -14,3 +14,5 @@ cpdef int32_t get_day_of_year(int year, int month, int day) nogil cdef int64_t DAY_NANOS cdef i...
https://api.github.com/repos/pandas-dev/pandas/pulls/35073
2020-06-30T22:27:50Z
2020-07-01T00:13:59Z
2020-07-01T00:13:59Z
2020-07-01T00:51:43Z
Add test apply dtype
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index 8f0d3d9fbc734..114b3c0d0a3fc 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -1501,3 +1501,12 @@ def test_consistency_of_aggregates_of_columns_with_missing_values(self, df, meth tm.ass...
- [x] closes #31466 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35072
2020-06-30T22:19:14Z
2020-07-01T16:53:35Z
2020-07-01T16:53:34Z
2020-07-01T21:11:57Z
CLN: remove unnecessary get_timezone calls
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 884715f482cad..c1162ed482048 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -27,7 +27,7 @@ from pandas._libs.tslibs.util cimport ( from pandas._libs.tslibs.timezones cimport ( ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35071
2020-06-30T22:10:02Z
2020-07-01T00:12:55Z
2020-07-01T00:12:55Z
2020-07-01T00:50:32Z
PERF: _maybe_convert_value_to_local
diff --git a/asv_bench/benchmarks/tslibs/timestamp.py b/asv_bench/benchmarks/tslibs/timestamp.py index 3ef9b814dd79e..b7e11089535d7 100644 --- a/asv_bench/benchmarks/tslibs/timestamp.py +++ b/asv_bench/benchmarks/tslibs/timestamp.py @@ -63,9 +63,6 @@ def time_tz(self, tz, freq): def time_dayofweek(self, tz, freq):...
Also fixes an incorrect asv. ``` In [2]: ts = pd.Timestamp.now("US/Pacific") In [3]: %timeit ts.day_name() ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35070
2020-06-30T21:34:39Z
2020-06-30T23:26:29Z
2020-06-30T23:26:29Z
2020-07-01T00:52:20Z
PERF: Timestamp.normalize
diff --git a/asv_bench/benchmarks/tslibs/timestamp.py b/asv_bench/benchmarks/tslibs/timestamp.py index b7e11089535d7..40f8e561f5238 100644 --- a/asv_bench/benchmarks/tslibs/timestamp.py +++ b/asv_bench/benchmarks/tslibs/timestamp.py @@ -1,17 +1,29 @@ -import datetime +from datetime import datetime, timedelta, timezone ...
The perf is actually a wash here, verging on slightly negative. The really worthwhile thing is the improved asvs. The big perf gain is being split into a separate PR that optimizes _maybe_convert_value_to_local to the tune of 40%.
https://api.github.com/repos/pandas-dev/pandas/pulls/35068
2020-06-30T20:24:44Z
2020-07-01T01:40:42Z
2020-07-01T01:40:42Z
2020-07-01T01:47:16Z
CLN: type tz kwarg in create_timestamp_from_ts
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 44693d60486a9..f494e74bde55f 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -8,6 +8,7 @@ from cpython.datetime cimport ( datetime, time, timedelta, + tzinfo, ) # import datetime C API PyDateTime_IMPORT @@ -77,9 ...
Perf is indistinguishable
https://api.github.com/repos/pandas-dev/pandas/pulls/35067
2020-06-30T20:17:05Z
2020-06-30T21:58:44Z
2020-06-30T21:58:44Z
2020-06-30T22:09:05Z
DOC: Remove mypy from pre commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7fd797fb7230..fcd0ecdc9fcd2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,15 +30,3 @@ repos: - id: isort language: python_venv exclude: ^pandas/__init__\.py$|^pandas/core/api\.py$ -- repo: https:...
- [x] closes #34902 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/35066
2020-06-30T19:08:56Z
2020-09-01T11:42:05Z
2020-09-01T11:42:04Z
2020-09-01T11:42:05Z
CLN: type get_resolution tz as tzinfo
diff --git a/pandas/_libs/tslibs/resolution.pyx b/pandas/_libs/tslibs/resolution.pyx index 4dbecc76ad986..d5f10374d2860 100644 --- a/pandas/_libs/tslibs/resolution.pyx +++ b/pandas/_libs/tslibs/resolution.pyx @@ -1,3 +1,4 @@ +from cpython.datetime cimport tzinfo import numpy as np from numpy cimport ndarray, int64_...
https://api.github.com/repos/pandas-dev/pandas/pulls/35065
2020-06-30T19:07:11Z
2020-06-30T21:05:52Z
2020-06-30T21:05:52Z
2020-06-30T21:23:41Z
Assorted ujson Cleanups
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 1de9642761961..e841f00489887 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -324,19 +324,6 @@ static npy_float64 total_seconds(PyObject *td) { return d...
I think it would be great if we could move the block iteration out of JSON as it has generic functionality that we could use down in C. This isn't it, but a small set of cleanups I noticed while looking at that
https://api.github.com/repos/pandas-dev/pandas/pulls/35064
2020-06-30T18:05:02Z
2020-07-01T15:22:49Z
2020-07-01T15:22:49Z
2020-07-01T15:23:26Z
CLN: collect Timestamp methods
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 15fcfc742ecf3..9af31c64658d6 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -265,37 +265,6 @@ cdef class _Timestamp(ABCTimestamp): self._assert_tzawareness_compat(ots) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/35062
2020-06-30T14:17:22Z
2020-06-30T22:49:53Z
2020-06-30T22:49:53Z
2020-07-01T00:57:22Z
Fixed #34859: Added support for '0' and '1' in BooleanArray._from_sequence_of_strings method
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 040253ebe7279..74dca91636577 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -328,6 +328,7 @@ Other enhancements - :meth:`DataFrame.to_html` and :meth:`DataFrame.to_string`'s ``col_space`` parameter n...
- [ ] closes #34859 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/35061
2020-06-30T12:34:39Z
2020-07-02T15:01:40Z
2020-07-02T15:01:39Z
2020-07-03T05:38:12Z
DOC: fix formatting read_csv comment kwarg explanation
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 72d8b2720c747..2034d4fa899ce 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -33,8 +33,9 @@ class ParserWarning(Warning): Parameters ---------- -filepath_or_buffer : string or file handle / StringIO. The string could be - a URL. Valid...
`\n` -> `\\n` to render correclty (and some other small things)
https://api.github.com/repos/pandas-dev/pandas/pulls/8563
2014-10-15T19:23:20Z
2014-10-24T11:16:24Z
2014-10-24T11:16:24Z
2014-10-24T11:16:24Z
DOC/FIX: In R it's still levels...
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index 3940ef623a099..3ee660bb85691 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -33,7 +33,7 @@ with R's ``factor``. `Categoricals` are a pandas data type, which correspond to categorical variables in statistics: a va...
There was one repleacement to many: in R it's still "levels" and not "categories". -> one word replacement in the docs
https://api.github.com/repos/pandas-dev/pandas/pulls/8561
2014-10-15T16:26:19Z
2014-10-15T17:35:37Z
2014-10-15T17:35:37Z
2014-10-15T17:35:45Z
PERF: fixup datetime_index repr perf (GH8556)
diff --git a/pandas/core/format.py b/pandas/core/format.py index 2773cc0c135c1..89973754a861c 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -2027,14 +2027,19 @@ def _format_datetime64_dateonly(x, nat_rep='NaT', date_format=None): def _is_dates_only(values): - for d in values: - if isi...
closes #8556 low hanging fruit (and now is pretty scale independent). ``` In [1]: dr = pd.date_range('20000101', freq='D', periods=100000) In [2]: %timeit dr._is_dates_only 10000000 loops, best of 3: 87.6 ns per loop In [3]: pd.__version__ Out[3]: '0.15.0rc1-38-g857042f' ``` I do recall this slipping in sometime ...
https://api.github.com/repos/pandas-dev/pandas/pulls/8557
2014-10-15T00:56:51Z
2014-10-15T01:24:00Z
2014-10-15T01:24:00Z
2014-10-15T01:24:00Z
Added footer to read_html
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 6688f106f922e..f76be6c7f5ab1 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -66,6 +66,7 @@ Enhancements - Added support for ``utcfromtimestamp()``, ``fromtimestamp()``, and ``combine()`` on `Time...
read_html neglected table footers. Although rare, some sites use the footer for data. First time pull request so hopefully not messed up.
https://api.github.com/repos/pandas-dev/pandas/pulls/8552
2014-10-13T22:17:09Z
2014-12-06T17:09:37Z
2014-12-06T17:09:37Z
2014-12-06T21:13:56Z
ENH: Add ISO3 ctry codes and error arg. Fix tests, warn/exception logic #8482
diff --git a/doc/source/remote_data.rst b/doc/source/remote_data.rst index 33db9de48d9e7..bba3db86d837c 100644 --- a/doc/source/remote_data.rst +++ b/doc/source/remote_data.rst @@ -143,6 +143,12 @@ World Bank `World Bank's World Development Indicators <http://data.worldbank.org>`__ by using the ``wb`` I/O functions. ...
This PR adds ISO 3-digit country codes, support for World Bank Country Code exceptions, by changing the error handling and warning logic and introducing an `error` argument which toggles between ignore/warn/raise . Validation no longer filters bad country codes, prior to submitting the API request. Instead, it attempt...
https://api.github.com/repos/pandas-dev/pandas/pulls/8551
2014-10-13T21:58:19Z
2014-10-28T00:25:36Z
2014-10-28T00:25:36Z
2015-02-09T00:43:38Z
ENH: Move any/all to NDFrame, support additional arguments for Series. GH8302
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 4bcbcb82e7c83..52b0391534313 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -22,6 +22,20 @@ API changes - Bug in concat of Series with ``category`` dtype which were coercing to ``object``. (:is...
closes #8302 - Move any/all implementations from DataFrame to NDFrame, adding support for Series - Special case single dimension case in NDFrame, to handle numpy.any/all specific arguments - Add assorted NotImplementedErrors in cases where arguments are ignored (including in preexisting _reduce functions) - Move the ot...
https://api.github.com/repos/pandas-dev/pandas/pulls/8550
2014-10-13T17:39:48Z
2014-11-11T14:32:45Z
2014-11-11T14:32:45Z
2014-11-11T14:33:25Z
PERF: Slowness in multi-level indexes with datetime levels (part 2)
diff --git a/pandas/core/index.py b/pandas/core/index.py index 919018977cb80..c2c7e28a7a7f4 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -2937,11 +2937,16 @@ def values(self): values = [] for lev, lab in zip(self.levels, self.labels): - lev_values = lev.values ...
Corrects some deficiencies noted here: https://github.com/pydata/pandas/pull/8544#issuecomment-58909397. Adds a test case and an additional vbench test.
https://api.github.com/repos/pandas-dev/pandas/pulls/8549
2014-10-13T16:14:02Z
2014-10-15T18:21:23Z
2014-10-15T18:21:23Z
2014-10-15T18:21:27Z
BUG: inconsistent and undocumented option "converters" to read_excel
diff --git a/doc/source/io.rst b/doc/source/io.rst index 1d83e06a13567..00e86d971182d 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -1992,6 +1992,27 @@ indices to be parsed. read_excel('path_to_file.xls', 'Sheet1', parse_cols=[0, 2, 3]) +.. note:: + + It is possible to transform the contents of Ex...
Issue #8212 (first part): pandas.read_excel accepts an optional argument "converters" (which is passed down to PythonParser) to convert single cells in columns with a conversion function. I documented this feature and added a try/except block to make it work in case some cells contain NaNs. What's still missing is th...
https://api.github.com/repos/pandas-dev/pandas/pulls/8548
2014-10-13T12:31:11Z
2014-11-15T19:01:57Z
2014-11-15T19:01:57Z
2014-11-15T20:38:38Z
PERF: Performance improvement for MultiIndexes with a DatetimeIndex levels
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 9735202327d3b..ff96df1d087a9 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -932,6 +932,7 @@ Performance - Performance improvement in writing to sql (``to_sql``) of up to 50% (:issue:`8208`). - Performance benchmarking of groupby ...
Addresses #8543. The benefits are most pronounced when there are a small number of distinct datetimes relative to the number of rows in the index. vbench results with `-r multi`: ``` ------------------------------------------------------------------------------- Test name | head[ms]...
https://api.github.com/repos/pandas-dev/pandas/pulls/8544
2014-10-12T01:56:02Z
2014-10-13T11:36:39Z
2014-10-13T11:36:39Z
2014-10-13T15:32:55Z
BUG: Plot with ``label`` would overwrite index name
diff --git a/doc/source/whatsnew/v0.15.0.txt b/doc/source/whatsnew/v0.15.0.txt index 5d7598b749feb..b6b36ce8c1bf9 100644 --- a/doc/source/whatsnew/v0.15.0.txt +++ b/doc/source/whatsnew/v0.15.0.txt @@ -1149,4 +1149,3 @@ Bug Fixes - Suppress FutureWarning generated by NumPy when comparing object arrays containing NaN fo...
Closes https://github.com/pydata/pandas/issues/8494 I took the easy solution and just copied the series. Alternatively we could attach a label property to the MPLObject, and check that wherever we check the index name.
https://api.github.com/repos/pandas-dev/pandas/pulls/8541
2014-10-11T19:51:12Z
2014-10-28T03:56:19Z
2014-10-28T03:56:19Z
2017-04-05T02:06:11Z
BUG: Dont add None to plot legend.
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 1793d6806be83..38c145cc5f014 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -2477,6 +2477,16 @@ def test_style_by_column(self): for i, l in enumerate(ax.get_lines()[:len(markers)]): ...
Closes https://github.com/pydata/pandas/issues/8491 Building the docs now to check that everything looks ok.
https://api.github.com/repos/pandas-dev/pandas/pulls/8536
2014-10-11T12:40:15Z
2014-10-11T19:27:25Z
2014-10-11T19:27:25Z
2017-04-05T02:06:09Z
DOC: Clean up Sphinx Issues, fix tabs, in Cookbook
diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index e8c6931cbad34..edff461d7989d 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -60,7 +60,7 @@ if-then... ********** An if-then on one column - + .. ipython:: python df.ix[df.AAA >= 5,'BBB'] = -1; df @@ -167,7 +167,...
This is a follow on PR as a result of [seeing travis and sphinx render ~30 in line examples for the cookbook](https://github.com/pydata/pandas/pull/8288#issuecomment-58734824). Continues to address #6918 Initial PR: https://github.com/pydata/pandas/pull/8288 PS - apologies for wanting to rush the first PR. My eveni...
https://api.github.com/repos/pandas-dev/pandas/pulls/8535
2014-10-11T02:48:43Z
2014-10-13T02:19:33Z
2014-10-13T02:19:33Z
2015-02-09T00:43:14Z
Add xray to ecosystem docs
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index e5009aeb1c6f6..c60f9ec9103e5 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -89,3 +89,11 @@ Domain Specific Geopandas extends pandas data objects to include geographic information which support geometric operations. If you...
Fixes #8516
https://api.github.com/repos/pandas-dev/pandas/pulls/8534
2014-10-10T18:11:45Z
2014-10-10T22:32:42Z
2014-10-10T22:32:42Z
2014-10-10T22:38:00Z
index into multi-index past the lex-sort depth
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 944a78ad3691e..6688f106f922e 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -19,6 +19,26 @@ users upgrade to this version. API changes ~~~~~~~~~~~ +- Indexing in ``MultiIndex`` beyond lex-sort...
closes https://github.com/pydata/pandas/issues/7724 closes https://github.com/pydata/pandas/issues/2646 on current master: ``` >>> df jolia jim joe jolie joline 1 z 2014-10-14 a 30 y 2014-10-13 b 3 x 2014-10-12 c 15 0 z 2014-10-11 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/8526
2014-10-10T02:56:48Z
2014-11-21T23:20:24Z
2014-11-21T23:20:24Z
2014-11-22T14:47:11Z
BUG/REGR: bool-like Indexes not properly coercing to object (GH8522)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index eec424f619bde..d972edeb2bbb3 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -642,7 +642,7 @@ Internal Refactoring In 0.15.0 ``Index`` has internally been refactored to no longer sub-class ``ndarray`` but instead subclass ``Panda...
closes #8522
https://api.github.com/repos/pandas-dev/pandas/pulls/8523
2014-10-09T17:11:37Z
2014-10-09T18:32:16Z
2014-10-09T18:32:16Z
2014-10-09T18:32:16Z
BUG: Bug in inplace operations with column sub-selections on the lhs (GH8511)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index e76a0e57c5e33..eec424f619bde 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -272,6 +272,46 @@ API changes df df.dtypes +- In prior versions, updating a pandas object inplace would not reflect in other python references...
closes #8511 closes #5104
https://api.github.com/repos/pandas-dev/pandas/pulls/8520
2014-10-09T12:06:03Z
2014-10-09T13:36:59Z
2014-10-09T13:36:59Z
2014-10-09T13:36:59Z
BUG: fix CategoricalBlock pickling
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index af47ee878b1c3..ee573da00abdb 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -656,7 +656,7 @@ Categoricals in Series/DataFrame :class:`~pandas.Categorical` can now be included in `Series` and `DataFrames` and gained new methods to ...
This should fix #8518. Apparently, `NonConsolidatableMixIn.__init__` was copied from a pre-`BlockPlacement` version of `SparseBlock.__init__` which was incompatible with placement being a slice. The current one is, so I moved it to NonConsolidatableMixIn class almost verbatim.
https://api.github.com/repos/pandas-dev/pandas/pulls/8519
2014-10-09T11:21:56Z
2014-10-10T12:50:13Z
2014-10-10T12:50:13Z
2014-10-10T13:17:54Z
ENH: axvlines - boolean option to parallel_coordinates plot
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 23ed1a083a965..dfbfd33232db8 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -80,6 +80,7 @@ Enhancements - ``Series`` now works with map objects the same way as generators (:issue:`8909`). - Adde...
Determines whether vertical lines will be added to parallel_coordinates plot. I was using parallel coordinates to make a seasonality chart - plotting years on top of each other (days/months of year on x-axis). With that many xticks, the vertical lines were overwhelming. It's possible to remove the lines after the fact,...
https://api.github.com/repos/pandas-dev/pandas/pulls/8513
2014-10-08T21:22:27Z
2014-12-05T20:16:33Z
2014-12-05T20:16:33Z
2015-09-03T15:25:02Z
BUG: Suppress FutureWarning when comparing object arrays
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index bb65312f053f3..49959b1e4270f 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -317,6 +317,16 @@ locations treated as equal. (df+df).equals(df*2) +Note that the Series or DataFrame index needs to be in the same order for +equality ...
Fixes #7065
https://api.github.com/repos/pandas-dev/pandas/pulls/8512
2014-10-08T20:55:57Z
2014-10-10T01:17:56Z
2014-10-10T01:17:56Z
2014-10-30T11:20:22Z
DOC: fix example sql chunksize
diff --git a/doc/source/io.rst b/doc/source/io.rst index 5490e666904f9..70d5c195233c3 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -3421,7 +3421,7 @@ Specifying this will return an iterator through chunks of the query result: .. ipython:: python - for chunk in pd.read_sql_query("SELECT * FROM data_...
https://api.github.com/repos/pandas-dev/pandas/pulls/8510
2014-10-08T19:45:27Z
2014-10-08T20:14:52Z
2014-10-08T20:14:52Z
2014-10-08T20:14:52Z
DOC: Update ecosystem.rst: Add IDE, IPython, qgrid, Spyder, API, quandl, Out-of-core, Blaze
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index c60f9ec9103e5..e5afe1db9417f 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -18,6 +18,7 @@ tools in the PyData space. We'd like to make it easier for users to find these project, if you know of other substantial projects t...
https://api.github.com/repos/pandas-dev/pandas/pulls/8507
2014-10-08T10:58:17Z
2014-10-13T14:20:11Z
2014-10-13T14:20:11Z
2014-10-13T14:21:33Z
COMPAT: matplotlib 1.4.0 version compat (GH8502)
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 566f8a133a2c2..1793d6806be83 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -33,7 +33,7 @@ def _skip_if_mpl_14_or_dev_boxplot(): # Boxplot failures on 1.4 and 1.4.1 # Don't need try / except sin...
closes #8502
https://api.github.com/repos/pandas-dev/pandas/pulls/8504
2014-10-07T19:18:10Z
2014-10-07T19:57:11Z
2014-10-07T19:57:10Z
2014-10-07T19:57:11Z
WIP/CI: add appveyor support
diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000000000..2a5597b380979 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,35 @@ +environment: + global: + # SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the + # /E:ON and /V:ON options are not enabled in the batch script intepreter...
building using appveyor (windows CI) closes #5561 https://ci.appveyor.com/project/jreback/pandas/build/1.0.455/job/2avadnw54tpv3lob
https://api.github.com/repos/pandas-dev/pandas/pulls/8500
2014-10-07T16:31:32Z
2014-10-07T21:52:42Z
2014-10-07T21:52:42Z
2014-10-07T21:52:42Z
DOC/BUG:Added Missing Semicolon to Release Note v0.15
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 3cb7b7d5e8b69..5dbb45876704c 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -274,7 +274,7 @@ API changes - ``Series.to_csv()`` now returns a string when ``path=None``, matching the behaviour of ``DataFrame.to_csv()`` (:issue:`821...
Missed a semi-colon, here's the fix.
https://api.github.com/repos/pandas-dev/pandas/pulls/8497
2014-10-07T15:28:14Z
2014-10-07T15:32:04Z
2014-10-07T15:32:04Z
2014-10-07T18:17:23Z
DOC: fix notes in plot() docstring
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index 1774133dd4c9d..1d47c3781a7d7 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -2310,8 +2310,7 @@ def _plot(data, x=None, y=None, subplots=False, Sort column names to determine plot ordering secondary_y : boolean ...
There was some repetition in the docstring note of `plot` since the refactor of the docstring (hexbin part) + scatter is only needed for dataframe docstring (not series)
https://api.github.com/repos/pandas-dev/pandas/pulls/8493
2014-10-06T20:32:54Z
2014-10-06T20:33:17Z
2014-10-06T20:33:17Z
2014-10-06T20:33:17Z
BUG: searchsorted sorter issue with 32bit platforms (GH8490)
diff --git a/pandas/core/series.py b/pandas/core/series.py index f313352ef9660..95a7b22b90338 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1429,6 +1429,9 @@ def searchsorted(self, v, side='left', sorter=None): >>> x.searchsorted([1, 2], side='right', sorter=[0, 2, 1]) array([1, 3...
Closes #8490
https://api.github.com/repos/pandas-dev/pandas/pulls/8492
2014-10-06T20:21:42Z
2014-10-06T21:58:41Z
2014-10-06T21:58:40Z
2014-10-06T22:01:43Z
DOC: warning about copying for df.append/concat. Fixes #7967
diff --git a/doc/source/merging.rst b/doc/source/merging.rst index 922fb84c57a56..7d21ba4a3b694 100644 --- a/doc/source/merging.rst +++ b/doc/source/merging.rst @@ -51,7 +51,6 @@ takes a list or dict of homogeneously-typed objects and concatenates them with some configurable handling of "what to do with the other axes...
closes #7967
https://api.github.com/repos/pandas-dev/pandas/pulls/8488
2014-10-06T16:00:32Z
2014-10-06T17:09:18Z
2014-10-06T17:09:18Z
2014-10-06T17:13:37Z
DOC: fix bunch of doc build errors
diff --git a/doc/source/api.rst b/doc/source/api.rst index 4dd055bce0a0a..2e913d8aae4da 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -819,7 +819,6 @@ Reshaping, sorting, transposing .. autosummary:: :toctree: generated/ - DataFrame.delevel DataFrame.pivot DataFrame.reorder_levels Dat...
https://api.github.com/repos/pandas-dev/pandas/pulls/8487
2014-10-06T14:47:19Z
2014-10-06T15:09:27Z
2014-10-06T15:09:27Z
2014-10-06T15:09:27Z
DOC: indexing.rst fixes w.r.t (GH8227)
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 7494f21b3ba71..8edd3e93759a6 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -1191,39 +1191,8 @@ The name, if set, will be shown in the console display: df df['A'] - -Set operations on Index objects -~~~~~~~~~~~~~~~~~~~...
xref #8227 mixxing updates in indexing.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/8485
2014-10-06T14:28:12Z
2014-10-06T15:01:11Z
2014-10-06T15:01:11Z
2014-10-06T16:50:42Z
BUG: Bug in groupby .apply with a non-affecting mutation in the function (GH8467)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 6b2d2b6aad490..9b3f79836141b 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -946,7 +946,7 @@ Bug Fixes - Bug in ``is_superperiod`` and ``is_subperiod`` cannot handle higher frequencies than ``S`` (:issue:`7760`, :issue:`7772`, :iss...
closes #8467
https://api.github.com/repos/pandas-dev/pandas/pulls/8484
2014-10-06T13:19:58Z
2014-10-06T13:54:52Z
2014-10-06T13:54:51Z
2014-10-06T13:54:52Z
DEPR: deprecate value_range (GH8481)
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 38828d5623536..bb65312f053f3 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -509,9 +509,6 @@ arguments. The special value ``all`` can also be used: That feature relies on :ref:`select_dtypes <basics.selectdtypes>`. Refer to there for...
closes #8481
https://api.github.com/repos/pandas-dev/pandas/pulls/8483
2014-10-06T12:48:06Z
2014-10-06T13:21:02Z
2014-10-06T13:21:02Z
2014-10-06T13:21:03Z
BUG: sub-frame assignment of a multi-index frame breaks alignment
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 1b7b05847a901..b1ae1bd72a424 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -1048,3 +1048,4 @@ Bug Fixes - Bug in ``NDFrame.loc`` indexing when row/column names were lost when target was a list/ndarray (:issue:`6552`) - Regression...
closes https://github.com/pydata/pandas/issues/7655 ``` >>> df jim joe jolie first last first last first last ...
https://api.github.com/repos/pandas-dev/pandas/pulls/8480
2014-10-06T03:31:45Z
2014-10-06T13:03:02Z
2014-10-06T13:03:02Z
2014-10-07T00:36:25Z
DOC: Some more vis cleanups
diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst index 3285efadf8ad1..ec73a16ba5d00 100644 --- a/doc/source/visualization.rst +++ b/doc/source/visualization.rst @@ -13,7 +13,11 @@ np.set_printoptions(precision=4, suppress=True) import matplotlib.pyplot as plt plt.close('all') - opt...
Two things included: 1. Try to use ggplot style. If not, fall back to the previous 'default'. 2. Fixes some warnings in the doc build (part of https://github.com/pydata/pandas/issues/8234). There are some remaining warnings that I didn't have a chance to track down. Will see if I can later.
https://api.github.com/repos/pandas-dev/pandas/pulls/8478
2014-10-06T02:28:33Z
2014-10-06T22:28:57Z
2014-10-06T22:28:57Z
2017-04-05T02:06:01Z
BUG: allow std to work with timedeltas (GH8471)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 1b7b05847a901..5fdf9341bcd0e 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -638,7 +638,7 @@ TimedeltaIndex/Scalar We introduce a new scalar type ``Timedelta``, which is a subclass of ``datetime.timedelta``, and behaves in a simila...
close #8471
https://api.github.com/repos/pandas-dev/pandas/pulls/8476
2014-10-05T22:14:34Z
2014-10-05T23:52:47Z
2014-10-05T23:52:47Z
2014-10-05T23:52:47Z
BUG: .at indexing should allow enlargement scalars w/o regards to the type of index (GH8473)
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 8a77cc85efced..6d002bc8d633a 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1484,7 +1484,7 @@ class _ScalarAccessIndexer(_NDFrameIndexer): """ access scalars quickly """ - def _convert_key(self, key): + def _conv...
closes #8473
https://api.github.com/repos/pandas-dev/pandas/pulls/8475
2014-10-05T20:42:22Z
2014-10-05T21:15:45Z
2014-10-05T21:15:45Z
2014-10-05T21:15:45Z
TEST: add for sqlite fallback raising on datetime.time (and not failing silently) GH8341
diff --git a/pandas/io/tests/test_sql.py b/pandas/io/tests/test_sql.py index 217114a00e980..8c29b26f80d01 100644 --- a/pandas/io/tests/test_sql.py +++ b/pandas/io/tests/test_sql.py @@ -1398,8 +1398,12 @@ def test_datetime_date(self): def test_datetime_time(self): # test support for datetime.time - ...
Forgot to add this to #8470
https://api.github.com/repos/pandas-dev/pandas/pulls/8474
2014-10-05T20:04:32Z
2014-10-05T21:24:57Z
2014-10-05T21:24:57Z
2014-10-05T21:24:57Z
Disallow Series indexing by DataFrame
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index f163efe45dd86..f71c1f1dfcbf1 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -1026,3 +1026,4 @@ Bug Fixes - Bug in assignment with indexer where type diversity would break alignment (:issue:`8258`) - Bug in ``NDFrame.loc`` indexing...
Fixes #8444. I don't like importing DataFrame, but this was most obvious way to do it.
https://api.github.com/repos/pandas-dev/pandas/pulls/8472
2014-10-05T15:18:16Z
2014-10-05T17:03:01Z
2014-10-05T17:03:01Z
2014-10-05T17:03:44Z