Dataset Viewer
Auto-converted to Parquet Duplicate
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
clarified the documentation for DF.drop_duplicates
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 78c9f2aa96472..ade05ab27093e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4625,7 +4625,8 @@ def dropna(self, axis=0, how='any', thresh=None, subset=None, def drop_duplicates(self, subset=None, keep='first', inplace=False): ...
I hit an issue with a time series index where I wanted to keep duplicate data with different time values and only delete rows with the same time and columns. This documentation change would have saved me a lot of time. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py...
https://api.github.com/repos/pandas-dev/pandas/pulls/25056
2019-01-31T17:14:09Z
2019-02-01T18:24:37Z
2019-02-01T18:24:37Z
2019-02-02T14:50:36Z
Clarification of docstring for value_counts
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 58e1b2370c7c8..b23a0f10e9e2b 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -989,6 +989,36 @@ a single date rather than the entire array. os.remove('tmp.csv') + +.. _io.csv.mixed_timezones: + +Parsing...
- [ ] 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/25055
2019-01-31T17:05:55Z
2019-01-31T20:30:20Z
null
2019-01-31T20:30:20Z
Backport PR #25039 on branch 0.24.x (BUG: avoid usage in_qtconsole for recent IPython versions)
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 047404e93914b..521319c55a503 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -83,7 +83,7 @@ Bug Fixes **Other** -- +- Fixed AttributeError when printing a DataFrame's HTML repr after accessing...
Backport PR #25039: BUG: avoid usage in_qtconsole for recent IPython versions
https://api.github.com/repos/pandas-dev/pandas/pulls/25054
2019-01-31T16:03:27Z
2019-01-31T20:17:47Z
2019-01-31T20:17:47Z
2019-01-31T20:17:47Z
DEPR: remove PanelGroupBy, disable DataFrame.to_panel
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 09626be713c4f..a3fb1c575e7f1 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -51,7 +51,7 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
My understanding is that we're removing Panel in 0.25.0. A local attempt to do this all-at-once got messy quick (largely due to io.pytables and io.msgpack). This gets the ball rolling by removing only PanelGroupBy and DataFrame.to_panel, followed by all of the code+tests that rely on either of these.
https://api.github.com/repos/pandas-dev/pandas/pulls/25047
2019-01-31T03:50:28Z
2019-02-06T03:47:26Z
2019-02-06T03:47:26Z
2019-02-09T08:53:29Z
ENH: Support fold argument in Timestamp.replace
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index a9fa8b2174dd0..8e1fc352ba4f7 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -19,7 +19,7 @@ including other versions of pandas. Other Enhancements ^^^^^^^^^^^^^^^^^^ -- +- :meth:`Timestamp.repl...
- [x] closes #25017 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Since `Timestamp` has its own `replace` method, I think we can still introduce this while still supporting PY3.5 (`datetime.replace` gained the `fold` argument in 3.6) while it ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25046
2019-01-31T01:54:09Z
2019-02-01T18:40:56Z
2019-02-01T18:40:56Z
2019-02-01T18:51:05Z
PERF: use new to_records() argument in to_stata()
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 939fb8b9415bd..130477f588c26 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -23,14 +23,6 @@ Other Enhancements - - -.. _whatsnew_0250.performance: - -Performance Improvements -~~~~~~~~~~~~~~~~...
The `to_stata()` function spends ~25-50% of its time massaging string/different endian data and creating a `np.recarray` in a roundabout way. Using `column_dtypes` in `to_records()` allows some cleanup and for a decent performance bump: ``` $ asv compare upstream/master HEAD -s --sort ratio Benchmarks that have im...
https://api.github.com/repos/pandas-dev/pandas/pulls/25045
2019-01-30T23:41:47Z
2019-02-01T20:56:06Z
2019-02-01T20:56:06Z
2019-02-01T20:56:09Z
CLN: to_pickle internals
diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index 61295b8249f58..8f16f8154b952 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -201,7 +201,7 @@ def load_newobj_ex(self): pass -def load(fh, encoding=None, compat=False, is_verbose=False): +def ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/25044
2019-01-30T23:27:07Z
2019-02-01T18:50:36Z
2019-02-01T18:50:36Z
2019-02-01T18:51:56Z
Backport PR #24993 on branch 0.24.x (Test nested PandasArray)
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index 47517782e2bbf..791ff44303e96 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -222,7 +222,7 @@ def __getitem__(self, item): item = item._ndarray result = self._ndarray[item] - if ...
Backport PR #24993: Test nested PandasArray
https://api.github.com/repos/pandas-dev/pandas/pulls/25042
2019-01-30T21:18:28Z
2019-01-30T22:28:45Z
2019-01-30T22:28:45Z
2019-01-30T22:28:46Z
Backport PR #25033 on branch 0.24.x (BUG: Fixed merging on tz-aware)
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 57fdff041db28..047404e93914b 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -23,6 +23,7 @@ Fixed Regressions - Bug in :meth:`DataFrame.itertuples` with ``records`` orient raising an ``AttributeEr...
Backport PR #25033: BUG: Fixed merging on tz-aware
https://api.github.com/repos/pandas-dev/pandas/pulls/25041
2019-01-30T21:17:40Z
2019-01-30T22:27:20Z
2019-01-30T22:27:20Z
2019-01-30T22:27:20Z
BUG: to_clipboard text truncated for Python 3 on Windows for UTF-16 text
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index a9fa8b2174dd0..880eaed3b5dfb 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -163,6 +163,7 @@ MultiIndex I/O ^^^ +- Fixed bug in missing text when using :meth:`to_clipboard` if copying utf-16 c...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry For windows users where Python is compiled with UCS-4 (Python 3 primarily), tables copied to clipboard are missing data from the end when there are any unicode characters in the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25040
2019-01-30T21:17:08Z
2019-02-01T20:53:57Z
2019-02-01T20:53:56Z
2019-02-01T20:53:59Z
BUG: avoid usage in_qtconsole for recent IPython versions
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 047404e93914b..521319c55a503 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -83,7 +83,7 @@ Bug Fixes **Other** -- +- Fixed AttributeError when printing a DataFrame's HTML repr after accessing...
I've verified this manually with qtconsole 4.4.0, but if others want to check that'd be helpful. ![screen shot 2019-01-30 at 2 22 06 pm](https://user-images.githubusercontent.com/1312546/52010178-794a8080-249a-11e9-9376-a9254ce6bbf9.png) What release should this be done in? 0.24.1, 0.24.2 or 0.25.0? Closes htt...
https://api.github.com/repos/pandas-dev/pandas/pulls/25039
2019-01-30T20:23:35Z
2019-01-31T16:02:38Z
2019-01-31T16:02:37Z
2019-01-31T16:02:38Z
DOC: fix error in documentation #24981
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 953f40d1afebe..2c2e5c5425216 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -15,7 +15,7 @@ steps: Out of these, the split step is the most straightforward. In fact, in many situations ...
Added "do" in the last sentence of the second paragraph. - [ ] 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/25038
2019-01-30T20:06:46Z
2019-01-30T21:56:44Z
2019-01-30T21:56:44Z
2019-01-30T21:56:47Z
DOC: Example from docstring was proposing wrong interpolation order
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index a351233a77465..cff685c2ad7cb 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6601,7 +6601,7 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None, 'barycentric', 'polynomial': Passed to ...
Currently doctring explaining interpolation proposes using polynomial interpolation with order equal to 4. Unfortunately, scipy does not allow that value to be used, throwing an ValueError from here: https://github.com/scipy/scipy/blob/5875fd397eb4e6adcfa0c65f7b9006424c066cb0/scipy/interpolate/_bsplines.py#L583 Lookin...
https://api.github.com/repos/pandas-dev/pandas/pulls/25035
2019-01-30T17:55:28Z
2019-01-31T12:25:55Z
2019-01-31T12:25:55Z
2019-01-31T12:25:57Z
BUG: Fixed merging on tz-aware
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 57fdff041db28..047404e93914b 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -23,6 +23,7 @@ Fixed Regressions - Bug in :meth:`DataFrame.itertuples` with ``records`` orient raising an ``AttributeEr...
Closes https://github.com/pandas-dev/pandas/issues/25014
https://api.github.com/repos/pandas-dev/pandas/pulls/25033
2019-01-30T16:05:41Z
2019-01-30T21:17:31Z
2019-01-30T21:17:31Z
2019-01-30T21:17:35Z
(Closes #25029) Removed extra bracket from cheatsheet code example.
diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf index 696ed288cf7a6..d50896dc5ccc5 100644 Binary files a/doc/cheatsheet/Pandas_Cheat_Sheet.pdf and b/doc/cheatsheet/Pandas_Cheat_Sheet.pdf differ diff --git a/doc/cheatsheet/Pandas_Cheat_Sheet.pptx b/doc/cheatsheet/Pandas_Cheat_S...
Closes #25029 There was an additional bracket present under the "Create DataFrame with a MultiIndex" code example. I removed this in both the English and Japanese versions of the cheatsheet.
https://api.github.com/repos/pandas-dev/pandas/pulls/25032
2019-01-30T15:58:02Z
2019-02-09T17:26:39Z
2019-02-09T17:26:39Z
2019-02-09T17:26:42Z
ENH: Support index=True for io.sql.get_schema
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 222963a7ff71a..0923b05d41479 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -31,7 +31,6 @@ Fixed Regressions Enhancements ^^^^^^^^^^^^ - .. _whatsnew_0241.bug_fixes: Bug Fixes diff --git a...
Closes pandas-dev/pandas#9084 - Decided to keep the default as `index=False` to keep the API consistent. `to_sql` has `index=True`. - Tempted to name the parameter `include_dataframe_index` as "index" has a different meaning in a SQL context. - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25030
2019-01-30T15:46:49Z
2019-05-03T05:37:19Z
null
2019-05-03T05:37:20Z
CLN: typo fixups
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 3147f36dcc835..eb511b1adb28a 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -18,7 +18,6 @@ cnp.import_array() cimport pandas._libs.util as util -util.import_array() from pandas._libs.hashtable cimport Int64Vector...
Also edit DatetimeLikeBlockMixin.get_values to be much simpler.
https://api.github.com/repos/pandas-dev/pandas/pulls/25028
2019-01-30T14:57:35Z
2019-01-31T12:27:49Z
2019-01-31T12:27:49Z
2020-04-05T17:36:54Z
DOC: 0.24.1 whatsnew
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index 51487c0d325b5..df2a29a76f3c5 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -39,7 +39,7 @@ See the :ref:`overview` for more detail about what's in the library. {% endif %} {% if not single_doc -%}...
This PR has the documentation changes that are just for 0.24.x. I'll have another PR later with changes to 0.24.1.rst that should go to master first, before being backported.
https://api.github.com/repos/pandas-dev/pandas/pulls/25027
2019-01-30T14:52:06Z
2019-02-01T20:09:00Z
2019-02-01T20:09:00Z
2019-02-01T20:09:03Z
DOC: Start 0.24.2.rst
diff --git a/doc/source/whatsnew/v0.24.2.rst b/doc/source/whatsnew/v0.24.2.rst new file mode 100644 index 0000000000000..cba21ce7ee1e6 --- /dev/null +++ b/doc/source/whatsnew/v0.24.2.rst @@ -0,0 +1,99 @@ +:orphan: + +.. _whatsnew_0242: + +Whats New in 0.24.2 (February XX, 2019) +--------------------------------------- ...
[ci skip]
https://api.github.com/repos/pandas-dev/pandas/pulls/25026
2019-01-30T14:18:55Z
2019-02-01T12:27:16Z
2019-02-01T12:27:16Z
2019-02-01T12:27:16Z
Backport PR #24961 on branch 0.24.x (fix+test to_timedelta('NaT', box=False))
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 8f4c3982c745f..82885f851e86b 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -65,7 +65,7 @@ Bug Fixes - **Timedelta** - +- Bug in :func:`to_timedelta` with `box=False` incorrectly returning a `...
Backport PR #24961: fix+test to_timedelta('NaT', box=False)
https://api.github.com/repos/pandas-dev/pandas/pulls/25025
2019-01-30T12:43:22Z
2019-01-30T13:18:39Z
2019-01-30T13:18:39Z
2019-01-30T13:20:24Z
REGR: fix read_sql delegation for queries on MySQL/pymysql
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 828c35c10e958..defb84f438e3a 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -22,6 +22,7 @@ Fixed Regressions - Bug in :meth:`DataFrame.itertuples` with ``records`` orient raising an ``Attribute...
Closes #24988, see discussion there regarding lack of test.
https://api.github.com/repos/pandas-dev/pandas/pulls/25024
2019-01-30T09:49:43Z
2019-01-31T21:24:58Z
2019-01-31T21:24:57Z
2019-01-31T21:24:58Z
BUG: to_datetime(strs, utc=True) used previous UTC offset
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 867007b2ba7f5..24e3b42859416 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -103,7 +103,7 @@ Timedelta Timezones ^^^^^^^^^ -- +- Bug in :func:`to_datetime` with ``utc=True`` and datetime strin...
- [x] closes #24992 - [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/25020
2019-01-30T07:04:27Z
2019-01-31T12:29:33Z
2019-01-31T12:29:32Z
2019-01-31T15:59:28Z
CLN: do not use .repeat asv setting for storing benchmark data
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index e9f2727f64e15..b5b2c955f0133 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -102,10 +102,10 @@ def setup(self, repeats): N = 10**5 self.s = Series(tm.makeStringIndex(N)) ...
`asv` uses `.repeat` to specify the number of times a benchmark should be repeated; our `strings.Replace` benchmark inadvertently uses this to store benchmark data. This doesn't cause issues until after the first parameter: ``` [ 99.87%] ··· strings.Repeat.time_repeat ...
https://api.github.com/repos/pandas-dev/pandas/pulls/25015
2019-01-29T23:21:55Z
2019-01-30T05:48:52Z
2019-01-30T05:48:52Z
2019-01-30T05:48:59Z
Backport PR #24967 on branch 0.24.x (REGR: Preserve order by default in Index.difference)
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 8f4c3982c745f..828c35c10e958 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -22,6 +22,7 @@ Fixed Regressions - Bug in :meth:`DataFrame.itertuples` with ``records`` orient raising an ``Attribute...
Backport PR #24967: REGR: Preserve order by default in Index.difference
https://api.github.com/repos/pandas-dev/pandas/pulls/25013
2019-01-29T21:43:34Z
2019-01-30T12:50:04Z
2019-01-30T12:50:04Z
2019-01-30T12:50:04Z
BUG-24212 fix when other_index has incompatible dtype
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index b2a379d9fe6f5..bb7fdf97c9383 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -399,7 +399,7 @@ Reshaping ^^^^^^^^^ - Bug in :func:`pandas.merge` adds a string of ``None``, if ``None`` is assigne...
- [X] closes #25001 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Followup to #24916, addresses the case when the other index has an incompatible dtype, so we cannot take directly from it. Currently, this PR ~naively replaces the missing index...
https://api.github.com/repos/pandas-dev/pandas/pulls/25009
2019-01-29T19:32:15Z
2019-05-05T21:21:55Z
2019-05-05T21:21:55Z
2019-05-05T21:22:00Z
require Return section only if return is not None nor commentary
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index bb58449843096..6f78b91653a3f 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -229,6 +229,27 @@ def good_imports(self): """ pass + def ...
- [ ] closes #23488 Updated return lookup at source in validate_docstrings.py: - ignore "return None" - ignore empty return - ignore the word "return" on commentaries Updated test_validate_docstrings.py: - added a test which contains the "returns" listed above and has a valid docstring with no Return section
https://api.github.com/repos/pandas-dev/pandas/pulls/25008
2019-01-29T18:23:09Z
2019-03-11T12:02:05Z
2019-03-11T12:02:04Z
2019-03-11T12:02:05Z
API: Change default for Index.union sort
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 047404e93914b..948350df140eb 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -15,10 +15,84 @@ Whats New in 0.24.1 (February XX, 2019) These are the changes in pandas 0.24.1. See :ref:`release` for...
Closes https://github.com/pandas-dev/pandas/issues/24959 Haven't done MultiIndex yet, just opening for discussion on *if* we should do this for 0.24.1.
https://api.github.com/repos/pandas-dev/pandas/pulls/25007
2019-01-29T18:02:12Z
2019-02-04T22:12:40Z
null
2019-02-04T22:12:43Z
Backport PR #24973: fix for BUG: grouping with tz-aware: Values falls…
diff --git a/doc/source/whatsnew/v0.24.1.rst b/doc/source/whatsnew/v0.24.1.rst index 7647e199030d2..8f4c3982c745f 100644 --- a/doc/source/whatsnew/v0.24.1.rst +++ b/doc/source/whatsnew/v0.24.1.rst @@ -70,6 +70,9 @@ Bug Fixes - - +**Reshaping** + +- Bug in :meth:`DataFrame.groupby` with :class:`Grouper` when there i...
… after last bin
https://api.github.com/repos/pandas-dev/pandas/pulls/25005
2019-01-29T16:12:28Z
2019-01-29T16:46:52Z
2019-01-29T16:46:52Z
2019-01-29T16:46:56Z
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
93