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
Support merging DataFrames on a combo of columns and index levels (GH 14355)
diff --git a/doc/source/merging.rst b/doc/source/merging.rst index 7d981b815d01b..86d2ec2254057 100644 --- a/doc/source/merging.rst +++ b/doc/source/merging.rst @@ -518,14 +518,16 @@ standard database join operations between DataFrame objects: - ``left``: A DataFrame object - ``right``: Another DataFrame object -- ...
This PR implements the changes proposed and discussed with @jorisvandenbossche @shoyer @TomAugspurger @jreback in #14355. These changes allow the `on`, `left_on`, and `right_on` parameters of `DataFrame.merge` to accept a combination of column names and index level names. Any common index levels that are merged on a...
https://api.github.com/repos/pandas-dev/pandas/pulls/17484
2017-09-09T14:42:49Z
2017-12-01T16:45:20Z
2017-12-01T16:45:20Z
2017-12-01T17:28:58Z
Make *_range functions consistent
diff --git a/doc/source/api.rst b/doc/source/api.rst index 27a4ab9cc6cbc..1541bbccefe21 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -218,10 +218,19 @@ Top-level dealing with datetimelike to_timedelta date_range bdate_range + cdate_range period_range timedelta_range infer_freq ...
- [X] closes #17471 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Comments: - I couldn't find any existing tests of `period_range`, so I created a new file `test_period_range.py` in a similar fashion to the existing files `test_date_range.p...
https://api.github.com/repos/pandas-dev/pandas/pulls/17482
2017-09-09T04:54:21Z
2017-09-14T10:11:32Z
2017-09-14T10:11:31Z
2017-09-15T22:10:31Z
Remove pyx dependencies from setup
diff --git a/setup.py b/setup.py index 3269fe7972cf0..d64a78db7500a 100755 --- a/setup.py +++ b/setup.py @@ -347,14 +347,6 @@ class CheckSDist(sdist_class): def initialize_options(self): sdist_class.initialize_options(self) - ''' - self._pyxfiles = [] - for root, dirs, files in os.w...
See discussion in #17419 - [ ] 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/17478
2017-09-08T17:40:58Z
2017-09-10T14:43:37Z
2017-09-10T14:43:37Z
2017-09-11T15:49:58Z
ENH: Add Styler.where
diff --git a/doc/source/api.rst b/doc/source/api.rst index c32a541d19605..27a4ab9cc6cbc 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2062,6 +2062,7 @@ Style Application Styler.apply Styler.applymap + Styler.where Styler.format Styler.set_precision Styler.set_table_styles diff --g...
- [x] closes #16255 - [x] tests added / passed Added `test_where_subset` in `pandas/tests/io/formats/test_style.py`. - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry It makes the redundant style condition simple. ```python df.style.applymap(lambda val: 'color: %s' % 'red'...
https://api.github.com/repos/pandas-dev/pandas/pulls/17474
2017-09-08T08:26:57Z
2017-09-11T00:01:42Z
2017-09-11T00:01:42Z
2017-09-11T00:02:20Z
Fix typo in setup.py introduced by #17422
diff --git a/setup.py b/setup.py index 4e326beefa908..3269fe7972cf0 100755 --- a/setup.py +++ b/setup.py @@ -341,7 +341,7 @@ class CheckSDist(sdist_class): 'pandas/_libs/window.pyx', 'pandas/_libs/sparse.pyx', 'pandas/_libs/parsers.pyx', - 'panads/_l...
- [ ] 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/17473
2017-09-08T02:47:29Z
2017-09-08T10:05:06Z
2017-09-08T10:05:06Z
2017-10-30T16:25:02Z
Follow up to #17422
diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx index 8f89b812fec04..e2a3baa8d6e8b 100644 --- a/pandas/_libs/period.pyx +++ b/pandas/_libs/period.pyx @@ -10,17 +10,16 @@ from cpython cimport ( from numpy cimport (int8_t, int32_t, int64_t, import_array, ndarray, NPY_INT64, NPY_DATETI...
As a follow-up, this performs small touchups in a handful of places. Implement .pxd file for tslibs.frequencies cimport get_freq_code in period.pyx Replace isinstance checks in period.pyx with C-equivalents form util Remove unused imports from period.pyx Remove code in tseries.frequencies that can now be...
https://api.github.com/repos/pandas-dev/pandas/pulls/17472
2017-09-08T02:28:35Z
2017-09-08T10:16:14Z
2017-09-08T10:16:14Z
2017-10-30T16:25:01Z
Replace * imports with explicit imports; remove unused declared const…
diff --git a/pandas/_libs/src/skiplist.pyx b/pandas/_libs/src/skiplist.pyx index 559b529822a69..1524dca38d0e0 100644 --- a/pandas/_libs/src/skiplist.pyx +++ b/pandas/_libs/src/skiplist.pyx @@ -15,7 +15,6 @@ cdef double Log2(double x): return log(x) / log(2.) cimport numpy as np -from numpy cimport * import num...
…ants - [ ] 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/17470
2017-09-07T22:06:42Z
2017-09-08T00:46:13Z
2017-09-08T00:46:13Z
2017-09-08T02:33:14Z
DOC: Removed Timedelta.is_populated and fixed spelling errors
diff --git a/doc/source/api.rst b/doc/source/api.rst index d34cec86638fb..c32a541d19605 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1704,7 +1704,7 @@ Methods Timestamp.floor Timestamp.freq Timestamp.freqstr - Timestamp.from_ordinal + Timestamp.fromordinal Timestamp.fromtimesta...
- [x] closes #17369 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Additional fixes per comments in #17424
https://api.github.com/repos/pandas-dev/pandas/pulls/17469
2017-09-07T20:26:25Z
2017-09-08T00:47:53Z
2017-09-08T00:47:53Z
2017-09-11T07:39:05Z
Fixed rendering of ticks in error bars
diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst index 7db3b63fd8f08..2ae1a127fb218 100644 --- a/doc/source/visualization.rst +++ b/doc/source/visualization.rst @@ -1389,7 +1389,7 @@ Here is an example of one way to easily plot group means with standard deviation # Plot fig, ax = plt.sub...
- [x] closes #17467 - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17468
2017-09-07T19:14:44Z
2017-10-20T20:27:05Z
null
2017-10-20T20:27:06Z
BUG: Fix TypeError caused by GH13374
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index f50052347cfb5..bfe7d974a6097 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -411,6 +411,7 @@ I/O - Bug in :func:`read_csv` when called with a single-element list ``header`` would return a ``DataF...
- [x] closes #13374 - [x] `0 failed, 9873 passed, 1955 skipped, 11 xfailed, 4 warnings in 1475.44 seconds` > added ``test_none_delimiter`` in ``pandas/tests/io/parser/python_parser_only.py`` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry > Bug in :func:`read_csv` wh...
https://api.github.com/repos/pandas-dev/pandas/pulls/17465
2017-09-07T16:59:51Z
2017-09-10T07:30:49Z
2017-09-10T07:30:49Z
2017-09-10T12:48:46Z
DOC: Change plot style to matplotlib decault from ggplot
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index ef6b2d6ef2c90..0a23f490e6628 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -11,7 +11,7 @@ np.random.seed(123456) np.set_printoptions(precision=4, suppress=True) import matplotlib - matplotlib.style.use('ggplot') + # matplot...
A proposal to change plot style in the docs to ``seaborn`` from ``ggplot``. See also #17423.
https://api.github.com/repos/pandas-dev/pandas/pulls/17462
2017-09-07T11:36:36Z
2017-09-25T08:13:56Z
2017-09-25T08:13:56Z
2017-09-26T09:39:46Z
DOC: to_json
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index df5f1a8326acd..8d16b079ba2c8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1265,7 +1265,7 @@ def to_json(self, path_or_buf=None, orient=None, date_format=None, Parameters ---------- path_or_buf : the pat...
- [ ] 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/17461
2017-09-07T10:57:49Z
2017-09-07T11:41:24Z
2017-09-07T11:41:24Z
2017-09-07T11:41:26Z
ENH: Add optional argument keep_index to dataframe melt method
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5991ec825c841..16162b699bfd1 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4367,6 +4367,10 @@ def unstack(self, level=-1, fill_value=None): Name to use for the 'value' column. col_level : int or string, optional If ...
Setting keep_index to True will reuse the original DataFrame index + names of melted columns as additional level. closes issue #17440 - [ ] closes #17440 - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` I appreciate any corrections, comments and/or help very much, as this is my first pull re...
https://api.github.com/repos/pandas-dev/pandas/pulls/17459
2017-09-07T07:20:52Z
2017-11-25T16:15:45Z
null
2018-12-14T12:05:25Z
Lock down kwargs in offsets signatures
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 61c05d1b226e0..8a6e0c24e235d 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -649,6 +649,7 @@ Other API Changes - :func:`to_datetime` when passed a tz-aware ``origin=`` kwarg will now raise a more...
Explicitly specify allowed kwargs in `__init__` for `Week`, `WeekOfMonth`, `LastWeekOfMonth` and `QuarterOffset`. Ref #17176 Intended to be orthogonal/complementary to #17450. Will add tests after confirming we're on the same page. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upst...
https://api.github.com/repos/pandas-dev/pandas/pulls/17458
2017-09-07T04:04:38Z
2017-10-06T15:38:04Z
2017-10-06T15:38:04Z
2017-10-30T16:22:46Z
cdef out dtype for _Timestamp._get_field
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index a7b33c669a8b8..7e009652f7f0c 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -1275,6 +1275,7 @@ cdef class _Timestamp(datetime): cpdef _get_field(self, field): cdef: int64_t val + ndarray[int32_t...
Follow-up to @jreback [comment](https://github.com/pandas-dev/pandas/pull/17377#discussion_r136948947) in #17377 to dtype the `out` variable in `_get_field` and `get_named_field` Also, replaced value conversion in `_get_start_end_field` with `_maybe_convert_value_to_local` function created in #17377
https://api.github.com/repos/pandas-dev/pandas/pulls/17457
2017-09-07T03:27:03Z
2017-09-07T11:28:12Z
2017-09-07T11:28:12Z
2017-09-08T01:52:02Z
ENH: Implement MultiIndex.is_monotonic_decreasing
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index c808babeee5d9..3e26f3137e4fc 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -114,7 +114,7 @@ Other Enhancements - :func:`pd.read_sas()` now recognizes much more of the most frequently used date (...
- [X] closes #16554 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Note that this is a dupe PR of #16573, which appears to have gone stale. Implementation ended up being easier than what I suggested in the issue; can use the fact that an ind...
https://api.github.com/repos/pandas-dev/pandas/pulls/17455
2017-09-06T22:46:15Z
2017-09-19T20:28:15Z
2017-09-19T20:28:15Z
2017-09-19T22:37:59Z
ENH: gb.is_monotonic_increasing #17015
diff --git a/doc/source/api.rst b/doc/source/api.rst index 44f87aa3e1cec..103b0fe9ff019 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2240,6 +2240,8 @@ The following methods are available only for ``SeriesGroupBy`` objects. SeriesGroupBy.nunique SeriesGroupBy.unique SeriesGroupBy.value_counts...
- [x] closes [#17015](https://github.com/pandas-dev/pandas/issues/17015#issuecomment-316238679) - [x] tests added / passed: updated test_tab_completion to expect additional functions `is_monotonic_increasing` and `is_monotonic_decreasing` added (semi-redundant) tests of gb.is_monotonically_increasing() - strictly ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17453
2017-09-06T20:44:00Z
2018-02-15T08:36:10Z
2018-02-15T08:36:10Z
2018-02-15T08:36:35Z
Fix bug where offset.copy() != offset
diff --git a/pandas/tests/tseries/test_offsets.py b/pandas/tests/tseries/test_offsets.py index e03b3e0a85e5e..3239fff22ef50 100644 --- a/pandas/tests/tseries/test_offsets.py +++ b/pandas/tests/tseries/test_offsets.py @@ -1952,6 +1952,11 @@ def _check_roundtrip(obj): _check_roundtrip(self._object(2)) _...
Add test that will currently fail Make some attributes into cache_readonlys Last one for now. - [ ] 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/17452
2017-09-06T18:03:33Z
2017-09-14T22:52:54Z
2017-09-14T22:52:54Z
2017-10-30T16:24:51Z
Use cache_readonly attrs to minimize attrs set in __init__
diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index 7ccecaa84e6d6..36aeff35d3923 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -11,6 +11,7 @@ from dateutil.relativedelta import relativedelta, weekday from dateutil.easter import easter from pandas._libs import tslib, T...
Trying to break the fixes to `offsets` into small pieces. Recall the goal is to make `DateOffset` immutable so as to fix the very slow `__eq__` calls that get made by `Period.__eq__` and the `PeriodIndex` constructor. As a step towards immutability, this PR is trying to reduce the number of attributes set in `__ini...
https://api.github.com/repos/pandas-dev/pandas/pulls/17450
2017-09-06T17:34:54Z
2017-09-17T21:26:29Z
2017-09-17T21:26:29Z
2017-10-30T16:23:43Z
COMPAT: handle pyarrow deprecation of timestamps_to_ms in .from_pandas with pyarrow < 0.6.0
diff --git a/ci/requirements-3.5.sh b/ci/requirements-3.5.sh index 33db9c28c78a9..d694ad3679ac1 100644 --- a/ci/requirements-3.5.sh +++ b/ci/requirements-3.5.sh @@ -8,4 +8,4 @@ echo "install 35" conda remove -n pandas python-dateutil --force pip install python-dateutil -conda install -n pandas -c conda-forge feathe...
closes #17438
https://api.github.com/repos/pandas-dev/pandas/pulls/17447
2017-09-06T10:23:03Z
2017-09-06T12:23:07Z
2017-09-06T12:23:06Z
2017-09-12T10:27:25Z
Use setdefault on kwds to standardize behavior
diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index 7ccecaa84e6d6..4d28917e3eb43 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -592,7 +592,7 @@ def __init__(self, n=1, normalize=False, **kwds): self.n = int(n) self.normalize = normalize self.kw...
`DateOffset.kwds` does not behave consistently, see brief discussion [here](https://github.com/pandas-dev/pandas/issues/17176#issuecomment-325214819). This PR changes `kwds.get(name, default)` to `kwds.setdefault(name, default)` in each of the `__init__` methods in `tseries.offsets`. This ensures that explicitly pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/17443
2017-09-06T01:35:14Z
2017-09-07T04:07:49Z
null
2017-09-07T04:07:58Z
DOC: cleaned references to pandas v0.15 and v0.16 in docs
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index def49a641a0ff..ef6b2d6ef2c90 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -655,7 +655,7 @@ the quarter end: Categoricals ------------ -Since version 0.15, pandas can include categorical data in a ``DataFrame``. For full docs, see the ...
Last round of cleanup of references to older pandas versions (here v0.15 and v0.16). I'm not intending to go further up: v0.16.2 was released in june 2015, and allowing up to 2 years old references to be seen in the docs themselves is reasonable IMO. (but other may have a different view, so if there's a "demand" I ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17442
2017-09-05T19:07:58Z
2017-09-07T01:00:50Z
2017-09-07T01:00:50Z
2017-09-07T02:14:43Z
Rebase
rebase with pandas master
https://api.github.com/repos/pandas-dev/pandas/pulls/17439
2017-09-05T11:24:32Z
2017-09-05T11:24:51Z
null
2017-09-05T11:24:51Z
Remove unused imports from period.pyx
diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx index 816b7ebfff86d..818b0ba323d14 100644 --- a/pandas/_libs/period.pyx +++ b/pandas/_libs/period.pyx @@ -6,20 +6,18 @@ from cpython cimport ( PyObject_RichCompareBool, Py_EQ, Py_NE) -from numpy cimport (int8_t, int32_t, int64_t, import_array, n...
Replace isinstance checks with more efficient versions from util; Remove redundant checks for isinstance(..., (timedelta, Timedelta)) since Timedelta subclasses timedelta The main goal is to reduce the inter-dependencies between lib/tslib/period(/frequencies/offsets).
https://api.github.com/repos/pandas-dev/pandas/pulls/17434
2017-09-05T03:35:33Z
2017-09-05T14:14:35Z
null
2017-10-30T16:23:39Z
BUG: TimedeltaIndex.intersection
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 008828cf4f309..510baa6639d60 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1200,6 +1200,12 @@ def is_monotonic(self): """ alias for is_monotonic_increasing (deprecated) """ return self.is_mono...
- [ ] closes #17391 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17433
2017-09-05T02:53:32Z
2017-12-10T23:32:17Z
null
2018-07-24T13:27:12Z
Dont re-pin total_seconds as it is already implemented
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 50e0b77c6d3a0..bd0d0fe5559d3 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -858,6 +858,9 @@ class NaTType(_NaT): return (__nat_unpickle, (None, )) def total_seconds(self): + """ + Total duration of tim...
- [ ] 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/17432
2017-09-04T19:34:51Z
2017-09-07T00:14:06Z
2017-09-07T00:14:06Z
2017-10-30T16:23:41Z
Remove unused _day and _month attrs
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 50e0b77c6d3a0..8fbc606ccdfe2 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -829,8 +829,6 @@ class NaTType(_NaT): cdef _NaT base base = _NaT.__new__(cls, 1, 1, 1) - base._day = -1 - base._month = -1...
closes #17429 - [ ] 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/17431
2017-09-04T19:32:03Z
2017-09-04T23:32:35Z
2017-09-04T23:32:35Z
2017-10-30T16:23:50Z
BUG: Plotting Timedelta on y-axis #16953
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 273cbd8357f85..44438d57dc0ad 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -400,7 +400,7 @@ I/O Plotting ^^^^^^^^ - Bug in plotting methods using ``secondary_y`` and ``fontsize`` not setting s...
- [x] closes #16953 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This fixes the issue with a TypeError being raised if the y-data were of type Timedelta or Datetime. The plot of Timedelta doesn't look pretty since it is converted to ns representation, but matplo...
https://api.github.com/repos/pandas-dev/pandas/pulls/17430
2017-09-04T19:07:43Z
2017-09-06T12:03:40Z
2017-09-06T12:03:40Z
2017-10-15T19:44:37Z
Added line decoding before sniffing at PythonParser#_make_reader
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 8b1a921536a1d..605a4ec8505e4 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -2125,6 +2125,8 @@ class MyDialect(csv.Dialect): self.pos += 1 self.line_pos += 1 + if self.encoding is not None:...
Fixes issue when reading CSV from unencoded IO stream (i.e. WSGI request body). CSV sniffer uses regexp internally and crashes with `TypeError: cannot use a string pattern on a bytes-like object`. This change fixes the issue. Better way, however would be to add proper encoding support to `csv.Sniffer()`. - [ ] clos...
https://api.github.com/repos/pandas-dev/pandas/pulls/17427
2017-09-04T10:17:41Z
2017-10-28T15:44:01Z
null
2023-05-11T01:16:20Z
DOC: Add Timestamp, Period, Timedelta, and Interval to api.rst
diff --git a/doc/source/api.rst b/doc/source/api.rst index 12e6c7ad7f630..d34cec86638fb 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1599,6 +1599,201 @@ Conversion TimedeltaIndex.floor TimedeltaIndex.ceil +.. currentmodule:: pandas + +Scalars +------- + +Period +~~~~~~ +.. autosummary:: + :...
- [x] closes #17369 - [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/17424
2017-09-03T01:08:33Z
2017-09-07T11:35:41Z
2017-09-07T11:35:41Z
2017-09-11T04:05:00Z
PERF: Implement get_freq_code in cython frequencies
diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py index f9837191a7bae..78d66295f28cc 100644 --- a/asv_bench/benchmarks/period.py +++ b/asv_bench/benchmarks/period.py @@ -2,6 +2,35 @@ from pandas import Series, Period, PeriodIndex, date_range +class PeriodProperties(object): + def setu...
There's a whole bunch of `tseries.frequencies` and `tseries.offsets` that should be moved into cython to improve `Period` (and `PeriodIndex, and to a lesser extend `Timestamp`) performance. This PR just starts with the function `get_freq_code`. To keep the PR small, there are a bunch of things it _doesnt_ do that c...
https://api.github.com/repos/pandas-dev/pandas/pulls/17422
2017-09-02T17:50:06Z
2017-09-08T01:00:05Z
2017-09-08T01:00:05Z
2017-10-30T16:25:04Z
Remove unnecessary iNaT checks from _Period properties
diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py index 78d66295f28cc..df3c2bf3e4b46 100644 --- a/asv_bench/benchmarks/period.py +++ b/asv_bench/benchmarks/period.py @@ -78,6 +78,65 @@ def time_value_counts_pindex(self): self.i.value_counts() +class Properties(object): + def s...
In the status quo, `pd.Period.year` goes through several layers of redirection, one of which checks for `self.ordinal == iNaT`. ``` cdef class _Period(object): [...] cdef _field(self, alias): base, mult = frequencies.get_freq_code(self.freq) return get_period_field(alias, self.ordinal, ba...
https://api.github.com/repos/pandas-dev/pandas/pulls/17421
2017-09-02T17:08:09Z
2017-09-15T01:33:04Z
2017-09-15T01:33:04Z
2017-10-30T16:24:50Z
DOC: Clean-up references to v12 to v14 (both included)
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 711c3e9a95d05..4af476cd5a7e1 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -270,9 +270,6 @@ Passing a list of labels or tuples works similar to reindexing: Using slicers ~~~~~~~~~~~~~ -.. versionadded:: 0.14.0 - -In 0.14.0 ...
- [ ] closes #xxxx - [ ] tests added / passed - [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is a continution of #17375 and cleans up references to old versions of pandas in the documentation. Somme issues, I'd appreciate input on: * In ``enhancingperf.rst`` th...
https://api.github.com/repos/pandas-dev/pandas/pulls/17420
2017-09-02T13:33:38Z
2017-09-05T10:30:32Z
2017-09-05T10:30:32Z
2017-09-11T21:10:52Z
Implement _is_utc in timezones
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 42ba0c1cadaec..bf4d53683c9b7 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -17,6 +17,7 @@ cimport tslib from hashtable cimport HashTable +from tslibs.timezones cimport _is_utc from pandas._libs import tslib, algos, hashtable ...
This is the first of a bunch of PRs to take the place of #17274. - [ ] 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/17419
2017-09-01T22:59:08Z
2017-09-11T11:22:57Z
2017-09-11T11:22:57Z
2017-10-30T16:24:54Z
DOC/TST: Add examples to MultiIndex.get_level_values + related changes
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 6a30eaefaaae7..a9098126a38e3 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2529,15 +2529,23 @@ def set_value(self, arr, key, value): def _get_level_values(self, level): """ Return an Inde...
- [ ] closes #xxxx - [x ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I've added examples to ``MultiIndex.get_level_values``. Also I've done some related changes: * made return value of ``Index._get_level_values`` * Added test for when supplying...
https://api.github.com/repos/pandas-dev/pandas/pulls/17414
2017-09-01T17:55:32Z
2017-09-06T14:55:13Z
2017-09-06T14:55:13Z
2017-09-11T21:17:58Z
DEPS: Added tz keyword to to_datetime function, deprecates utc
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 273cbd8357f85..96e21852e9189 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -132,7 +132,6 @@ Other Enhancements - :func:`DataFrame.items` and :func:`Series.items` is now present in both Python 2 ...
- [x] closes #13712 - [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/17413
2017-09-01T11:59:53Z
2017-12-10T23:33:10Z
null
2017-12-10T23:33:10Z
DOC: to_datetime format argument examples
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 3b8f105bb1b47..7399deb1319d8 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -175,12 +175,8 @@ you can pass the ``dayfirst`` flag: can't be parsed with the day being first it will be parsed as if ``dayfirst`` were...
- [ ] closes #16669
https://api.github.com/repos/pandas-dev/pandas/pulls/17412
2017-09-01T11:41:47Z
2017-09-18T13:45:09Z
2017-09-18T13:45:09Z
2017-09-18T18:21:22Z
BUG: fillna ignoring axis=1 parameter. #17399
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 37247ab133948..16ee642e5dd63 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4758,8 +4758,8 @@ def fillna(self, value=None, method=None, axis=None, inplace=False, return result if not inplace else None ...
- [x] closes #17399 - [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/17409
2017-09-01T10:08:59Z
2018-02-24T17:09:43Z
null
2019-09-11T14:46:40Z
TST: Enable tests that aren't currently running in indexes/datetimes/test_tools.py
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index c0f234a36803d..37f13b365ca20 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -605,7 +605,7 @@ def f(value): if len(excess): raise ValueError("extra keys have been passed " ...
- [X] closes #17403 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Enabled tests that aren't currently running. Made a small modification to a typo in `datetimes.py` to make sure all tests pass. Small modifications to checks in `TestToDatetimeUnit::test_frame` to ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17405
2017-08-31T20:53:38Z
2017-09-01T14:52:45Z
2017-09-01T14:52:44Z
2017-09-01T16:38:14Z
TST: remove tests and docs for legacy (pre 0.12) hdf5 support
diff --git a/doc/source/io.rst b/doc/source/io.rst index e338407361705..f55c72bae5a20 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4419,44 +4419,6 @@ Now you can import the ``DataFrame`` into R: starting point if you have stored multiple ``DataFrame`` objects to a single HDF5 file. -Backwards Co...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Removing tests for old compatability because this issue is sufficiently old now, that people should be expected to have solved this themselves by now. The first commit removes...
https://api.github.com/repos/pandas-dev/pandas/pulls/17404
2017-08-31T20:05:15Z
2017-09-01T16:36:00Z
2017-09-01T16:36:00Z
2017-09-11T21:12:08Z
Tslib unused
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 5dd30072fb7aa..50e0b77c6d3a0 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -2622,8 +2622,6 @@ cdef class _Timedelta(timedelta): int ndim if isinstance(other, _Timedelta): - if isinstance(other, _N...
along with one repeated string and a case in `_Timedelta.__richcmp__` that is not reachable. - [ ] closes #17379 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17402
2017-08-31T18:53:39Z
2017-09-01T17:11:41Z
2017-09-01T17:11:41Z
2017-09-01T17:20:47Z
TST: Remove tests for hdf files created with pandas <= v0.11
diff --git a/doc/source/io.rst b/doc/source/io.rst index e338407361705..f55c72bae5a20 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4419,44 +4419,6 @@ Now you can import the ``DataFrame`` into R: starting point if you have stored multiple ``DataFrame`` objects to a single HDF5 file. -Backwards Co...
- [ x] closes #17375 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x ] whatsnew entry Tests for old compatability removed because this issue is sufficiently old now, that people should be expected to have solved this by now. @jreback , the methods ``test_leg...
https://api.github.com/repos/pandas-dev/pandas/pulls/17398
2017-08-31T14:11:05Z
2017-09-01T00:30:34Z
null
2017-09-01T00:30:43Z
TST: Made s3 related tests mock boto
diff --git a/appveyor.yml b/appveyor.yml index 65e62f887554e..a1f8886f6d068 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -74,12 +74,18 @@ install: # create our env - cmd: conda create -n pandas python=%PYTHON_VERSION% cython pytest>=3.1.0 pytest-xdist - cmd: activate pandas + - cmd: pip install moto - S...
Kept a couple tests un-mocked for testing things like accessing a private bucket as that's hard to mock. - [ ] closes #17325 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17388
2017-08-31T02:50:06Z
2017-09-14T10:14:44Z
2017-09-14T10:14:44Z
2017-09-15T13:31:32Z
CLN: replace %s syntax with .format in io/formats
diff --git a/pandas/io/formats/css.py b/pandas/io/formats/css.py index d12d2373e1190..429c98b579ca0 100644 --- a/pandas/io/formats/css.py +++ b/pandas/io/formats/css.py @@ -94,12 +94,13 @@ def __call__(self, declarations_str, inherited=None): # 3. TODO: resolve other font-relative units for side in ...
Progress toward issue #16130. Converted old string formatting to new string formatting in io/formats/css.py, excel.py, printing.py, style.py, and terminal.py.
https://api.github.com/repos/pandas-dev/pandas/pulls/17387
2017-08-31T02:49:10Z
2017-08-31T10:24:24Z
2017-08-31T10:24:24Z
2017-09-25T11:08:24Z
BUG: Fix wrong SparseBlock initialization
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 045580d393b26..7bae661ba93dd 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -29,6 +29,7 @@ is_bool_dtype, is_object_dtype, is_datetimelike_v_numeric, + is_complex_dtype, is_float_dtype, is_numeric_dtyp...
- [x] closes #17198 - [x] tests added / passed Passed the same tests which the current master branch pass. - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17386
2017-08-31T00:33:43Z
2018-07-07T14:49:19Z
null
2018-07-07T14:49:19Z
DOC: Adding methods for "bad" lines that preserve all data
diff --git a/doc/source/io.rst b/doc/source/io.rst index e338407361705..afce266a52198 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -1130,7 +1130,7 @@ options: .. _io.bad_lines: -Handling "bad" lines +Handling "bad" lines - excluding the data '''''''''''''''''''' Some files may have malformed lines...
- [ ] closes #17319
https://api.github.com/repos/pandas-dev/pandas/pulls/17385
2017-08-30T21:18:34Z
2017-10-28T15:54:15Z
null
2023-05-11T01:16:18Z
TST: not correctly using OrderedDict in test_series_apply
diff --git a/pandas/tests/series/test_apply.py b/pandas/tests/series/test_apply.py index e3be5427588b3..d0693984689a6 100644 --- a/pandas/tests/series/test_apply.py +++ b/pandas/tests/series/test_apply.py @@ -317,9 +317,9 @@ def test_non_callable_aggregates(self): # test when mixed w/ callable reducers ...
in Python versions <3.6 this syntax will result in an unordered dict - [ ] 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/17384
2017-08-30T19:57:58Z
2017-08-31T10:35:52Z
2017-08-31T10:35:52Z
2017-08-31T10:35:57Z
Remove boxplot from _dataframe_apply_whitelist
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index c23b00dc740a4..248f3b2095a78 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -63,6 +63,8 @@ import pandas.core.common as com from pandas.core.config import option_context +from pandas.plotting._core import boxplot_frame_groupby +...
This is a piece of #17179, which is being broken up into smaller chunks. - [ ] 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/17381
2017-08-30T16:47:17Z
2017-08-31T10:37:59Z
2017-08-31T10:37:59Z
2017-10-30T16:23:46Z
DOC: Added examples to pd.Index.get_loc
diff --git a/appveyor.yml b/appveyor.yml index 65e62f887554e..a1f8886f6d068 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -74,12 +74,18 @@ install: # create our env - cmd: conda create -n pandas python=%PYTHON_VERSION% cython pytest>=3.1.0 pytest-xdist - cmd: activate pandas + - cmd: pip install moto - S...
This pull request adds some examples to ``Index.get_loc`` (actually to ``Index._index_shared_docs['get_loc']``) and clarifies the return value.
https://api.github.com/repos/pandas-dev/pandas/pulls/17380
2017-08-30T15:54:11Z
2017-09-17T16:26:56Z
null
2023-05-11T01:16:18Z
BUG: Try to sort result of Index.union rather than guessing sortability
diff --git a/appveyor.yml b/appveyor.yml index ba001208864a8..4269784fee034 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -73,7 +73,7 @@ install: - cmd: conda info -a # create our env - - cmd: conda create -n pandas python=%PYTHON_VERSION% cython pytest>=3.1.0 pytest-xdist + - cmd: conda create -n pandas py...
- [x] closes #17376 - [x] tests added / passed - [x] passes `git diff master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The lines of code I removed seemed written with the intention of guaranteeing the same result under Python 2 and 3, but the docs say "Form the union of two Index objects and sorts _if po...
https://api.github.com/repos/pandas-dev/pandas/pulls/17378
2017-08-30T06:30:30Z
2018-10-11T01:49:29Z
null
2018-10-11T01:49:29Z
BUG: Return local Timestamp.weekday_name attribute (#17354)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 81e52266f972e..14e07978c7adc 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -399,6 +399,7 @@ Conversion - Fixed the return type of ``IntervalIndex.is_non_overlapping_monotonic`` to be a Python ``...
- [x] closes #17354 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry @jreback created a new method `_get_named_field` based on your [comment](https://github.com/pandas-dev/pandas/issues/17354#issuecomment-325319229) in the issue thread.
https://api.github.com/repos/pandas-dev/pandas/pulls/17377
2017-08-30T06:28:00Z
2017-09-07T00:46:51Z
2017-09-07T00:46:51Z
2017-12-20T02:04:37Z
DOC: Cleaned references to pandas <v0.12 in docs
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index fe20a7eb2b786..35eb14eda238f 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -251,8 +251,8 @@ replace NaN with some other value using ``fillna`` if you wish). Flexible Comparisons ~~~~~~~~~~~~~~~~~~~~ -Starting in v0.8, pandas introd...
There is a lot of references to in the docs to when exactly some change occured. For newer changes this is great, but there comes a time when such references only disturb the reader rather than help him, as the versions referenced become so old, that they become noise rather than help. I've cleaned up references up...
https://api.github.com/repos/pandas-dev/pandas/pulls/17375
2017-08-29T22:58:37Z
2017-09-02T11:50:56Z
2017-09-02T11:50:56Z
2017-09-11T21:10:52Z
BUG: intersection of decreasing RangeIndexes
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index b24a6f067cee4..b73d106f09dbc 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -416,6 +416,7 @@ Indexing - Bug in ``.iloc`` when used with inplace addition or assignment and an int indexer on a ``Mu...
- [x] closes #17296 - [x] tests added / passed - [x] passes `git diff master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17374
2017-08-29T21:13:49Z
2017-09-07T00:47:44Z
2017-09-07T00:47:43Z
2017-09-07T05:06:38Z
DOC: Update Overview page in documentation
diff --git a/doc/source/overview.rst b/doc/source/overview.rst index 92caeec319169..00a71603e1261 100644 --- a/doc/source/overview.rst +++ b/doc/source/overview.rst @@ -6,7 +6,11 @@ Package overview **************** -:mod:`pandas` consists of the following things +:mod:`pandas` is an open source, BSD-licensed libra...
Updated overview page in documentation to match https://pandas.pydata.org/about.html closes #17335
https://api.github.com/repos/pandas-dev/pandas/pulls/17368
2017-08-29T11:40:26Z
2017-08-30T16:39:46Z
2017-08-30T16:39:46Z
2017-08-30T16:40:08Z
ENH: tolerance now takes list-like argument for reindex and get_indexer.
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 117e7c9d11259..c28e2684ea5f5 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -234,6 +234,7 @@ Other Enhancements - :meth:`DataFrame.assign` will preserve the original order of ``**kwargs`` for Pyt...
Enable use of list-like values for tolerance argument in DataFrame.reindex(), Series.reindex(), Index.get_indexer(). - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17367
2017-08-29T01:47:21Z
2017-10-14T21:06:30Z
2017-10-14T21:06:30Z
2017-10-14T21:59:20Z
CLN: Move test_intersect_str_dates from tests/indexes/test_range.py to test_base.py
diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py index ef36e4a91aa1c..07e98c326bcaa 100644 --- a/pandas/tests/indexes/test_base.py +++ b/pandas/tests/indexes/test_base.py @@ -663,6 +663,15 @@ def test_intersection(self): intersect = first.intersection(second) assert i...
- [X] closes #17362 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` It doesn't seem like `test_intersect_str_dates` has anything to do with `RangeIndex`, so I've moved it from `test_range.py` to `test_base.py`.
https://api.github.com/repos/pandas-dev/pandas/pulls/17366
2017-08-28T22:46:30Z
2017-08-29T10:10:16Z
2017-08-29T10:10:15Z
2017-08-30T01:39:23Z
BUG: make order of index from pd.concat deterministic
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index fcadd26156b1d..806b5e9026c7b 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -405,6 +405,7 @@ Reshaping - Bug in :func:`crosstab` where passing two ``Series`` with the same name raised a ``KeyErro...
- [x] closes #17344 - [x] tests added / passed - [x] passes `git diff master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17364
2017-08-28T22:33:57Z
2017-08-29T17:03:18Z
2017-08-29T17:03:18Z
2017-08-29T20:39:30Z
Separate parsing functions out from tslib
diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx index 943f925ec5b04..725da22104efc 100644 --- a/pandas/_libs/period.pyx +++ b/pandas/_libs/period.pyx @@ -37,10 +37,10 @@ from tslibs.timezones cimport ( is_utc, is_tzlocal, get_utcoffset, get_dst_info, maybe_get_tz) from tslib cimport _nat_scalar_rul...
This is part 3 in an N part series of PRs to split `tslib` into thematically distinct modules. The others so far are #17274 and #17342. Moves parsing functions from _libs/src/inference and `core.tools.datetimes`. The `tslibs.parsing` module has no within-pandas dependencies. There are some dateutil workarounds ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17363
2017-08-28T21:39:38Z
2017-09-26T13:29:19Z
2017-09-26T13:29:19Z
2017-10-30T16:23:20Z
ENH: Support sorting frames by a combo of columns and index levels (GH 14353)
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 74b3dbb83ea91..0b3f2cca55518 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -226,11 +226,11 @@ We can also do elementwise :func:`divmod`: Missing data / operations with fill values ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In Seri...
This PR implements the changes proposed in #14353. @jorisvandenbossche - [x] closes #14353 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry - [x] Rework to use utility methods introduced in #17484 after it is merged
https://api.github.com/repos/pandas-dev/pandas/pulls/17361
2017-08-28T19:38:48Z
2018-01-05T19:15:39Z
2018-01-05T19:15:38Z
2018-01-05T19:54:04Z
BUG: Respect color argument in bar plot
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 722e19d2703b5..7dcee381a068d 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -524,6 +524,8 @@ Plotting ^^^^^^^^ - Bug in plotting methods using ``secondary_y`` and ``fontsize`` not setting second...
This affect Series-like barplots with user-defined colors. We were always treating them as dataframe-like, with one color per column. closes https://github.com/pandas-dev/pandas/issues/16822 This should go into 0.21.0, but if I have the time I'd like a put a more elegant solution in place.
https://api.github.com/repos/pandas-dev/pandas/pulls/17360
2017-08-28T15:46:17Z
2017-09-17T13:20:08Z
2017-09-17T13:20:08Z
2017-09-17T13:20:15Z
CLN: replace %s syntax with .format in io/formats/format.py
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 733fd3bd39b52..6a98497aa1bfe 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -47,6 +47,7 @@ import itertools import csv +from functools import partial common_docstring = """ Parameters @@ -109,7 +110,7...
Progress toward issue #16130. Converted old string formatting to new string formatting in io/formats/format.py. - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/17358
2017-08-28T14:14:42Z
2017-08-30T10:19:45Z
2017-08-30T10:19:45Z
2017-08-30T10:19:48Z
CLN: replace %s syntax with .format in core/indexing.py
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 6b9ad5cd2d93b..b7a51afcedabf 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -188,8 +188,9 @@ def _has_valid_tuple(self, key): if i >= self.obj.ndim: raise IndexingError('Too many indexers') ...
Progress toward issue #16130. Converted old string formatting to new string formatting in core/indexing.py. - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/17357
2017-08-28T13:22:53Z
2017-08-28T13:58:06Z
2017-08-28T13:58:06Z
2017-08-28T14:05:42Z
BUG: Timestamp.replace chaining not compat with datetime.replace
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index fcadd26156b1d..b6ca7b5ec50b3 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -342,6 +342,7 @@ Conversion - Fixed the return type of ``IntervalIndex.is_non_overlapping_monotonic`` to be a Python ``...
- [x] closes #15683 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is a clean version of https://github.com/pandas-dev/pandas/pull/16110 and the last thing I’m going to do with this issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/17356
2017-08-28T08:13:36Z
2017-09-13T02:53:34Z
null
2017-09-13T02:53:34Z
BUG: Respect dups in reindexing CategoricalIndex
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index fcadd26156b1d..942e37a29f8d5 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -358,6 +358,7 @@ Indexing - Allow unicode empty strings as placeholders in multilevel columns in Python 2 (:issue:`1709...
When the indexer is identical to the elements, we should still return duplicates when the indexer contains duplicates. Closes #17323.
https://api.github.com/repos/pandas-dev/pandas/pulls/17355
2017-08-28T04:58:31Z
2017-08-29T12:52:52Z
2017-08-29T12:52:51Z
2017-08-29T14:50:23Z
DOC: Point to dev-docs in issue template
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 237e61487d13a..e33835c462511 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -12,6 +12,12 @@ **Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check i...
It's all about helping people help themselves. 😄
https://api.github.com/repos/pandas-dev/pandas/pulls/17353
2017-08-27T20:43:16Z
2017-08-28T14:05:30Z
2017-08-28T14:05:30Z
2017-08-28T15:16:07Z
DEPR: Deprecate convert parameter in take
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index e0e0c18052550..9f7e9db5cf210 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -490,6 +490,7 @@ Deprecations ~~~~~~~~~~~~ - :func:`read_excel()` has deprecated ``sheetname`` in favor of ``sheet_n...
xref #16948. The parameter is not respected, nor is it a parameter in many 'take' implementations. cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/17352
2017-08-27T20:20:35Z
2017-10-01T20:05:02Z
2017-10-01T20:05:02Z
2017-10-03T09:03:45Z
COMPAT: Pypy tweaks
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 942e37a29f8d5..7e83edfdde0e9 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -332,13 +332,11 @@ Performance Improvements Bug Fixes ~~~~~~~~~ - Conversion ^^^^^^^^^^ - Bug in assignment aga...
a set of tweaks that I discovered when getting PyPY to pass tests, some could cause issues on CPython as well: - 496cc3a clears up an assumption that sets are sorted - d161b08 makes sure PyList_GET_SIZE is used only on PyListObject, if used on an ndarray it will return the value of the data pointer, which is not th...
https://api.github.com/repos/pandas-dev/pandas/pulls/17351
2017-08-27T20:19:04Z
2017-09-07T11:56:33Z
2017-09-07T11:56:33Z
2017-09-07T11:57:24Z
API: Warn about dups in names for read_csv
diff --git a/doc/source/io.rst b/doc/source/io.rst index ab1ad74ee8516..d6abed6e9d1ad 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -113,8 +113,8 @@ header : int or list of ints, default ``'infer'`` rather than the first line of the file. names : array-like, default ``None`` List of column names to u...
Title is self-explanatory. xref #17095.
https://api.github.com/repos/pandas-dev/pandas/pulls/17346
2017-08-26T12:53:58Z
2017-09-24T13:13:38Z
2017-09-24T13:13:38Z
2017-09-25T00:59:51Z
BUG: when Index is numeric and indexer is boolean (#16877)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 36551fa30c3ad..b6bd86bd79a1f 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -481,7 +481,7 @@ Other API Changes - :class:`Period` is now immutable, and will now raise an ``AttributeError`` when a ...
- [ X ] closes #16877 - [ X ] tests added / passed - [ X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ X ] whatsnew entry This warns for both tickets: https://github.com/pandas-dev/pandas/issues/6189 https://github.com/pandas-dev/pandas/issues/16877 There's one particular flaw: non-un...
https://api.github.com/repos/pandas-dev/pandas/pulls/17343
2017-08-26T06:38:29Z
2017-09-25T21:50:18Z
2017-09-25T21:50:18Z
2017-09-25T21:50:37Z
Separate out strptime.pyx from tslib
diff --git a/pandas/_libs/__init__.py b/pandas/_libs/__init__.py index ab3832d0292ba..b4c3ff8008015 100644 --- a/pandas/_libs/__init__.py +++ b/pandas/_libs/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # flake8: noqa from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime diff --git a/pandas...
This is the 2nd of an N part series of PRs to split `tslib` into independent modules. At the moment there is a big chunk of code at the bottom of `tslib` that looks like it was pasted in from somewhere else. The header for that section of the file reads `# Don't even ask`. So I won't. The new `tslibs.strptime` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17342
2017-08-26T02:20:58Z
2017-09-25T10:07:47Z
2017-09-25T10:07:47Z
2017-10-30T16:23:23Z
CLN: remove total_seconds compat from json
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 4beaa3fd449df..1ee862b54cf0b 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -329,7 +329,7 @@ static Py_ssize_t get_attr_length(PyObject *obj, char *attr) { ...
- [x] closes #17340 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/17341
2017-08-25T22:26:46Z
2017-08-29T10:06:30Z
2017-08-29T10:06:30Z
2017-08-29T10:06:36Z
ENH - GH:17160, DataFrame.pivot accepts a list of values
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index f760d0b6359a2..243cae1ac79e5 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -129,7 +129,7 @@ Other Enhancements - `read_*` methods can now infer compression from non-string paths, such as ``pathl...
- [x] closes #17160 - [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/17339
2017-08-25T19:58:11Z
2017-11-25T16:15:25Z
null
2017-11-25T16:15:25Z
Revise What's New for inferring compression from non-string paths
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 261e12b824509..32dbeb32154e6 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -137,7 +137,7 @@ Other Enhancements - :func:`date_range` now accepts 'Y' in addition to 'A' as an alias for end of year...
This pull request improves the What's New message corresponding to https://github.com/pandas-dev/pandas/pull/17206, which updated `io.common._infer_compression` to infer compression from non-string paths. Refs https://github.com/pandas-dev/pandas/issues/17262 Refs https://github.com/pandas-dev/pandas/pull/17206#iss...
https://api.github.com/repos/pandas-dev/pandas/pulls/17338
2017-08-25T18:59:31Z
2017-09-24T09:56:13Z
2017-09-24T09:56:13Z
2017-09-24T09:56:27Z
Add dunder method - __ne__ as it should complement __eq__
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index dc2c56ea476f9..c0b91c7761be4 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -142,6 +142,9 @@ def __eq__(self, other): return isinstance(other, CategoricalDtype) + def __ne__(self, other): + ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/17337
2017-08-25T18:59:19Z
2017-08-26T10:29:17Z
null
2023-05-11T01:16:17Z
ENH: pd.DataFrame.info() to show line numbers GH17304
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 034a56b2ac0cb..9891a39aa9713 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -66,6 +66,35 @@ Current Behavior: result +.. _whatsnew_0240.enhancements.output_formatting: + +Output Formattin...
- [x] closes #17304 - [x] tests updated and passed - [x] passes flake8 diff - [x] whatsnew entry Refactored to `self.columns` and `len(self.columns)` New output ``` >>> import pandas as pd >>> df = pd.DataFrame(pd.np.random.rand(4, 10), columns=['%s%s' % (x, pd.np.random.randint(2, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17332
2017-08-25T08:42:20Z
2019-02-27T23:31:54Z
null
2019-09-09T17:02:16Z
Remove property that re-computed microsecond
diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py new file mode 100644 index 0000000000000..066479b22739a --- /dev/null +++ b/asv_bench/benchmarks/timestamp.py @@ -0,0 +1,60 @@ +from .pandas_vb_common import * +from pandas import to_timedelta, Timestamp + + +class TimestampProperties(ob...
Just accessing the already-existing attribute is about 50-130x faster than re-computing it. These results are from a 2011-era MBP. Before: ``` In [1]: import pandas as pd In [2]: ts = pd.Timestamp.now() In [3]: %timeit ts.microsecond The slowest run took 4.69 times longer than the fastest. This could mean that...
https://api.github.com/repos/pandas-dev/pandas/pulls/17331
2017-08-24T23:12:25Z
2017-09-07T00:51:51Z
2017-09-07T00:51:51Z
2017-10-30T16:23:45Z
BUG: Set index when reading stata file
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 33b7e128ef8bf..38727c2526bb5 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -293,6 +293,7 @@ Other API Changes - :func:`Series.argmin` and :func:`Series.argmax` will now raise a ``TypeError`` whe...
Ensures index is set when requested when reading state dta file closes #16342 - [x] closes #16342 - [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/17328
2017-08-24T16:08:14Z
2017-09-16T13:40:42Z
2017-09-16T13:40:41Z
2018-04-22T21:12:03Z
Fix typo that causes several NaT methods to have incorrect docstrings
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index fcadd26156b1d..7eb4da981888f 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -423,3 +423,4 @@ Categorical Other ^^^^^ - Bug in :func:`eval` where the ``inplace`` parameter was being incorrectly ...
This block of code exists to make NaT raise ValueError for each of a bunch of datetime methods. This is supposed to attach the original docstring to the new function f. The typo _method_name instead of func_name means that a bunch of the docstrings are currently wrong. - [ ] closes #xxxx - [ ] tests added / passed ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17327
2017-08-24T15:47:46Z
2017-08-29T17:04:08Z
2017-08-29T17:04:08Z
2017-10-30T16:23:46Z
CLN: replace %s syntax with .format in missing.py, nanops.py, ops.py
diff --git a/pandas/core/missing.py b/pandas/core/missing.py index 93281e20a2a96..8a6a870834c83 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -88,8 +88,8 @@ def clean_fill_method(method, allow_nearest=False): valid_methods.append('nearest') expecting = 'pad (ffill), backfill (bfi...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in `missing.py`, `nanops.py`, `ops.py`. Additionally, made some of the existing positional `.format` code more explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/17322
2017-08-24T05:51:14Z
2017-08-24T09:50:19Z
2017-08-24T09:50:19Z
2017-08-24T14:09:30Z
Bitesize offsets
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index b7151ad2eaa99..779fc0bd20964 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -56,7 +56,7 @@ def setup(self): self.no_freq = self.rng7[:50000].append(self.rng7[50002:]) ...
This is the first of several PRs cleaning up `tseries.offsets`. The ultimate goals of this series of PRs are: - Fix slow implementation of `DateOffset.__eq__`, as that gets called by `Period.__eq__`. - Make `DateOffset` immutable, since it is attached to a `Period` object which is supposed to be immutable (TODO: f...
https://api.github.com/repos/pandas-dev/pandas/pulls/17318
2017-08-23T19:07:13Z
2017-09-23T17:36:29Z
2017-09-23T17:36:29Z
2017-10-30T16:23:27Z
ENH: Better error message if usecols doesn't match columns
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 1a08a1353a605..1cad0e68d0f25 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -76,6 +76,7 @@ Other Enhancements - Improved wording of ``ValueError`` raised in :func:`to_datetime` when ``unit=`` is ...
GH17301: Improving the error message given when usecols doesn't match with the columns provided. - [x] closes #17301 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry NOTE: Do I need to add a whatsnew entry for something so small? Happy t...
https://api.github.com/repos/pandas-dev/pandas/pulls/17310
2017-08-22T16:03:14Z
2017-12-03T15:26:51Z
2017-12-03T15:26:51Z
2017-12-21T17:00:00Z
REF: Special case NumericIndex._append_same_dtype()
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 454d9ccdda102..7697c3b9d3840 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -219,3 +219,22 @@ def time_min(self): def time_min_trivial(self): self.idx_inc.min()...
- [x] tests passed - [x] passes `git diff master -u -- "*.py" | flake8 --diff` Simple patch which results in a modest speedup (~8%) of the following: ```python In [2]: idxes = [pd.Int64Index(range(i)) for i in range(1, 10)]*200 In [3]: %timeit idxes[0].append(idxes[1:]) ``` I don't know whether this is wor...
https://api.github.com/repos/pandas-dev/pandas/pulls/17307
2017-08-22T07:50:09Z
2017-10-28T15:26:12Z
2017-10-28T15:26:12Z
2017-10-28T17:06:15Z
CLN: replace %s syntax with .format in core.tools, algorithms.py, base.py
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index f2359f3ff1a9d..5fa8563479a41 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -394,12 +394,12 @@ def isin(comps, values): if not is_list_like(comps): raise TypeError("only list-like objects are allowed to b...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in core.tools, algorithms.py, base.py. Additionally, made some of the existing positional `.format` code more explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/17305
2017-08-22T03:37:38Z
2017-08-22T13:57:53Z
2017-08-22T13:57:53Z
2017-08-23T02:19:07Z
Update Performance Considerations section in docs
diff --git a/doc/source/io.rst b/doc/source/io.rst index e338407361705..b027c7658f0e9 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -5208,85 +5208,112 @@ easy conversion to and from pandas. Performance Considerations -------------------------- -This is an informal comparison of various IO methods, using...
* re-run all tests * add tests for feather and pickle - [ ] 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/17303
2017-08-22T01:16:19Z
2017-10-20T09:02:14Z
2017-10-20T09:02:14Z
2017-10-20T09:03:12Z
BUG: Fixed regex in asv.conf.json
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index ced4f2b12445f..9c333f62810f4 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -118,9 +118,9 @@ // skipped for the matching benchmark. // "regressions_first_commits": { - "*": "v0.20.0" + ".*": "v0.20.0...
In https://github.com/pandas-dev/pandas/pull/17293 I messed up the syntax. I used a glob instead of a regex. According to the docs at http://asv.readthedocs.io/en/latest/asv.conf.json.html#regressions-thresholds we want to use a regex. I've actually manually tested this change and verified that it works.
https://api.github.com/repos/pandas-dev/pandas/pulls/17300
2017-08-21T15:24:07Z
2017-08-21T19:39:51Z
2017-08-21T19:39:51Z
2017-08-23T18:58:02Z
BUG: revert collision warning
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 88e62b5d301a3..8474116c38082 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -269,21 +269,6 @@ new column. In 0.21.0 and later, this will raise a ``UserWarning``: 1 2.0 2 3.0 -Similarly, it is possible to create a c...
- [ ] closes #17268 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Reverts work in #16951 that warns when creating a column whose name collides with a method.
https://api.github.com/repos/pandas-dev/pandas/pulls/17298
2017-08-20T22:59:57Z
2017-09-07T10:52:12Z
2017-09-07T10:52:12Z
2017-09-07T14:23:40Z
Remove unnecessary usage of _TSObject
diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx index e017d863e1907..6ba7ec0270f30 100644 --- a/pandas/_libs/period.pyx +++ b/pandas/_libs/period.pyx @@ -120,26 +120,6 @@ initialize_daytime_conversion_factor_matrix() # Period logic #----------------------------------------------------------------------...
This is part 2 in an N-part series of PRs to disentangle inter-dependent pieces of tslib.pyx (and by extension, lib.pyx and period.pyx). `tslib` has a `_TSObject` class that is used as a container during conversion steps. In a number of the places where it is currently used, it is not needed. All this PR does is r...
https://api.github.com/repos/pandas-dev/pandas/pulls/17297
2017-08-20T21:25:17Z
2017-08-21T23:49:18Z
2017-08-21T23:49:18Z
2017-08-22T20:34:21Z
API: warning to raise KeyError in the future if not all elements of a list are selected via .loc
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index cfdb53ec7e4b1..44358593793bc 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -1009,7 +1009,7 @@ The different indexing operation can potentially change the dtype of a ``Series` series1 = pd.Series([1, 2, 3]) series1.dty...
closes #15747
https://api.github.com/repos/pandas-dev/pandas/pulls/17295
2017-08-20T19:58:26Z
2017-10-03T10:55:51Z
2017-10-03T10:55:50Z
2017-10-04T11:29:21Z
PERF: Update ASV publish config
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 59c05400d06b0..ced4f2b12445f 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -117,8 +117,10 @@ // with results. If the commit is `null`, regression detection is // skipped for the matching benchmark. // - // "re...
Stricter cutoffs for considering regressions [ci skip]
https://api.github.com/repos/pandas-dev/pandas/pulls/17293
2017-08-20T12:31:28Z
2017-08-20T21:25:43Z
2017-08-20T21:25:43Z
2017-08-23T18:58:04Z
TST: parameterize consistency tests for rolling/expanding windows
diff --git a/pandas/tests/test_window.py b/pandas/tests/test_window.py index 21a9b05d48126..1cc0ad8bb4041 100644 --- a/pandas/tests/test_window.py +++ b/pandas/tests/test_window.py @@ -2009,6 +2009,15 @@ def no_nans(x): _consistency_data = _create_consistency_data() +def _rolling_consistency_cases(): + for wind...
https://api.github.com/repos/pandas-dev/pandas/pulls/17292
2017-08-19T16:35:40Z
2017-08-19T21:55:35Z
2017-08-19T21:55:35Z
2017-08-19T21:56:28Z
BUG: Fix strange behaviour of Series.iloc on MultiIndex Series (#17148)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 85685ed7b430d..ab5071e8e9ff7 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -329,6 +329,7 @@ Indexing - Fixes ``DataFrame.loc`` for setting with alignment and tz-aware ``DatetimeIndex`` (:issue:`...
- [x] closes #17148 - [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/17291
2017-08-19T15:06:51Z
2017-08-22T14:31:15Z
2017-08-22T14:31:15Z
2017-08-22T14:31:18Z
CLN: replace %s syntax with .format in pandas.tseries
diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py index aa33a3849acb3..7f34bcaf52926 100644 --- a/pandas/tseries/frequencies.py +++ b/pandas/tseries/frequencies.py @@ -409,16 +409,17 @@ def _get_freq_str(base, mult=1): need_suffix = ['QS', 'BQ', 'BQS', 'YS', 'AS', 'BY', 'BA', 'BYS', 'BAS'] fo...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in pandas.tseries. Additionally, made some of the existing positional `.format` code more explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/17290
2017-08-18T22:58:47Z
2017-08-19T16:51:06Z
2017-08-19T16:51:06Z
2017-08-19T18:51:26Z
Replace usage of total_seconds compat func with timedelta method
diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx index e017d863e1907..6a23703146dc3 100644 --- a/pandas/_libs/period.pyx +++ b/pandas/_libs/period.pyx @@ -10,9 +10,6 @@ from numpy cimport (int8_t, int32_t, int64_t, import_array, ndarray, NPY_INT64, NPY_DATETIME, NPY_TIMEDELTA) import...
`total_seconds` and `tot_seconds` functions were apparently made for python 2.6 compat. This removes them and replaces their usage with `timedelta.total_seconds` method. There is one remaining use of this function in a C file. I expect it will be easy to remove for someone who knows what they're doing. See disc...
https://api.github.com/repos/pandas-dev/pandas/pulls/17289
2017-08-18T22:16:31Z
2017-08-25T20:29:58Z
2017-08-25T20:29:58Z
2017-10-30T16:23:55Z
BUG: clip should handle null values
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index c5fe89282bf52..d0932118612ad 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -128,11 +128,11 @@ Other Enhancements - :func:`DataFrame.add_prefix` and :func:`DataFrame.add_suffix` now accept string...
- [ x] closes #17276 - [ 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/17288
2017-08-18T21:07:21Z
2017-08-21T23:53:51Z
null
2017-08-21T23:53:57Z
BUG: fillna returns frame when inplace=True if value is a dict (#16156)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 85685ed7b430d..93d5c191a1d63 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -314,7 +314,7 @@ Conversion - Fix :func:`DataFrame.memory_usage` to support PyPy. Objects on PyPy do not have a fixed s...
- [x] closes #16156 - [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/17279
2017-08-18T09:29:05Z
2017-08-21T23:55:11Z
2017-08-21T23:55:11Z
2017-08-21T23:55:14Z
Remove inline declarations in pxd files
diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd index 014da22df3382..b6b3c82c06862 100644 --- a/pandas/_libs/hashtable.pxd +++ b/pandas/_libs/hashtable.pxd @@ -38,7 +38,7 @@ cdef class MultiIndexHashTable(HashTable): cpdef get_item(self, object val) cpdef set_item(self, object key, Py_s...
At the moment (I think since .26, not sure) they don't do anything but cause lots of warnings during cythonizing. Eventually they will raise errors. https://github.com/cython/cython/issues/1706#issuecomment-302347613 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*....
https://api.github.com/repos/pandas-dev/pandas/pulls/17277
2017-08-18T05:46:38Z
2017-08-19T16:49:44Z
null
2017-10-30T16:24:04Z
Refactor timezones functions out of tslib
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 42ba0c1cadaec..7e48c7d94ccf0 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -24,6 +24,8 @@ from datetime import datetime, timedelta from datetime cimport (get_datetime64_value, _pydatetime_to_dts, pandas_dat...
`_libs.tslib` is over 5k lines and is imported by a bunch of other modules including `_libs.lib`. It looks like it was pasted together from a bunch of older files. There are a handful of areas where significant chunks can be refactored out in complexity-reducing (and testability-increasing) ways. This is the first o...
https://api.github.com/repos/pandas-dev/pandas/pulls/17274
2017-08-17T19:58:24Z
2017-09-11T11:26:36Z
null
2017-10-30T16:24:00Z
BUG: Index._searchsorted_monotonic(..., side='right') returns the left side position for monotonic decreasing indexes
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 636bb2dc3e60e..0f67b58c678a7 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -418,6 +418,7 @@ Indexing - Bug in ``.isin()`` in which checking membership in empty ``Series`` objects raised an error...
- [X] closes #17271 - [X] closes #16417 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry I didn't add a whatsnew entry for the `Index._searchsorted_monotonic` fix, since it looks like past convention has been to not add whatsnew entries for priv...
https://api.github.com/repos/pandas-dev/pandas/pulls/17272
2017-08-17T18:55:50Z
2017-09-07T11:49:28Z
2017-09-07T11:49:28Z
2020-12-06T03:59:04Z
CLN: replace %s syntax with .format in core.dtypes and core.sparse
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 723e4f70da4e9..c2cf6afc1a7b5 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -516,7 +516,8 @@ def maybe_cast_item(obj, item, dtype): if dtype in (np.object_, np.bool_): obj[item] = chunk.astype(n...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in pandas.core.dtypes and pandas.core.sparse. Additionally, made some of the existing positional `.format` code more explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/17270
2017-08-17T02:05:51Z
2017-08-17T10:10:53Z
2017-08-17T10:10:53Z
2017-08-24T16:29:49Z
CLN: Replace imports of * with explicit imports
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index 101e2c031f26e..2462b7af7b0fe 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -2,7 +2,27 @@ from cpython cimport PyObject, Py_INCREF, PyList_Check, PyTuple_Check -from khash cimport * +from khash cimport ( + kh...
Remove compat_NaT which is never used after being defined Remove other unused imports Remove unused cdef enum NPY_TYPES flake8 cleanup in period.pyx Ref #17234 - [ ] 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/17269
2017-08-16T21:04:41Z
2017-08-17T10:13:37Z
2017-08-17T10:13:37Z
2017-10-30T16:24:03Z