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
SQL/ERR: raise error when insert failed with sqlite fallback (GH8341)
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 29ff08391e0e4..e6230f1e54800 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -1155,6 +1155,7 @@ def run_transaction(self): self.con.commit() except: self.con.rollback() + raise finally: cur...
Related to #8341, does not closes it, but deals with the fact that it now fails silently
https://api.github.com/repos/pandas-dev/pandas/pulls/8470
2014-10-05T10:08:12Z
2014-10-05T18:01:12Z
2014-10-05T18:01:12Z
2014-10-05T18:01:12Z
BUG: fix Index.reindex to preserve type when target is empty list/ndarray
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 68f313f321fc8..f163efe45dd86 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -1025,3 +1025,4 @@ Bug Fixes - Bug in NDFrame.equals gives false negatives with dtype=object (:issue:`8437`) - Bug in assignment with indexer where type d...
This PR fixes #7774 and also includes: TST: check index/columns types when doing empty loc/ix tests CLN: don't _ensure_index in NDFrame._reindex_axes, it is done in Index.reindex
https://api.github.com/repos/pandas-dev/pandas/pulls/8462
2014-10-04T17:18:39Z
2014-10-05T14:05:18Z
2014-10-05T14:05:18Z
2014-10-05T19:03:13Z
BUG: fix applymap to handle Timedelta
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index cba2d3c5aa0e9..2194e8c36a9e3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3652,8 +3652,9 @@ def applymap(self, func): # if we have a dtype == 'M8[ns]', provide boxed values def infer(x): - if com.is_datetim...
https://api.github.com/repos/pandas-dev/pandas/pulls/8461
2014-10-04T16:18:56Z
2014-10-04T16:20:49Z
2014-10-04T16:20:49Z
2014-10-04T16:20:49Z
BUG: fix Index.reindex to preserve name when target is list/ndarray
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index e23f3ea6ff53a..1d9acadb68e58 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -1012,3 +1012,4 @@ Bug Fixes - Bug in masked series assignment where mismatching types would break alignment (:issue:`8387`) - Bug in NDFrame.equals gives...
This PR fixes #6552 and also includes: CLN: drop copy_if_needed kwarg of Index.reindex, it's True everywhere TST: enable back empty-list loc/ix tests that failed before DOC: Bump Index.reindex docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/8460
2014-10-04T14:18:29Z
2014-10-04T20:02:08Z
2014-10-04T20:02:08Z
2014-11-02T21:33:35Z
VIS: Cleanups in plotting.py
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 9d03b7b38bea7..8513fb7807084 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -257,6 +257,8 @@ API changes - Added support for numpy 1.8+ data types (bool_, int_, float_, string_) for conversion to R dataframe (:issue:`8400`) +-...
Branched off of https://github.com/pydata/pandas/pull/8037/files just a couple of minor tweaks to that and some PEP8 stuff.
https://api.github.com/repos/pandas-dev/pandas/pulls/8459
2014-10-04T13:34:22Z
2014-10-04T15:09:16Z
2014-10-04T15:09:16Z
2015-08-18T12:45:00Z
BUG: type diversity breaks alignment
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 2776f6f9fcb35..cfd66a3a3829e 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -1007,3 +1007,4 @@ Bug Fixes - Bug in Index.intersection on non-monotonic non-unique indexes (:issue:`8362`). - Bug in masked series assignment where mism...
closes https://github.com/pydata/pandas/issues/8258, but more generally, on pandas master, assignment with indexer will align _both rows and columns_ if all columns have the same type: ``` >>> cols, idx = ['jim', 'joe', 'jolie'], ['first', 'last'] >>> vals = np.arange(1, 7).reshape(2, 3, order='F') >>> df = DataFrame(...
https://api.github.com/repos/pandas-dev/pandas/pulls/8457
2014-10-03T22:15:31Z
2014-10-04T17:19:50Z
2014-10-04T17:19:50Z
2014-10-04T17:41:00Z
PERF: optimize storage type for codes in Categoricals (GH8453)
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index 669a39d437a34..a5f76fb2b5941 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -47,7 +47,7 @@ the `categories` array. The categorical data type is useful in the following cases: * A string variable consisting of onl...
closes #8453 So easy enough to optimize the dtype of the codes array depending on the number of categories. Most of the time will simply be `int8`. So pretty good savings. This doesn't completely solve the storage issues as currently `factorize` returns a `int64`, but can deal with that later (as might also need some...
https://api.github.com/repos/pandas-dev/pandas/pulls/8455
2014-10-03T20:55:41Z
2014-10-04T16:38:15Z
2014-10-04T16:38:15Z
2014-10-04T16:38:15Z
BUG: reset identity on legacy index pickles (GH8431)
diff --git a/pandas/core/index.py b/pandas/core/index.py index b528a628234cc..da8edf13ff18f 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -843,6 +843,7 @@ def __setstate__(self, state): np.ndarray.__setstate__(data, state) self._data = data + self._reset_iden...
closes #8431
https://api.github.com/repos/pandas-dev/pandas/pulls/8454
2014-10-03T18:42:22Z
2014-10-03T19:12:07Z
2014-10-03T19:12:07Z
2014-10-03T19:12:08Z
Remove DataFrame.delevel
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 2776f6f9fcb35..9d03b7b38bea7 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -720,7 +720,8 @@ Deprecations ``ambiguous`` to allow for more flexibility in dealing with DST transitions. Replace ``infer_dst=True`` with ``ambiguous...
Part of #6581. Remove DataFrame.delevel which was previously deprecated in version 0.7. @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/8451
2014-10-03T15:26:32Z
2014-10-03T18:00:03Z
2014-10-03T18:00:03Z
2014-10-05T15:33:47Z
BUG: bug in df.info() when embedded categorical (related GH7619)
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 542dc69aa35f4..a94e627952b75 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -245,7 +245,7 @@ def apply(self, func, **kwargs): """ apply the function to my values; return a block if we are not one """ result...
xref #7619
https://api.github.com/repos/pandas-dev/pandas/pulls/8449
2014-10-03T12:05:53Z
2014-10-03T12:33:46Z
2014-10-03T12:33:46Z
2014-10-03T12:33:46Z
BUG: NDFrame.equals gives false negatives with dtype=object (GH8437)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 92fd228ccd10e..2776f6f9fcb35 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -1006,3 +1006,4 @@ Bug Fixes - Bug in ``DataFrame.dropna`` that interpreted non-existent columns in the subset argument as the 'last column' (:issue:`8303`...
https://api.github.com/repos/pandas-dev/pandas/pulls/8443
2014-10-02T14:00:59Z
2014-10-02T15:15:11Z
2014-10-02T15:15:11Z
2014-10-02T16:18:39Z
API: SQL class definitions renaming
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 29ff08391e0e4..903a19be80f45 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -315,7 +315,7 @@ def read_sql_table(table_name, con, schema=None, index_col=None, except sqlalchemy.exc.InvalidRequestError: raise ValueError("Table %s not found" % t...
WIP, related to #7960 - [x] renaming of - PandasSQLAlchemy -> SQLDatabase - PandasSQLTable -> SQLTable - PandasSQLLegacy -> SQLiteDatabase - PandasSQLLegacyTable -> SQLiteTable - SQLDatabase.read_sql -> read_query - [ ] adding docstrings to public functions of SQLDatabase - [x] read_query, read_table, to_s...
https://api.github.com/repos/pandas-dev/pandas/pulls/8440
2014-10-02T08:35:02Z
2014-10-05T19:29:00Z
2014-10-05T19:29:00Z
2014-10-05T19:29:01Z
DOC: mention 'category' in select_dtypes docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 223cb4fe78e94..bc81ca2a2d2ad 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1903,6 +1903,7 @@ def select_dtypes(self, include=None, exclude=None): this will return *all* object dtype columns * See the `numpy dtype hiera...
Trivial update to select_dtypes docstring to hint on how to include Categorical types, as it's not part of the numpy type-hierarchy mentioned here.
https://api.github.com/repos/pandas-dev/pandas/pulls/8439
2014-10-02T02:31:14Z
2014-10-02T06:41:41Z
2014-10-02T06:41:41Z
2014-10-02T06:41:56Z
BUG: Groupby.transform related to BinGrouper and GH8046 (GH8430)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 22860a143476e..92fd228ccd10e 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -880,7 +880,7 @@ Bug Fixes when matching block and manager items, when there's only one block there's no ambiguity (:issue:`7794`) - Bug in putting a ``...
closes #8430 xref #8046
https://api.github.com/repos/pandas-dev/pandas/pulls/8434
2014-10-01T12:34:42Z
2014-10-01T13:03:57Z
2014-10-01T13:03:57Z
2014-10-01T13:03:57Z
TST: Adjust boxplot tests following MPL API change
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 1cc5e2a99148b..d1d06862d003f 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...
fliers on a boxplot are now 1 object instead of 2. [See here](https://github.com/matplotlib/matplotlib/issues/3544#issuecomment-57360910). Takes care of one part of https://github.com/pydata/pandas/issues/8402
https://api.github.com/repos/pandas-dev/pandas/pulls/8429
2014-09-30T19:54:44Z
2014-10-04T14:09:10Z
2014-10-04T14:09:10Z
2017-04-05T02:05:59Z
DOC: create text.rst with string methods (GH8416)
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index 10921c2a32ed5..c98f41973e1ee 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -433,7 +433,12 @@ See more at :ref:`Histogramming and Discretization <basics.discretization>` String Methods ~~~~~~~~~~~~~~ -See more at :ref:`Vectorized String...
closes #8416
https://api.github.com/repos/pandas-dev/pandas/pulls/8423
2014-09-29T21:51:15Z
2014-09-30T14:10:34Z
2014-09-30T14:10:34Z
2014-09-30T14:10:34Z
FIX: Add Categorical.searchsorted stub
diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py index d404601bcafa1..d2708890c5ec2 100644 --- a/pandas/core/categorical.py +++ b/pandas/core/categorical.py @@ -726,6 +726,9 @@ def T(self): def nbytes(self): return self._codes.nbytes + self._categories.values.nbytes + def searchso...
For https://github.com/pydata/pandas/pull/7447, add a searchsorted stub, which simple raises `NotImplementedError`, so that we raise a more clear error than attribute not found. xref #8420
https://api.github.com/repos/pandas-dev/pandas/pulls/8421
2014-09-29T18:06:20Z
2014-09-29T20:52:02Z
2014-09-29T20:52:02Z
2014-09-29T20:52:03Z
Moved startup script information to options docs and fixed link
diff --git a/doc/source/faq.rst b/doc/source/faq.rst index 6aa51346f008a..a613d53218ce2 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -65,28 +65,6 @@ Monkey-patching existing methods is usually a bad idea in that respect. When used with proper care, however, it's a very useful tool to have. -.. _ref-...
based on #8407 and #5748
https://api.github.com/repos/pandas-dev/pandas/pulls/8418
2014-09-29T16:21:27Z
2014-09-29T20:55:13Z
2014-09-29T20:55:13Z
2014-09-29T20:55:23Z
BUG: regression in groupby with a pass thru multiindex on axis=1 (GH7997)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 225c779071153..22860a143476e 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -549,7 +549,7 @@ Internal Refactoring In 0.15.0 ``Index`` has internally been refactored to no longer sub-class ``ndarray`` but instead subclass ``Panda...
closes #7997
https://api.github.com/repos/pandas-dev/pandas/pulls/8417
2014-09-29T15:51:59Z
2014-09-30T19:39:45Z
2014-09-30T19:39:45Z
2014-09-30T19:39:45Z
API/BUG: a UTC object inserted into a Series/DataFrame will preserve the UTC and be object dtype (GH8411)
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 985cd22c03382..d7ec2dc54522f 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -1130,6 +1130,12 @@ You can easily produces tz aware transformations: stz stz.dt.tz +You can also chain these types of operations: + +.. ipython:: pyt...
closes #8411
https://api.github.com/repos/pandas-dev/pandas/pulls/8415
2014-09-29T14:03:46Z
2014-09-29T21:43:23Z
2014-09-29T21:43:23Z
2014-09-29T21:46:17Z
FIX: add nbytes property in Categorical
diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py index ef14897cdbc90..d404601bcafa1 100644 --- a/pandas/core/categorical.py +++ b/pandas/core/categorical.py @@ -722,6 +722,10 @@ def __array__(self, dtype=None): def T(self): return self + @property + def nbytes(self): + r...
Contribution to https://github.com/pydata/pandas/pull/7619
https://api.github.com/repos/pandas-dev/pandas/pulls/8414
2014-09-29T13:14:15Z
2014-09-29T14:05:45Z
2014-09-29T14:05:45Z
2014-09-29T14:05:50Z
Categorical doc fixups
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index 6320be3920730..10921c2a32ed5 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -640,27 +640,44 @@ Categoricals ------------ Since version 0.15, pandas can include categorical data in a ``DataFrame``. For full docs, see the -:ref:`Categoric...
Minor doc updates as part of #8375 - docstring in in cut/qcut + docstring examples #8077 (comment) - whatsnew: In the note change "levels" to "categories" and s/Schultz/Schulz/
https://api.github.com/repos/pandas-dev/pandas/pulls/8413
2014-09-29T13:04:23Z
2014-09-29T21:36:42Z
2014-09-29T21:36:42Z
2014-09-29T21:36:53Z
BENCH: programmatically create benchmarks for large ngroups (GH6787)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 8c0e193ec6348..0d003b9f80588 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -813,6 +813,7 @@ Performance - Performance and memory usage improvements in multi-key ``groupby`` (:issue:`8128`) - Performance improvements in groupby ``...
closes #6787 Uses ngroups=10000 as suggested in the issue, which takes about 1 hour on my desktop. For results (vb_suite.log, pkl file) see: https://gist.github.com/dlovell/ea3400273314e7612f6e Note: gist references a different commit hash. I changed the commit message and added modification to doc/source/v0.15.0.tx...
https://api.github.com/repos/pandas-dev/pandas/pulls/8410
2014-09-28T17:52:25Z
2014-09-30T15:53:52Z
2014-09-30T15:53:52Z
2014-09-30T15:59:30Z
Allow importing pandas without setuptools
diff --git a/doc/source/install.rst b/doc/source/install.rst index 2dfda3be0dcd4..0331e8a47903c 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -302,6 +302,8 @@ Optional Dependencies * Google's `python-gflags <http://code.google.com/p/python-gflags/>`__ and `google-api-python-client <http://gith...
Possible solution for https://github.com/pydata/pandas/pull/8107#issuecomment-57017595
https://api.github.com/repos/pandas-dev/pandas/pulls/8409
2014-09-27T21:11:34Z
2014-09-29T13:23:48Z
2014-09-29T13:23:48Z
2014-09-29T13:24:23Z
Added a section to FAQ Docs about startup scripts for setting up pandas based on issue #5748.
diff --git a/doc/source/faq.rst b/doc/source/faq.rst index a613d53218ce2..6aa51346f008a 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -65,6 +65,28 @@ Monkey-patching existing methods is usually a bad idea in that respect. When used with proper care, however, it's a very useful tool to have. +.. _ref-...
Closes #5748
https://api.github.com/repos/pandas-dev/pandas/pulls/8407
2014-09-27T20:09:11Z
2014-09-27T21:06:30Z
2014-09-27T21:06:30Z
2014-11-28T15:41:45Z
CLN: Remove core/array.py
diff --git a/pandas/core/array.py b/pandas/core/array.py deleted file mode 100644 index 495f231921a19..0000000000000 --- a/pandas/core/array.py +++ /dev/null @@ -1,37 +0,0 @@ -""" -Isolate pandas's exposure to NumPy -""" - -import numpy as np - -Array = np.ndarray - -bool = np.bool_ - -_dtypes = { - 'int': [8, 16, 3...
Fixes https://github.com/pydata/pandas/issues/8359
https://api.github.com/repos/pandas-dev/pandas/pulls/8406
2014-09-27T19:37:12Z
2014-09-29T13:21:50Z
2014-09-29T13:21:49Z
2014-09-29T18:08:00Z
Better message in exception when conversion from period to timestamp fai...
diff --git a/pandas/tslib.pyx b/pandas/tslib.pyx index 7cba1cf6ccffe..e88d88c86cf48 100644 --- a/pandas/tslib.pyx +++ b/pandas/tslib.pyx @@ -1072,8 +1072,7 @@ cdef convert_to_tsobject(object ts, object tz, object unit): ts = datetime.combine(ts, datetime_time()) return convert_to_tsobject(ts, tz, None...
Fix to issue https://github.com/pydata/pandas/issues/6780
https://api.github.com/repos/pandas-dev/pandas/pulls/8405
2014-09-27T18:03:29Z
2014-09-29T14:52:54Z
2014-09-29T14:52:54Z
2014-09-29T22:07:51Z
add support for numpy 1.8+ data types for conversion to r dataframe
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index f0c1d1d8939f1..cd62f222885c2 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -287,7 +287,7 @@ API changes - ``DataFrame.info()`` now ends its output with a newline character (:issue:`8114`) - add ``copy=True`` argument to ``pd.conc...
Numpy changed the names of their data types in 1.8 http://docs.scipy.org/doc/numpy-dev/user/basics.types.html specifically, bool, int, float, and complex are now bool_, int_, float_ and complex_ this requires changing the VECTOR_TYPES and NA_TYPES dictionaries used by convert_to_r_dataframe in pandas/rpy/common.py n...
https://api.github.com/repos/pandas-dev/pandas/pulls/8400
2014-09-26T23:47:03Z
2014-09-29T21:42:44Z
2014-09-29T21:42:44Z
2014-09-29T21:42:52Z
BUG: inconsisten panel indexing with aligning frame (GH7763)
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index a99d056419ad2..27a31a13a0259 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -609,7 +609,13 @@ def _align_series(self, indexer, ser): def _align_frame(self, indexer, df): is_frame = self.obj.ndim == 2 is_pa...
closes #7763
https://api.github.com/repos/pandas-dev/pandas/pulls/8399
2014-09-26T23:36:27Z
2014-09-26T23:36:40Z
2014-09-26T23:36:40Z
2014-09-26T23:36:40Z
TST: Skip failing boxplot tests on mpl 1.4+
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index fac6a4d83e13b..1cc5e2a99148b 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -28,6 +28,15 @@ import pandas.tools.plotting as plotting +def _skip_if_mpl_14_or_dev_boxplot(): + # GH 8382 + # Boxpl...
Closes https://github.com/pydata/pandas/issues/8382
https://api.github.com/repos/pandas-dev/pandas/pulls/8398
2014-09-26T15:00:41Z
2014-09-27T13:08:26Z
2014-09-27T13:08:26Z
2017-04-05T02:05:56Z
TST: Fix failing pie plot tests
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 7e9b562ba0014..fac6a4d83e13b 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -635,7 +635,7 @@ def test_pie_series(self): series = Series([1, 2, np.nan, 4], index=['a', 'b'...
Fixes the build failures from merging https://github.com/pydata/pandas/pull/8307
https://api.github.com/repos/pandas-dev/pandas/pulls/8393
2014-09-25T18:41:16Z
2014-09-25T19:46:38Z
2014-09-25T19:46:38Z
2017-04-05T02:05:56Z
DOC: Use square figsize for pie plots
diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst index adbecbe688945..3285efadf8ad1 100644 --- a/doc/source/visualization.rst +++ b/doc/source/visualization.rst @@ -621,7 +621,11 @@ A ``ValueError`` will be raised if there are any negative values in your data. series = Series(3 * rand(4), in...
First commit closes https://github.com/pydata/pandas/issues/8308 second closes https://github.com/pydata/pandas/issues/8312 aside from using mpl 1.4 to build the docs. I can post any examples if you want.
https://api.github.com/repos/pandas-dev/pandas/pulls/8391
2014-09-25T17:06:53Z
2014-10-04T18:01:29Z
2014-10-04T18:01:29Z
2015-08-18T12:44:59Z
EHN: Allow DataFrame.fillna to accept a DataFrame as its fill value.
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 92eb1d54ae676..5e7d4947aecea 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -278,7 +278,7 @@ API changes - ``DataFrame.info()`` now ends its output with a newline character (:issue:`8114`) - add ``copy=True`` argument to ``pd.conc...
Related: [SO](http://stackoverflow.com/q/26002564/190597) Fixes #8377
https://api.github.com/repos/pandas-dev/pandas/pulls/8388
2014-09-25T13:47:28Z
2014-09-26T15:19:39Z
2014-09-26T15:19:39Z
2014-09-26T19:11:04Z
non-existent columns in DataFrame.dropna subset argument now raises KeyError
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 92eb1d54ae676..7115364fbb0e5 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -971,4 +971,4 @@ Bug Fixes - Bug in DataFrame terminal display: Setting max_column/max_rows to zero did not trigger auto-resizing of dfs to fit terminal wi...
closes #8303. Now instead of interpreting a bad column name as the 'last column' of the `DataFrame`, `dropna` will raise a `KeyError` instead. unit test and release note now included.
https://api.github.com/repos/pandas-dev/pandas/pulls/8384
2014-09-25T00:31:10Z
2014-09-26T14:35:18Z
2014-09-26T14:35:18Z
2014-09-26T14:35:25Z
BUG: floats cannot be ranked with tolerance
diff --git a/doc/source/whatsnew/v0.16.0.txt b/doc/source/whatsnew/v0.16.0.txt index bbc006b41a433..0603bd4deeafa 100644 --- a/doc/source/whatsnew/v0.16.0.txt +++ b/doc/source/whatsnew/v0.16.0.txt @@ -240,6 +240,7 @@ Bug Fixes - Bug in ``MultiIndex`` where inserting new keys would fail (:issue:`9250`). - Bug in ``gro...
closes https://github.com/pydata/pandas/issues/8365 using tolerance in ranking floats can result in inconsistent behavior; currently on master: ``` >>> pd.Series([1001, 1001.0002]).rank() 0 1 1 2 dtype: float64 >>> pd.Series([1001, 1001.0001, 1001.0002]).rank() 0 2 1 2 2 2 dtype: float64 ``` so, in ef...
https://api.github.com/repos/pandas-dev/pandas/pulls/8379
2014-09-24T01:40:16Z
2015-03-03T01:15:35Z
2015-03-03T01:15:35Z
2015-03-05T12:47:34Z
API: .fillna will now raise a NotImplementedError when passed a DataFrame (GH8377)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 1e52d7e20046e..92eb1d54ae676 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -278,6 +278,8 @@ API changes - ``DataFrame.info()`` now ends its output with a newline character (:issue:`8114`) - add ``copy=True`` argument to ``pd.conc...
xref #8377
https://api.github.com/repos/pandas-dev/pandas/pulls/8378
2014-09-23T23:24:28Z
2014-09-24T11:59:42Z
2014-09-24T11:59:42Z
2014-09-24T11:59:42Z
ENH: Added file path existence check for read_hdf
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 1e52d7e20046e..b1e6fbe0b02bf 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -255,6 +255,8 @@ API changes - ``Series.to_csv()`` now returns a string when ``path=None``, matching the behaviour of ``DataFrame.to_csv()`` (:issue:`821...
closes #7715 Added simple check for file path existence. It might be more advisable to deprecate this function and separate file buffer and file path read functionality, but the current form matches the rest of the API. I wasn't sure if there was any tests I needed to add, but if there is, let me know.
https://api.github.com/repos/pandas-dev/pandas/pulls/8373
2014-09-23T19:00:22Z
2014-09-26T22:06:18Z
2014-09-26T22:06:18Z
2014-09-26T22:06:29Z
BUG: bug in non-evently divisible offsets when resampling (e.g. '7s') (GH8371)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index 1e52d7e20046e..5504ddcce6cbf 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -954,7 +954,7 @@ Bug Fixes - Bug with kde plot and NaNs (:issue:`8182`) - Bug in ``GroupBy.count`` with float32 data type were nan values were not exclude...
closes #8371 ``` In [1]: data = """date,time,value ...: 11-08-2014,00:00:01.093,1 ...: 11-08-2014,00:00:02.159,1 ...: 11-08-2014,00:00:02.667,1 ...: 11-08-2014,00:00:03.175,1 ...: 11-08-2014,00:00:07.058,1 ...: 11-08-2014,00:00:07.362,1 ...: 11-08-2014,00:00:08.324,1 ...: 11-08-2014,00:...
https://api.github.com/repos/pandas-dev/pandas/pulls/8372
2014-09-23T18:02:55Z
2014-09-26T15:57:37Z
2014-09-26T15:57:37Z
2014-09-26T15:57:37Z
BUG/COMPAT: set tz on DatetimeIndex on pickle reconstruction (GH8367)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index f49c919e80d50..cdf90e0a13cc0 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -506,7 +506,7 @@ Internal Refactoring In 0.15.0 ``Index`` has internally been refactored to no longer sub-class ``ndarray`` but instead subclass ``Panda...
closes #8367
https://api.github.com/repos/pandas-dev/pandas/pulls/8370
2014-09-23T14:17:10Z
2014-09-23T14:58:45Z
2014-09-23T14:58:45Z
2014-09-23T14:58:45Z
BUG: Bug in alignment with TimeOps and non-unique indexes (GH8363)
diff --git a/doc/source/v0.15.0.txt b/doc/source/v0.15.0.txt index db55786ba0d1a..f49c919e80d50 100644 --- a/doc/source/v0.15.0.txt +++ b/doc/source/v0.15.0.txt @@ -867,7 +867,7 @@ Bug Fixes - Bug in ``tslib.tz_convert`` and ``tslib.tz_convert_single`` may return different results (:issue:`7798`) - Bug in ``Datetim...
closes #8363
https://api.github.com/repos/pandas-dev/pandas/pulls/8364
2014-09-22T22:07:36Z
2014-09-23T01:05:32Z
2014-09-23T01:05:32Z
2014-09-23T01:05:32Z
Changed round_trip converter to Python converter instead of strtod
diff --git a/pandas/src/parser/tokenizer.c b/pandas/src/parser/tokenizer.c index f817b202632e5..9a7303b6874db 100644 --- a/pandas/src/parser/tokenizer.c +++ b/pandas/src/parser/tokenizer.c @@ -2292,7 +2292,11 @@ double precise_xstrtod(const char *str, char **endptr, char decimal, double round_trip(const char *p, char ...
As @mdickinson noted in #8044.
https://api.github.com/repos/pandas-dev/pandas/pulls/8357
2014-09-22T16:08:17Z
2014-09-27T01:48:08Z
2014-09-27T01:48:08Z
2014-09-28T16:24:39Z
BUG: Work-around openpyxl-2.1.0 NumberFormat removal
diff --git a/pandas/io/excel.py b/pandas/io/excel.py index 84f04188b7906..dcecbedd87dcf 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -71,7 +71,7 @@ def read_excel(io, sheetname=0, **kwds): Parameters ---------- - io : string, file-like object, or xlrd workbook. + io : string, file-like...
xref #8342 compat for openpyxl: 2.0.0 thru 2.1.0, but a bit hacky
https://api.github.com/repos/pandas-dev/pandas/pulls/8356
2014-09-22T15:54:57Z
2014-09-22T16:39:26Z
2014-09-22T16:39:26Z
2014-09-22T16:39:26Z
COMPAT: compat for dateutil 2.5.0 and differing dayfirst=True & yearf…
diff --git a/pandas/tseries/tests/test_tslib.py b/pandas/tseries/tests/test_tslib.py index f0d5bf7e046c3..863bc6f630d06 100644 --- a/pandas/tseries/tests/test_tslib.py +++ b/pandas/tseries/tests/test_tslib.py @@ -589,23 +589,62 @@ def test_parsers_quarter_invalid(self): self.assertRaises(ValueError, tools....
closes #12730
https://api.github.com/repos/pandas-dev/pandas/pulls/12731
2016-03-29T14:32:03Z
2016-03-29T17:29:48Z
2016-03-29T17:29:48Z
2016-03-29T17:29:48Z
API: Make Series.searchsorted return a scalar, when supplied a scalar
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index fe5e4a57c557a..6938065115f1f 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1096,6 +1096,7 @@ Other API Changes has an improved ``KeyError`` message, and will not fail on duplicate column name...
- [x] xref #23466 & #22034 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``Series.searchsorted`` returns the wrong shape for scalar input. Numpy arrays and all other array types return a scalar if the input is a scalar, but ``Series`` does not...
https://api.github.com/repos/pandas-dev/pandas/pulls/23801
2018-11-20T00:30:53Z
2018-12-21T18:12:11Z
2018-12-21T18:12:11Z
2018-12-21T18:37:08Z
TST: Mark test_pct_max_many_rows with pytest.mark.single
diff --git a/pandas/tests/frame/test_rank.py b/pandas/tests/frame/test_rank.py index eaba5f7ec7790..e7a876bcf52d1 100644 --- a/pandas/tests/frame/test_rank.py +++ b/pandas/tests/frame/test_rank.py @@ -310,6 +310,7 @@ def test_rank_pct_true(self, method, exp): expected = DataFrame(exp) tm.assert_frame_...
- [X] closes #23726 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` See this comment for context: https://github.com/pandas-dev/pandas/issues/23726#issuecomment-440076164
https://api.github.com/repos/pandas-dev/pandas/pulls/23799
2018-11-20T00:02:39Z
2018-11-20T01:03:05Z
2018-11-20T01:03:05Z
2018-11-20T02:39:19Z
TST: split up pandas/tests/test_multilevel.py
diff --git a/pandas/tests/indexing/test_multiindex.py b/pandas/tests/indexing/test_multiindex.py index f4caf17b60d65..bf5fa0a48cfe7 100644 --- a/pandas/tests/indexing/test_multiindex.py +++ b/pandas/tests/indexing/test_multiindex.py @@ -1,19 +1,58 @@ from datetime import datetime -from warnings import catch_warnings +...
- [ ] closes #23782 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [n/a ] whatsnew entry @jreback 1. i've used fixtures for `frame` and `ymd` instead of copying across the test base class. 2. not moved tests with names matching `getitem` from the `TestSorted` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23797
2018-11-19T21:42:54Z
2018-11-23T03:07:22Z
2018-11-23T03:07:22Z
2018-11-23T11:42:49Z
CLN/DEPS: Clean up post numpy bump to 1.12
diff --git a/README.md b/README.md index b4dedecb4c697..1993b1ecb9dc1 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ pip install pandas ``` ## Dependencies -- [NumPy](https://www.numpy.org): 1.9.0 or higher +- [NumPy](https://www.numpy.org): 1.12.0 or higher - [python-dateutil](https://labix.org/python...
- [x] follow-up to #23062 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` I stumbled over a place I had forgotten to change in #23062 - `README.md`. And since I recently found some `grep`-like powers on windows with `findstr`, I took this opportunity to have a look ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23796
2018-11-19T21:32:18Z
2018-11-27T02:50:23Z
2018-11-27T02:50:23Z
2018-11-27T06:45:04Z
REF/TST: Fix remaining DatetimeArray with DateOffset arithmetic ops
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index bb7a9a57b8a75..f414cd161e562 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -377,13 +377,15 @@ cdef class _Timestamp(datetime): neg_other = -other return self...
- [ ] 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/23789
2018-11-19T18:30:46Z
2018-11-28T23:33:33Z
2018-11-28T23:33:33Z
2018-11-28T23:35:33Z
STY: isort tests/scalar, tests/tslibs, import libwindow instead of _window
diff --git a/pandas/core/window.py b/pandas/core/window.py index f7a60527602a1..494ab5d5963ee 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -7,41 +7,29 @@ """ from __future__ import division -import warnings -import numpy as np from collections import defaultdict from datetime import timedelta...
Ignore flake8 code "S001: found modulo formatter" which incorrectly picks up _all_ `%` characters, i.e. gives false-positives on actual mod ops.
https://api.github.com/repos/pandas-dev/pandas/pulls/23787
2018-11-19T17:38:22Z
2018-11-20T01:50:22Z
2018-11-20T01:50:22Z
2018-11-20T02:07:43Z
TST: move .str-test to strings.py & parametrize it; precursor to #23582
diff --git a/pandas/tests/series/test_api.py b/pandas/tests/series/test_api.py index f944d6f8c9d08..65f5c59deba36 100644 --- a/pandas/tests/series/test_api.py +++ b/pandas/tests/series/test_api.py @@ -602,82 +602,6 @@ def f(): ordered=True)) tm.assert_series_equal(result,...
- [x] precursor to #23582 and #23167 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` In #23582, I'm testing all string methods on all inferred dtypes (which uncovered lots of bugs that will be fixed by #23167 and follow-ups). @jreback required #23582 to be broken ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23777
2018-11-19T07:23:40Z
2018-11-20T01:54:33Z
2018-11-20T01:54:32Z
2018-11-20T17:06:36Z
TST: For GH4861, Period and datetime in multiindex
diff --git a/pandas/tests/indexing/test_multiindex.py b/pandas/tests/indexing/test_multiindex.py index ea17844a75033..f4caf17b60d65 100644 --- a/pandas/tests/indexing/test_multiindex.py +++ b/pandas/tests/indexing/test_multiindex.py @@ -1,3 +1,4 @@ +from datetime import datetime from warnings import catch_warnings ...
- [X] closes #4861 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry (only test added)
https://api.github.com/repos/pandas-dev/pandas/pulls/23776
2018-11-19T06:37:18Z
2018-11-20T02:00:07Z
2018-11-20T02:00:06Z
2018-11-20T02:00:09Z
BUG: Don't warn if default conflicts with dialect
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index bb02bbb36424a..86b837de10daa 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1384,6 +1384,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :meth:`HDF...
xref #23761 Also introduces a context manager for setting CSV dialect.
https://api.github.com/repos/pandas-dev/pandas/pulls/23775
2018-11-19T02:22:47Z
2018-11-19T12:12:48Z
2018-11-19T12:12:47Z
2022-11-03T17:03:08Z
DEPS: bump xlrd min version to 1.0.0
diff --git a/ci/deps/azure-27-compat.yaml b/ci/deps/azure-27-compat.yaml index 5b726304cf414..44c561e9c8911 100644 --- a/ci/deps/azure-27-compat.yaml +++ b/ci/deps/azure-27-compat.yaml @@ -16,7 +16,7 @@ dependencies: - pytz=2013b - scipy=0.18.1 - sqlalchemy=0.7.8 - - xlrd=0.9.2 + - xlrd=1.0.0 - xlsxwriter...
remove numpy warnings on np.diff in boolean arrays
https://api.github.com/repos/pandas-dev/pandas/pulls/23774
2018-11-19T01:58:28Z
2018-11-19T14:30:19Z
2018-11-19T14:30:19Z
2018-11-19T14:30:19Z
PERF: Use is_utc check to improve performance of dateutil UTC in DatetimeIndex methods
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index 84bdcc5fa30f2..58cda3b871e51 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -1,5 +1,6 @@ from datetime import timedelta +import dateutil import numpy as np from pandas import to_d...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Benchmarks from `timeseries.py` and `timestamp.py` ``` before after ratio [91d1c503] [9cc84951] - 32.6±0.7μs 6.89±0.2μs 0.21 timestamp.TimestampOps.time_normalize(tzutc...
https://api.github.com/repos/pandas-dev/pandas/pulls/23772
2018-11-18T21:20:24Z
2018-11-18T23:07:45Z
2018-11-18T23:07:45Z
2018-11-18T23:27:27Z
TST: Extend datetime64 arith tests to array classes, fix several broken cases
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 094c9c3df0bed..631257b7a5264 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -727,6 +727,10 @@ def __add__(self, other): else: # pragma: no cover return N...
Some of the DateOffset arithmetic didn't work with the EA classes; this fixed that. Other pieces of the DateOffset arithmetic will have to wait until TimedeltaArray gets a few more methods.
https://api.github.com/repos/pandas-dev/pandas/pulls/23771
2018-11-18T21:06:58Z
2018-11-19T02:00:52Z
2018-11-19T02:00:52Z
2018-11-19T02:09:26Z
Add _expand_user to _stringify_path as we need to allow tilde - ~, to expand to full path
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 8bcb97ec0faf2..4ff1f96777b1c 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -416,6 +416,7 @@ Other Enhancements - :class:`IntervalIndex` has gained the :attr:`~IntervalIndex.is_overlapping` attri...
- [x] closes #23473 - [ ] 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/23769
2018-11-18T18:03:22Z
2019-01-05T19:27:01Z
2019-01-05T19:27:01Z
2019-01-06T17:15:17Z
Fix doc string of make_signature() function
diff --git a/pandas/api/extensions/__init__.py b/pandas/api/extensions/__init__.py index 51555c57b2288..cb6241016d82f 100644 --- a/pandas/api/extensions/__init__.py +++ b/pandas/api/extensions/__init__.py @@ -1,4 +1,4 @@ -"""Public API for extending panadas objects.""" +"""Public API for extending pandas objects.""" f...
- [ ] 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/23768
2018-11-18T17:00:28Z
2018-11-22T03:54:59Z
2018-11-22T03:54:59Z
2018-11-22T09:27:31Z
API/DEPR: replace kwarg "pat" with "sep" in str.[r]partition
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 98941b6d353bb..0fd3a2f5177fe 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1030,6 +1030,7 @@ Deprecations - :meth:`Timestamp.tz_localize`, :meth:`DatetimeIndex.tz_localize`, and :meth:`Series.t...
- [x] closes #22676 - [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/23767
2018-11-18T15:31:55Z
2018-11-20T01:07:24Z
2018-11-20T01:07:24Z
2018-11-20T06:35:12Z
CLN: Finish isort core
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index f842d1237cb14..eb2fef482ff17 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -5,16 +5,18 @@ This is an experimental API and subject to breaking changes without warning. """ -import numpy as np - import opera...
- [x] xref #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23765
2018-11-18T12:15:50Z
2018-11-20T01:04:24Z
2018-11-20T01:04:24Z
2018-11-20T08:23:30Z
CLN: Isort core/*.py and core/indexes/
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 9ff8ba7bb23d2..ecdad8752113a 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -3,40 +3,31 @@ intended for public consumption """ from __future__ import division -from warnings import warn, catch_warnings, simplefilter +...
- [x] xref #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23764
2018-11-18T12:10:36Z
2018-11-23T02:55:13Z
2018-11-23T02:55:13Z
2018-11-23T02:55:17Z
TST: Add test case for GH14080 for overflow exception
diff --git a/pandas/tests/scalar/timestamp/test_arithmetic.py b/pandas/tests/scalar/timestamp/test_arithmetic.py index 0f8ddc53734f6..207bd103105ea 100644 --- a/pandas/tests/scalar/timestamp/test_arithmetic.py +++ b/pandas/tests/scalar/timestamp/test_arithmetic.py @@ -7,25 +7,58 @@ import pandas.util.testing as tm fr...
- [X] closes #14080 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] Unsure if I should modify whatsnew if it is just adding a test?
https://api.github.com/repos/pandas-dev/pandas/pulls/23762
2018-11-18T05:04:11Z
2018-11-18T21:56:56Z
2018-11-18T21:56:56Z
2018-11-18T23:25:38Z
REF/TST: Add more pytest idiom to parsers tests
diff --git a/pandas/tests/io/parser/comment.py b/pandas/tests/io/parser/comment.py deleted file mode 100644 index fc2310ca1daaf..0000000000000 --- a/pandas/tests/io/parser/comment.py +++ /dev/null @@ -1,119 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -Tests that comments are properly handled during parsing -for all of the ...
Adds more idiom to the following: * `parser/comment` --> `parser/test_comment` * `parser/converters` --> `parser/test_converters` * `parser/compression` --> `parser/test_compression` * `parser/dialect` --> `parser/test_dialect` Builds off of #23712. In the interest of keeping the diff somewhat manageable, I...
https://api.github.com/repos/pandas-dev/pandas/pulls/23761
2018-11-18T02:16:32Z
2018-11-18T17:36:06Z
2018-11-18T17:36:06Z
2018-11-19T01:46:42Z
TST: Use new arithmetic fixtures, parametrize many more tests
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index e5d9c85691b7a..63a5c40a31f1d 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -5,9 +5,6 @@ import pandas as pd from pandas.compat import long -from pandas.core.arrays import ( - ...
Focus is mostly on test_datetime64.py to keep things close to orthogonal. De-duplicates some tests that are in e.g. both TestFrameArithmetic and TestSeriesArithmetic
https://api.github.com/repos/pandas-dev/pandas/pulls/23757
2018-11-17T23:22:03Z
2018-11-18T17:37:53Z
2018-11-18T17:37:53Z
2018-11-18T17:53:26Z
TST: groupby with daily frequency fails with NonExistentTimeError on clock change day in Brazil
diff --git a/pandas/tests/test_resample.py b/pandas/tests/test_resample.py index 7e0342e8b987a..d38f2a237c31d 100644 --- a/pandas/tests/test_resample.py +++ b/pandas/tests/test_resample.py @@ -2515,6 +2515,15 @@ def test_resample_nonexistent_time_bin_edge(self): result = expected.resample('900S').mean() ...
- [x] closes #23742 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [n/a ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23756
2018-11-17T21:48:07Z
2018-11-17T22:41:08Z
2018-11-17T22:41:08Z
2018-11-18T15:29:48Z
BUG GH23744 ufuncs on DataFrame keeps dtype sparseness
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 48a3bfdab62c9..b12e117dcb373 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1463,6 +1463,7 @@ Sparse - Bug in unary inversion operator (``~``) on a ``SparseSeries`` with boolean values. The perf...
- [X] closes #23744 - [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/23755
2018-11-17T18:55:06Z
2018-11-27T12:25:42Z
2018-11-27T12:25:41Z
2018-11-27T12:25:46Z
API: rename MultiIndex.labels to MultiIndex.codes
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index ee5ae69555d16..59e43ee22afde 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -473,8 +473,8 @@ def setup(self): n1 = 400 n2 = 250 index = MultiIndex(levels=[np.arange(n1),...
- [x] closes #13443 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This PR renames ``MultiIndex.labels`` to ``MultiIndex.codes``. Also note that I've not changed the repr method or the repr output in various doc strings examples in anticipat...
https://api.github.com/repos/pandas-dev/pandas/pulls/23752
2018-11-17T10:34:58Z
2018-12-05T19:06:02Z
2018-12-05T19:06:01Z
2018-12-06T22:52:22Z
DOC: Remove pandas. prefix from See Also section in Series #23659
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index df2da26685a16..d13b47f592a2e 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -509,8 +509,8 @@ def _factorize_array(values, na_sentinel=-1, size_hint=None, See Also -------- - pandas.cut : Discretize continu...
- [x] closes #23659 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Cleaned up so that `./scripts/validate_docstrings.py --prefix=pandas.Series --errors=SA05` does not return any cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/23749
2018-11-17T08:39:09Z
2018-11-17T22:58:27Z
2018-11-17T22:58:27Z
2018-11-17T22:58:44Z
TST: implement tm.to_array, box_with_timedelta, box4
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index 9ee5e05638978..e5d9c85691b7a 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -5,9 +5,25 @@ import pandas as pd from pandas.compat import long -from pandas.core.arrays import Per...
Test helpers and fixtures broken off of #23734 and #23642 since these are blockers for boxing and (thankfully, finally) simplification in these files
https://api.github.com/repos/pandas-dev/pandas/pulls/23748
2018-11-17T03:54:33Z
2018-11-17T22:09:55Z
2018-11-17T22:09:55Z
2018-11-17T22:50:11Z
TST/CLN: refactor tests\io\formats\test_to_html.py
diff --git a/pandas/tests/io/formats/data/datetime64_hourformatter.html b/pandas/tests/io/formats/data/datetime64_hourformatter.html new file mode 100644 index 0000000000000..c92b7218eba76 --- /dev/null +++ b/pandas/tests/io/formats/data/datetime64_hourformatter.html @@ -0,0 +1,18 @@ +<table border="1" class="dataframe...
- [n/a ] xref #22786 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [n/a ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23747
2018-11-16T23:28:27Z
2018-11-17T22:39:23Z
2018-11-17T22:39:23Z
2018-11-18T10:47:48Z
BUG Rename during dependency generation from conda
diff --git a/requirements-dev.txt b/requirements-dev.txt index 93145d948c218..0c6350eb40c95 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -28,7 +28,7 @@ numexpr>=2.6.1 openpyxl pyarrow>=0.7.0 pymysql -pytables>=3.4.2 +tables>=3.4.2 pytest-cov pytest-xdist s3fs diff --git a/scripts/generate_pip_d...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Package pytables wasn't renamed as it was compared to full package specification.
https://api.github.com/repos/pandas-dev/pandas/pulls/23740
2018-11-16T13:28:05Z
2018-11-16T14:27:10Z
2018-11-16T14:27:10Z
2018-11-16T16:55:57Z
DEPR: deprecate default of keep_tz=False of DatetimeIndex.to_series
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 007f5b7feb060..3991b42fb1afc 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1029,6 +1029,8 @@ Deprecations `use_threads` to reflect the changes in pyarrow 0.11.0. (:issue:`23053`) - :func:`pa...
Closes #17832
https://api.github.com/repos/pandas-dev/pandas/pulls/23739
2018-11-16T12:58:25Z
2018-11-16T17:25:15Z
2018-11-16T17:25:15Z
2019-11-20T02:59:07Z
Add missing spacing before or after a param name in docstrings
diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index a010cbf76cf5d..7b7f5f2e34c5f 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -648,7 +648,7 @@ class NaTType(_NaT): minute : int, optional second : int, optional microseco...
- [x] fixes #23729 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23738
2018-11-16T11:38:10Z
2018-11-17T23:08:59Z
2018-11-17T23:08:59Z
2018-11-18T00:53:03Z
DOC: Removing rpy2 dependencies, and converting examples using it to regular code blocks
diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml index f79fcb11c179f..fb54c784d6fac 100644 --- a/ci/deps/travis-36-doc.yaml +++ b/ci/deps/travis-36-doc.yaml @@ -2,7 +2,6 @@ name: pandas channels: - defaults - conda-forge - - r dependencies: - beautifulsoup4 - bottleneck @@ -31,14 +30,...
- [X] closes #20648 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Still under discussion (https://github.com/pandas-dev/pandas/issues/20648#issuecomment-439343998), but in this PR I'm removing the rpy2 documentation page, as I think that docum...
https://api.github.com/repos/pandas-dev/pandas/pulls/23737
2018-11-16T10:43:21Z
2018-11-20T16:18:25Z
2018-11-20T16:18:25Z
2018-11-20T16:18:26Z
TST/CLN: Fix/clean pytables test
diff --git a/pandas/tests/io/test_pytables.py b/pandas/tests/io/test_pytables.py index 7e1b43e81f9c1..f7157fe13e14a 100644 --- a/pandas/tests/io/test_pytables.py +++ b/pandas/tests/io/test_pytables.py @@ -4756,24 +4756,26 @@ def test_categorical(self): tm.assert_series_equal(s, result) _mayb...
While working on #23731, I sometimes got a failing test for pytables -- based on the rest of the test, it seemed pretty clear that the `_maybe_remove(store, 'xx')` was not consistently used throughout the test, and so I thought I'd add it. I'm guessing the CI never hits this failure because it seems it would need more ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23732
2018-11-16T01:14:43Z
2018-11-17T22:56:48Z
2018-11-17T22:56:48Z
2018-11-18T12:04:44Z
CI for boto: fix errors; add coverage; add skip for uncatchable ResourceWarning
diff --git a/.travis.yml b/.travis.yml index 03026647d6bb8..e0ab770ac46ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -90,6 +90,12 @@ before_install: - uname -a - git --version - git tag + # Because travis runs on Google Cloud and has a /etc/boto.cfg, + # it breaks moto import, see: + # https://github.com...
closes #23680 closes #23754 - [x] fixture modified / tests pass - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` EDIT2: The warning has been identified as being caused by a vendored `requests` from `botocore<1.11`, which is solved by raising the minimum version to `1.11` for the only CI job (...
https://api.github.com/repos/pandas-dev/pandas/pulls/23731
2018-11-16T01:12:11Z
2018-12-15T18:04:24Z
2018-12-15T18:04:24Z
2018-12-15T19:04:39Z
CI: Fixing possible bugs in the CI
diff --git a/ci/azure/linux.yml b/ci/azure/linux.yml index b5a8e36d5097d..23800f6719bfe 100644 --- a/ci/azure/linux.yml +++ b/ci/azure/linux.yml @@ -15,7 +15,7 @@ jobs: CONDA_ENV: pandas TEST_ARGS: "--skip-slow --skip-network" - py36_locale: + py37_locale: ENV_FILE: ci/deps/azure-...
I'm not sure if they are actual bugs, or I'm not understanding something. I think it's easier to discuss over a PR, so I fixed what I think it's wrong. @jreback @TomAugspurger do you mind taking a look?
https://api.github.com/repos/pandas-dev/pandas/pulls/23727
2018-11-15T21:23:27Z
2018-11-24T04:58:46Z
2018-11-24T04:58:45Z
2018-11-24T04:59:01Z
BUG: concat warning bubbling up through str.cat
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 99aab607b2bf0..410721698e358 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -2241,7 +2241,7 @@ def cat(self, others=None, sep=None, na_rep=None, join=None): # Need to add keys for uniqueness in case of duplicate columns...
This was an unexpected realisation from #23723 -- the change of `pd.concat` in #20613 to add `sort` and raise a warning if it's not specified was not caught in the `.str.cat` code, because it was being shadowed (apparently in all relevant tests) by another `FutureWarning` that's being raised if `join` is not specified ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23725
2018-11-15T20:24:49Z
2018-11-17T23:00:38Z
2018-11-17T23:00:38Z
2018-11-18T12:02:00Z
DOC: more consistent flake8-commands in contributing.rst
diff --git a/Makefile b/Makefile index 4a4aca21e1b78..d2bd067950fd0 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ build: clean_pyc python setup.py build_ext --inplace lint-diff: - git diff master --name-only -- "*.py" | grep -E "pandas|scripts" | xargs flake8 + git diff upstream/master --name-only -- "*.p...
After #23707, I was looking at the rendered results in https://pandas-docs.github.io/pandas-docs-travis/contributing.html#id54, and noticed some inconsistencies: * the linux commands use `git diff master` as opposed to `git diff upstream/master`; this is also in contrast to what's in the PR template * the windows c...
https://api.github.com/repos/pandas-dev/pandas/pulls/23724
2018-11-15T19:11:46Z
2018-11-20T02:27:35Z
2018-11-20T02:27:35Z
2018-11-20T06:53:07Z
DOC: update str.cat example
diff --git a/doc/source/text.rst b/doc/source/text.rst index 2361be765d889..e4f60a761750d 100644 --- a/doc/source/text.rst +++ b/doc/source/text.rst @@ -303,23 +303,24 @@ The same alignment can be used when ``others`` is a ``DataFrame``: Concatenating a Series and many objects into a Series ^^^^^^^^^^^^^^^^^^^^^^^^^^...
There have been a couple of changes recently due to the whole docstring validation effort (e.g. #22838), which got rid of some warnings emitted by the sample code. As it stands, the code samples don't really reflect the running text anymore, and with the changes from #22264, it makes sense to update the running text...
https://api.github.com/repos/pandas-dev/pandas/pulls/23723
2018-11-15T18:57:30Z
2019-01-04T12:36:19Z
2019-01-04T12:36:19Z
2019-01-04T16:58:22Z
TST: clean up to change setup.cfg to `xfail_strict = True` (GH23057)
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index 2714b68fa6ff4..44e6cc664de6d 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -154,7 +154,7 @@ def box(request): @pytest.fixture(params=[pd.Index, pd.Series...
- [x] closes #23057 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23721
2018-11-15T18:03:36Z
2018-12-03T13:32:37Z
2018-12-03T13:32:36Z
2018-12-03T15:45:49Z
ENH: Improve error message for empty object array
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 7e8ab002f7978..d7beeb02a13c4 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -1868,7 +1868,14 @@ def _dtype_to_default_stata_fmt(dtype, column, dta_version=114, inferred_dtype = infer_dtype(column.dropna()) if not (inferred_dtype i...
Improve the error message shown when an object array is empty closes #23572 - [x] closes #23572 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry No what's new since too small a change and no test needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/23718
2018-11-15T09:03:32Z
2018-11-17T23:14:13Z
2018-11-17T23:14:13Z
2019-03-21T13:27:34Z
Add option for DataFrame.to_html() to render URL data as links (#2679)
diff --git a/doc/source/io.rst b/doc/source/io.rst index fd83f1a24edab..f9da5ee6d6737 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -2596,6 +2596,28 @@ table CSS classes. Note that these classes are *appended* to the existing print(df.to_html(classes=['awesome_table_class', 'even_more_awesome_class'])...
- [X] closes #2679 - [X] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Two lines were added to tests that exceed the 79 character limit.
https://api.github.com/repos/pandas-dev/pandas/pulls/23715
2018-11-15T06:11:16Z
2018-12-13T07:09:41Z
2018-12-13T07:09:40Z
2018-12-13T14:30:11Z
DOC: Handle exceptions when computing contributors.
diff --git a/doc/sphinxext/contributors.py b/doc/sphinxext/contributors.py index 0f04d47435699..8c9fa5bc961d1 100644 --- a/doc/sphinxext/contributors.py +++ b/doc/sphinxext/contributors.py @@ -10,6 +10,7 @@ """ from docutils import nodes from docutils.parsers.rst import Directive +import git from announce import ...
We're failing on master right now https://travis-ci.org/pandas-dev/pandas/jobs/455255389#L4369 ``` Exception occurred: File "/home/travis/miniconda3/envs/pandas/lib/python3.6/site-packages/git/cmd.py", line 825, in execute raise GitCommandError(command, status, stderr_value, stdout_value) git.exc.GitComman...
https://api.github.com/repos/pandas-dev/pandas/pulls/23714
2018-11-15T03:20:20Z
2018-11-15T11:53:40Z
2018-11-15T11:53:40Z
2018-11-15T11:54:22Z
MAINT: Add more pytest idiom to parser tests
diff --git a/pandas/tests/io/parser/c_parser_only.py b/pandas/tests/io/parser/c_parser_only.py deleted file mode 100644 index 88db1080642c5..0000000000000 --- a/pandas/tests/io/parser/c_parser_only.py +++ /dev/null @@ -1,494 +0,0 @@ -# -*- coding: utf-8 -*- - -""" -Tests that apply specifically to the CParser. Unless s...
This is only a start. To keep the diff small, we are only converting `c_parser_only`. If this looks good, the other test classes will soon follow in subsequent PR's. cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/23712
2018-11-15T01:09:02Z
2018-11-17T22:48:32Z
2018-11-17T22:48:32Z
2018-11-17T23:13:43Z
ERR: Fail-fast with incompatible skipfooter combos
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 007f5b7feb060..34774f76de213 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1368,6 +1368,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :func:`Dat...
Setup: ~~~python from pandas import read_csv from pandas.compat import StringIO data = "a\n1\n2\n3\n4\n5" # Case 1: read_csv(StringIO(data), skipfooter=1, nrows=2) # Case 2: read_csv(StringIO(data), skipfooter=1, chunksize=2) ~~~ Currently, we get: ~~~python # Case 1: ... ValueError: skipfoote...
https://api.github.com/repos/pandas-dev/pandas/pulls/23711
2018-11-14T23:21:44Z
2018-11-16T14:09:30Z
2018-11-16T14:09:30Z
2018-11-16T21:27:37Z
DOC: flake8-per-pr for windows users
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 514a58456bcd9..88a159a23c29a 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -591,21 +591,14 @@ run this slightly modified command:: git diff master --name-only -- "*.py" | grep "pandas/" | xargs flake8 -N...
This was vaguely inspired by #23658, and by me finding out that windows has a built-in kinda-sorta-grep called `findstr`. I've already started using it, and it's proven very useful. However, windows CLI tools are horrible, horribly documented, and just generally have terrible syntax. The command was built together f...
https://api.github.com/repos/pandas-dev/pandas/pulls/23707
2018-11-14T21:23:42Z
2018-11-15T12:02:34Z
2018-11-15T12:02:34Z
2018-11-15T19:01:48Z
CLN/CI: Catch that stderr-warning!
diff --git a/pandas/tests/io/parser/python_parser_only.py b/pandas/tests/io/parser/python_parser_only.py index 590736f720e67..6a41b4636e532 100644 --- a/pandas/tests/io/parser/python_parser_only.py +++ b/pandas/tests/io/parser/python_parser_only.py @@ -8,6 +8,7 @@ """ import csv +import sys import pytest @@ -2...
- [x] closes one of the three problems in #23680 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` There's an uncaught warning to stderr that bubbles up occasionally without failing the build (as far as I can tell), but it was one of the headfakes on the hunt for the R...
https://api.github.com/repos/pandas-dev/pandas/pulls/23706
2018-11-14T20:50:50Z
2018-11-15T13:23:08Z
2018-11-15T13:23:08Z
2018-11-15T19:01:19Z
BUG: Don't extract header names if none specified
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 44c467795d1ed..71c05981782f6 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1324,6 +1324,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :meth:`HDF...
Closes #11733.
https://api.github.com/repos/pandas-dev/pandas/pulls/23703
2018-11-14T19:13:48Z
2018-11-18T21:42:59Z
2018-11-18T21:42:59Z
2018-11-18T21:45:00Z
DEP/CI: Pin flake8-rst version
diff --git a/ci/deps/travis-36.yaml b/ci/deps/travis-36.yaml index 8aa551f6194d9..1880fa2501581 100644 --- a/ci/deps/travis-36.yaml +++ b/ci/deps/travis-36.yaml @@ -9,7 +9,7 @@ dependencies: - fastparquet - flake8>=3.5 - flake8-comprehensions - - flake8-rst + - flake8-rst=0.4.2 - gcsfs - geopandas -...
- [x] closes #23665 Pins version of `flake8-rst` to `0.4.2`. * Newer versions of this plugin will cover more code-blocks within the documentation. Thus CI will fail when new version is released to conda-forge. * Devs using pip already get issues as version `0.4.3` is released to PyPI. `flake8-rst` is gettin...
https://api.github.com/repos/pandas-dev/pandas/pulls/23699
2018-11-14T16:26:24Z
2018-11-14T17:04:09Z
2018-11-14T17:04:08Z
2018-11-22T20:52:14Z
DOC: Delete more trailing blank lines in docstrings.
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 333f4e5ea21b4..d226d8c2e7ee2 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2435,7 +2435,6 @@ class CategoricalAccessor(PandasDelegate, PandasObject, NoNewAttributesMixin): >>> s.cat...
- [x] closes #23632 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23698
2018-11-14T16:00:27Z
2018-11-15T20:54:24Z
2018-11-15T20:54:24Z
2018-11-16T13:48:56Z
CLN: Remove unnecessary code
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index d178c66da2cc1..f2ae7f6b56551 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -11,7 +11,7 @@ class DirNamesMixin(object): - _accessors = frozenset([]) + _accessors = frozenset() _deprecations = frozenset( ...
`frozenset()` and `frozenset([])` essentially produce identical results, and thus there is no need to pass an empty list to create an empty `frozenset`. - [ ] tests added / passed (CI is still running...) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry (no new feature)
https://api.github.com/repos/pandas-dev/pandas/pulls/23696
2018-11-14T15:05:47Z
2018-11-14T17:05:37Z
2018-11-14T17:05:37Z
2018-11-15T06:55:34Z
ENH: Allow export of mixed columns to Stata strl
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index d836ef3441e89..ec5b496278184 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -239,6 +239,7 @@ Other Enhancements - :meth:`Timestamp.tz_localize`, :meth:`DatetimeIndex.tz_localize`, and :meth:`Seri...
Enable export of large columns to Stata strls when the column contains None as a null value closes #23633 - [x] closes #23633 - [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/23692
2018-11-14T12:26:42Z
2018-11-14T17:06:46Z
2018-11-14T17:06:46Z
2019-03-21T13:27:36Z
REF: Move Excel names parameter handling to CSV
diff --git a/pandas/io/excel.py b/pandas/io/excel.py index a7e0e48de0a75..2b964a88a9695 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -651,6 +651,7 @@ def _parse_cell(cell_contents, cell_typ): # GH 12292 : error when read one empty column from excel file try: par...
Let the CSV `TextFileParser` do the work. No need to duplicate logic in the `ExcelFile` class.
https://api.github.com/repos/pandas-dev/pandas/pulls/23690
2018-11-14T09:17:29Z
2018-11-14T14:24:49Z
2018-11-14T14:24:49Z
2018-11-14T17:58:13Z
BUG: Fix Series/DataFrame.rank(pct=True) with more than 2**24 rows
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index d836ef3441e89..9f92d7cbd9657 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1205,6 +1205,7 @@ Numeric - Bug in :class:`DataFrame` with ``timedelta64[ns]`` dtype arithmetic operations with ``ndar...
- [X] closes #18271 - [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/23688
2018-11-14T07:27:34Z
2018-11-14T14:26:26Z
2018-11-14T14:26:25Z
2018-11-16T16:21:59Z
BUG: 'Unnamed' != unnamed column in CSV
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 007f5b7feb060..4ca65975605c3 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1359,6 +1359,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`read_csv()...
False criterion was causing errors when specified headers appeared to capture a seemingly unnamed row, just because they had the string "Unnamed" in it. Setup: ~~~python from pandas import read_csv from pandas.compat import StringIO data = "Unnamed,NotUnnamed\n0,1\n2,3\n4,5" read_csv(StringIO(data), header...
https://api.github.com/repos/pandas-dev/pandas/pulls/23687
2018-11-14T06:30:39Z
2018-11-16T14:02:13Z
2018-11-16T14:02:13Z
2020-02-27T22:45:47Z
BUG: Append DataFrame to Series with dateutil timezone
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 44c467795d1ed..7dac2d03514a6 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1372,6 +1372,7 @@ Reshaping - Bug in :func:`pandas.concat` when concatenating a multicolumn DataFrame with tz-aware da...
- [x] closes #23682 - [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/23685
2018-11-14T05:49:28Z
2018-11-15T13:26:46Z
2018-11-15T13:26:45Z
2018-12-14T18:12:11Z
TST: Test cleanup, parametrization for datetime64 arithmetic tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index 03e09175bdb09..479471332a274 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1,10 +1,12 @@ import importlib import os +from dateutil.tz import tzutc import hypothesis from hypothesis import strategies as st import numpy as np import pytest ...
Avoids overlap with #23642.
https://api.github.com/repos/pandas-dev/pandas/pulls/23681
2018-11-14T01:57:21Z
2018-11-16T16:23:46Z
2018-11-16T16:23:46Z
2018-11-16T17:27:18Z
DOC: Surface / doc mangle_dupe_cols in read_excel
diff --git a/pandas/io/excel.py b/pandas/io/excel.py index a7e0e48de0a75..3ce8953a6edb2 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -175,12 +175,16 @@ convert integral floats to int (i.e., 1.0 --> 1). If False, all numeric data will be read in as floats: Excel stores all numbers as floats ...
xref https://github.com/pandas-dev/pandas/issues/10523#issuecomment-438465073. We already support `mangle_dupe_cols` (in the same vein as CSV). It was just hidden in `**kwds`. This just documents it in `read_excel` (it behaves exactly as it does in `read_csv`) and tests that we inform the end user that `mangle_dup...
https://api.github.com/repos/pandas-dev/pandas/pulls/23678
2018-11-13T22:42:36Z
2018-11-14T12:59:24Z
2018-11-14T12:59:24Z
2018-11-14T17:58:20Z
REF/DEPR: DatetimeIndex constructor
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 2341187c40a9e..45630f8109932 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1503,6 +1503,83 @@ def maybe_convert_dtype(data, copy): return data, copy +def objects_to_datetime64ns(data, d...
This is preliminary to implementing DatetimeArray._from_sequence. The attempt to implement that directly (i.e. without existing circularity) failed, so trying it as a 2-parter. Similar to #23539, this deprecates the option of passing timedelta64 data to DatetimeIndex. There are a few places where I've made TODO ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23675
2018-11-13T21:10:02Z
2018-12-03T13:19:33Z
2018-12-03T13:19:33Z
2018-12-03T15:18:09Z
Fix errorbar visualization
diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst index 569a6fb7b7a0d..dd8ccfcfd28ac 100644 --- a/doc/source/visualization.rst +++ b/doc/source/visualization.rst @@ -1405,7 +1405,7 @@ Here is an example of one way to easily plot group means with standard deviation # Plot fig, ax = plt.sub...
- [x] closes #17467 - [ ] ~tests added / passed~ - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23674
2018-11-13T20:30:13Z
2018-11-14T13:04:33Z
2018-11-14T13:04:33Z
2018-11-14T13:04:42Z