title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
DOC: Remove quasi-non-public parts of Index API from API docs | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 4ecde7e05256a..c442f2c48cd81 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -972,31 +972,31 @@ used before calling these methods directly.**
Index
-Modifying and Computations
-~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Set Operations
+~~~~~~~~~~~~~~
..... | We added some notes on Index to the API Reference that probably
shouldn't be there at all, since they're not meant for public
consumption or not documented. I've slimmed down the methods to set
ops, copy, metadata (i.e. names) and a few of the DatetimeIndex methods.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5621 | 2013-11-30T16:10:11Z | 2014-02-18T20:05:24Z | null | 2014-06-15T18:49:12Z |
RLS: first release candidate for v0.13 | diff --git a/setup.py b/setup.py
index 44229fa64d4cd..cf9d036f1b1ff 100755
--- a/setup.py
+++ b/setup.py
@@ -189,11 +189,11 @@ def build_extensions(self):
]
MAJOR = 0
-MINOR = 12
+MINOR = 13
MICRO = 0
-ISRELEASED = False
+ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
-QUALIFIER = ''
+QUALIFIER = ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5617 | 2013-11-29T18:10:35Z | 2013-11-29T20:53:06Z | 2013-11-29T20:53:06Z | 2014-07-16T08:42:08Z | |
DOC: SQL to pandas comparison (#4524) | diff --git a/doc/source/comparison_with_sql.rst b/doc/source/comparison_with_sql.rst
new file mode 100644
index 0000000000000..3d8b85e9460c4
--- /dev/null
+++ b/doc/source/comparison_with_sql.rst
@@ -0,0 +1,380 @@
+.. currentmodule:: pandas
+.. _compare_with_sql:
+
+Comparison with SQL
+********************
+Since many... | @jtratner I was a little slower moving on this than I'd hoped, but it's a pretty good start.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5615 | 2013-11-29T06:15:33Z | 2013-12-07T00:40:20Z | 2013-12-07T00:40:20Z | 2014-06-17T19:04:21Z |
BUG: repr formating to use iloc rather than getitem for element access (GH5605) | diff --git a/pandas/core/format.py b/pandas/core/format.py
index cc6f5bd516a19..8bc74f2ff4c08 100644
--- a/pandas/core/format.py
+++ b/pandas/core/format.py
@@ -284,6 +284,7 @@ def __init__(self, frame, buf=None, columns=None, col_space=None,
self.line_width = line_width
self.max_rows = max_rows
... | closes #5605
| https://api.github.com/repos/pandas-dev/pandas/pulls/5606 | 2013-11-28T02:33:38Z | 2013-11-28T03:19:25Z | 2013-11-28T03:19:24Z | 2014-07-04T06:16:27Z |
Expand groupby dispatch whitelist (GH5480) | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index c635baa0e2739..7a7fe32963457 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -50,13 +50,30 @@
# forwarding methods from NDFrames
_plotting_methods = frozenset(['plot', 'boxplot', 'hist'])
-_apply_whitelist = frozenset(['last', 'f... | (and create a groupby dispatch blacklist)
closes #5480.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5604 | 2013-11-28T00:56:41Z | 2013-12-07T14:16:56Z | 2013-12-07T14:16:56Z | 2014-07-06T11:29:07Z |
ENH: Added method to pandas.data.Options to download all option data for... | diff --git a/doc/source/release.rst b/doc/source/release.rst
index fb2c24acff30d..da6c46ce37a94 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -55,6 +55,10 @@ performance improvements along with a large number of bug fixes.
Highlights include:
+Experimental Features
+~~~~~~~~~~~~~~~~~~~~~
+- `... | ... a ticker.
Also added a few helper functions. These functions could be applied to refactor some of the other methods.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5602 | 2013-11-27T20:55:58Z | 2014-06-17T14:44:30Z | 2014-06-17T14:44:30Z | 2014-06-17T15:56:36Z |
TST/API: test the list of NA values in the csv parser. add N/A, #NA as independent default values (GH5521) | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 0f34e94084878..a6f022d85272e 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -564,7 +564,7 @@ the corresponding equivalent values will also imply a missing value (in this cas
``[5.0,5]`` are recognized as ``NaN``.
To completely override the default ... | closes #5521
| https://api.github.com/repos/pandas-dev/pandas/pulls/5601 | 2013-11-27T19:18:20Z | 2013-11-27T19:56:34Z | 2013-11-27T19:56:34Z | 2014-06-24T17:42:26Z |
BUG: replace with a scalar works like a list of to_replace for compat with 0.12 (GH5319) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5ab5e9063a2c5..09d7c1ae9a415 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -41,6 +41,10 @@ def is_dictlike(x):
def _single_replace(self, to_replace, method, inplace, limit):
+ if self.ndim != 1:
+ raise TypeError('ca... | closes #5319
Essentitally this is `ffill`
```
In [1]: Series([1,np.nan,2]).replace([np.nan])
Out[1]:
0 1
1 1
2 2
dtype: float64
In [2]: Series([1,np.nan,2]).replace(np.nan)
Out[2]:
0 1
1 1
2 2
dtype: float64
```
A bit confusing on a Frame, so raise an error
```
In [3]: DataFrame(randn(5,2)).rep... | https://api.github.com/repos/pandas-dev/pandas/pulls/5600 | 2013-11-27T17:50:11Z | 2013-12-01T20:00:10Z | 2013-12-01T20:00:10Z | 2014-06-14T11:01:36Z |
DOC: limit code snippet output to max_rows=15 | diff --git a/doc/source/10min.rst b/doc/source/10min.rst
index 85aafd6787f16..90198fa48bcb4 100644
--- a/doc/source/10min.rst
+++ b/doc/source/10min.rst
@@ -13,6 +13,7 @@
import pandas as pd
np.set_printoptions(precision=4, suppress=True)
options.display.mpl_style='default'
+ options.display.max_rows=15
... | Most noticable in timeseries chapter.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5599 | 2013-11-27T16:03:07Z | 2013-11-27T16:03:16Z | 2013-11-27T16:03:16Z | 2014-07-16T08:41:43Z |
TST: dtype issue in test_groupby.py on windows (GH5595) | diff --git a/pandas/tests/test_groupby.py b/pandas/tests/test_groupby.py
index 51f608e20c738..d9bdc3adcd041 100644
--- a/pandas/tests/test_groupby.py
+++ b/pandas/tests/test_groupby.py
@@ -323,7 +323,7 @@ def func(dataf):
# GH5592
# inconcistent return type
df = DataFrame(dict(A = [ 'Tiger', ... | closes #5595
| https://api.github.com/repos/pandas-dev/pandas/pulls/5598 | 2013-11-27T12:55:23Z | 2013-11-27T13:28:17Z | 2013-11-27T13:28:17Z | 2014-07-09T19:32:06Z |
Add image for whatsnew docs | diff --git a/doc/source/_static/df_repr_truncated.png b/doc/source/_static/df_repr_truncated.png
new file mode 100644
index 0000000000000..8f60270358761
Binary files /dev/null and b/doc/source/_static/df_repr_truncated.png differ
| This should have been in PR #5550, but the directory is gitignored, and I missed it.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5594 | 2013-11-26T23:16:56Z | 2013-11-27T18:31:42Z | 2013-11-27T18:31:42Z | 2014-06-27T12:06:24Z |
BUG: Bug in groupby returning non-consistent types when user function returns a None, (GH5992) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index ccc34a4051508..9c448aa7083c8 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -814,6 +814,7 @@ Bug Fixes
- Bug in delitem on a Series (:issue:`5542`)
- Bug fix in apply when using custom function and objects are not mutated (:is... | closes #5592
| https://api.github.com/repos/pandas-dev/pandas/pulls/5593 | 2013-11-26T19:22:51Z | 2013-11-26T19:49:55Z | 2013-11-26T19:49:55Z | 2014-06-21T12:52:16Z |
PERF: perf enhancements in indexing/query/eval | diff --git a/pandas/computation/align.py b/pandas/computation/align.py
index 233f2b61dc463..b61169e1f55e0 100644
--- a/pandas/computation/align.py
+++ b/pandas/computation/align.py
@@ -151,7 +151,8 @@ def _align_core(terms):
f = partial(ti.reindex_axis, reindexer, axis=axis,
... | perf improvement in eval/query (and general take-like indexing)
```
In [1]: N = 1000000
In [2]: df = DataFrame({'a': np.random.randn(N)})
In [3]: min_val = df['a'].min()
In [4]: max_val = df['a'].max()
```
current master: 66980c68d188842b1c4d80d3508f539baab3cbe8
```
In [5]: %timeit df.query('(a >= min_val) & (a <... | https://api.github.com/repos/pandas-dev/pandas/pulls/5590 | 2013-11-26T14:09:14Z | 2013-11-26T14:28:18Z | 2013-11-26T14:28:18Z | 2014-07-16T08:41:34Z |
BUG: to_html doesn't truncate index to max_rows before formatting | diff --git a/pandas/core/format.py b/pandas/core/format.py
index 1ca68b8d47e09..cc6f5bd516a19 100644
--- a/pandas/core/format.py
+++ b/pandas/core/format.py
@@ -819,14 +819,14 @@ def _write_body(self, indent):
def _write_regular_rows(self, fmt_values, indent, truncated):
ncols = min(len(self.columns), s... | @takluyver, missed an O(N) there.
#5588
| https://api.github.com/repos/pandas-dev/pandas/pulls/5589 | 2013-11-26T12:39:53Z | 2013-11-26T12:55:50Z | 2013-11-26T12:55:50Z | 2014-06-24T12:51:13Z |
Fix typo | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 83e26d83a9363..bfae9638f5377 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -1115,7 +1115,7 @@ Localization of Timestamps functions just like DatetimeIndex and TimeSeries:
rng[5].tz_localize('Asia/Shanghai')
-Ope... | While I know timezone conversion might be difficult, I think you mean different here :smile:
| https://api.github.com/repos/pandas-dev/pandas/pulls/5587 | 2013-11-25T19:12:21Z | 2013-11-25T19:18:40Z | 2013-11-25T19:18:40Z | 2014-07-12T13:20:39Z |
BUG/TST: reset setitem_copy on object enlargement | diff --git a/pandas/computation/tests/test_eval.py b/pandas/computation/tests/test_eval.py
index f2d75d3fd21c5..cfbd9335ef9a0 100644
--- a/pandas/computation/tests/test_eval.py
+++ b/pandas/computation/tests/test_eval.py
@@ -1,6 +1,5 @@
#!/usr/bin/env python
-import unittest
import functools
from itertools import ... | related #5581
closes #5597
| https://api.github.com/repos/pandas-dev/pandas/pulls/5584 | 2013-11-25T14:12:59Z | 2013-11-29T19:13:20Z | 2013-11-29T19:13:20Z | 2014-06-19T16:10:09Z |
ENH: Excel writer takes locale setting for date and datetime into account | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 2153c50155ad0..37e2f3357acd9 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -53,6 +53,9 @@ pandas 0.13.1
New features
~~~~~~~~~~~~
+ - Added ``date_format`` and ``datetime_format`` attribute to ExcelWriter.
+ (:issue:`4133`)... | closes #4133
Based on the locale setting the date and datetime values are formatted in
excel exports. Moreover the this behaviour can be overruled by keyword
arguments. Old behavior can be enforced by
ExcelWriter(file, date_format='YYYY-MM-DD', datetime_format='YYYY-MM-DD HH:MM:SS')
| https://api.github.com/repos/pandas-dev/pandas/pulls/5583 | 2013-11-25T12:45:46Z | 2014-01-26T18:58:10Z | null | 2014-06-27T10:05:29Z |
CLN/BUG: Fix stacklevel on setting with copy warning. | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index b57c353fff566..5be71afc18663 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1015,8 +1015,11 @@ def _setitem_copy(self, copy):
self._is_copy = copy
return self
- def _check_setitem_copy(self):
- """ val... | May not be perfect, but gets us most of the way there. Resolves [@TomAugspurger's comment](https://github.com/pydata/pandas/pull/5390#issuecomment-29166038) on #5390.
Put the following in a file called `test.py`.
``` python
from pandas import DataFrame
def myfunction():
df = DataFrame({"A": [1, 2, 3, 4, 5], "B": ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5581 | 2013-11-24T21:22:48Z | 2013-11-24T22:43:43Z | 2013-11-24T22:43:42Z | 2014-07-16T08:41:24Z |
BUG: Add separate import for numpy.ma.mrecords (GH5577) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6a1ecfed15896..d84c0dd9ea5f7 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -200,9 +200,9 @@ def __init__(self, data=None, index=None, columns=None, dtype=None,
elif isinstance(data, dict):
mgr = self._init_dict(data, ... | Fixes https://github.com/pydata/pandas/issues/5577
| https://api.github.com/repos/pandas-dev/pandas/pulls/5579 | 2013-11-23T19:06:48Z | 2013-11-24T01:08:16Z | 2013-11-24T01:08:16Z | 2014-06-26T19:33:48Z |
Win32 fix2 | diff --git a/pandas/io/tests/test_excel.py b/pandas/io/tests/test_excel.py
index 465d51cab2599..861f3a785ce22 100644
--- a/pandas/io/tests/test_excel.py
+++ b/pandas/io/tests/test_excel.py
@@ -488,7 +488,7 @@ def test_int_types(self):
frame.to_excel(path, 'test1')
reader = ExcelFile(pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/5574 | 2013-11-22T22:42:13Z | 2013-11-22T23:30:13Z | 2013-11-22T23:30:13Z | 2014-06-19T00:06:19Z | |
DOC/TST: Series.reorder_levels() can take names; added tests | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d84c0dd9ea5f7..e1dafc60e64d8 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2794,9 +2794,9 @@ def reorder_levels(self, order, axis=0):
Parameters
----------
- order : list of int
+ order : list of int or l... | Minor change to the docstring. It said you must refer to the position (not keys). Keys work:
``` python
In [18]: res.head()
Out[18]:
same_employer stamp
-3 1996-02-01 2
-2 1996-01-01 1
1996-02-01 1
1996-03-01 4
1 1996... | https://api.github.com/repos/pandas-dev/pandas/pulls/5573 | 2013-11-22T21:54:25Z | 2013-11-24T07:31:28Z | 2013-11-24T07:31:28Z | 2016-11-03T12:37:34Z |
PERF: slow conversion of single series to data frame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5e617671f5c49..a031b0550c734 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4575,7 +4575,7 @@ def extract_index(data):
def _prep_ndarray(values, copy=True):
- if not isinstance(values, np.ndarray):
+ if not isinstance(values, (n... | ```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
frame_from_series | 0.1043 | 17.8473 | 0.00... | https://api.github.com/repos/pandas-dev/pandas/pulls/5568 | 2013-11-21T21:42:56Z | 2013-11-21T21:44:06Z | 2013-11-21T21:44:06Z | 2014-06-23T14:23:49Z |
TST/API/BUG: resolve scoping issues in pytables query where rhs is a compound selection or scoped variable | diff --git a/pandas/computation/expr.py b/pandas/computation/expr.py
index 4c6ea3ecdae7d..bcb5570eae1fc 100644
--- a/pandas/computation/expr.py
+++ b/pandas/computation/expr.py
@@ -125,6 +125,10 @@ def __init__(self, gbls=None, lcls=None, level=1, resolvers=None,
self.globals['True'] = True
self.globa... | e.g. 'l1=selection.index' and 'l1=l', where l = selection.index were failing
example reproduced here:
http://stackoverflow.com/questions/20111542/selecting-rows-from-an-hdfstore-given-list-of-indexes
```
In [5]: parms = DataFrame({ 'A' : [1,1,2,2,3] })
In [6]: parms
Out[6]:
A
0 1
1 1
2 2
3 2
4 3
In [7]: pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/5566 | 2013-11-21T14:24:45Z | 2013-11-21T15:07:41Z | 2013-11-21T15:07:41Z | 2014-07-16T08:41:13Z |
ENH: short-circuit config lookup when exact key given GH5147 | diff --git a/pandas/core/config.py b/pandas/core/config.py
index ac48232ec618f..bb591947d21de 100644
--- a/pandas/core/config.py
+++ b/pandas/core/config.py
@@ -512,6 +512,11 @@ def _select_options(pat):
if pat=="all", returns all registered options
"""
+ # short-circuit for exact key
+ if pat in _reg... | Related #5147, #5457
before
```
In [4]: %timeit -r 10 pd.get_option("display.max_rows")
10000 loops, best of 10: 53.3 us per loop
```
after
```
In [1]: %timeit -r 10 pd.get_option("display.max_rows")
100000 loops, best of 10: 5.5 us per loop
```
jeff's version with no error checking or rerouting deprecated keys
... | https://api.github.com/repos/pandas-dev/pandas/pulls/5565 | 2013-11-21T13:21:48Z | 2013-11-21T13:22:16Z | 2013-11-21T13:22:16Z | 2014-06-26T05:41:17Z |
ENH: Add wide_to_long convenience function | diff --git a/doc/source/v0.13.0.txt b/doc/source/v0.13.0.txt
index a39e415abe519..ea6e300906da9 100644
--- a/doc/source/v0.13.0.txt
+++ b/doc/source/v0.13.0.txt
@@ -615,6 +615,23 @@ Enhancements
ser = Series([1, 3, np.nan, np.nan, np.nan, 11])
ser.interpolate(limit=2)
+- Added ``wide_to_long`` panel data co... | closes #4920
I thought I submitted this PR long ago.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5564 | 2013-11-21T12:46:25Z | 2013-12-07T14:15:52Z | 2013-12-07T14:15:52Z | 2014-06-30T21:46:37Z |
DOC: styling clean-up of docstrings (part 1, frame.py) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a031b0550c734..6a1ecfed15896 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -170,11 +170,11 @@ class DataFrame(NDFrame):
See also
--------
- DataFrame.from_records: constructor from tuples, also record arrays
- DataFrame.f... | Some stylistic clean-up of the docstrings in frame.py.
Things changed are mainly:
- missing spaces aroung the `:` in `param : type`
- explanation of param on second line (instead of on the same line -> there should be the type info)
- add bullets to enumerations of possible values of a keyword (so they are rendered as... | https://api.github.com/repos/pandas-dev/pandas/pulls/5560 | 2013-11-20T21:25:18Z | 2013-11-23T10:10:45Z | 2013-11-23T10:10:45Z | 2014-06-23T21:39:28Z |
DOC version added 0.13 to cumcount | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 03919caf6d101..705db807ddf8f 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -709,6 +709,8 @@ can be used as group keys. If so, the order of the levels will be preserved:
Enumerate group items
~~~~~~~~~~~~~~~~~~~~~
+.. versionadd... | @jreback is this what you mean? #4646
| https://api.github.com/repos/pandas-dev/pandas/pulls/5559 | 2013-11-20T21:12:41Z | 2013-11-20T21:15:16Z | 2013-11-20T21:15:16Z | 2014-06-14T21:14:01Z |
BUG: repr of series fails repr in the presence of a Float64Index that is not monotonic (GH5557) | diff --git a/pandas/core/series.py b/pandas/core/series.py
index cf704e9aef174..9a2eb9da3a6a4 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -870,12 +870,12 @@ def _tidy_repr(self, max_vals=20):
Internal function, should always return unicode string
"""
num = max_vals // 2
... | closes #5557
```
In [4]: s.value_counts()
Out[4]:
0 85
70 3
78 3
2584 1
3001 1
734 1
163 1
3374 1
9643 1
42 1
8172 1
931 1
802 1
67744 1
2716 1
...
775 1
36605 1
1630 1
605 1
347 1
729 1
88 1
854 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5558 | 2013-11-20T19:52:12Z | 2013-11-20T20:15:58Z | 2013-11-20T20:15:58Z | 2014-06-12T14:46:25Z |
BUG: Bug in selecting from a non-unique index with loc (GH5553) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 1642324172e3b..ccc34a4051508 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -813,6 +813,7 @@ Bug Fixes
- Bug in getitem with a multi-index and ``iloc`` (:issue:`5528`)
- Bug in delitem on a Series (:issue:`5542`)
- Bug fix ... | closes #5553
| https://api.github.com/repos/pandas-dev/pandas/pulls/5555 | 2013-11-20T15:25:57Z | 2013-11-20T16:07:05Z | 2013-11-20T16:07:05Z | 2014-07-16T08:41:04Z |
BUG: Bug fix in apply when using custom function and objects are not mutated (GH5545) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6ba31fbc61a05..1642324172e3b 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -812,6 +812,7 @@ Bug Fixes
length to the indexer (:issue:`5508`)
- Bug in getitem with a multi-index and ``iloc`` (:issue:`5528`)
- Bug in delite... | closes #5545
| https://api.github.com/repos/pandas-dev/pandas/pulls/5554 | 2013-11-20T14:08:02Z | 2013-11-20T14:28:49Z | 2013-11-20T14:28:49Z | 2014-06-22T05:16:05Z |
HTML (and text) reprs for large dataframes. | diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst
index 08ef25b178af9..828797deff5cf 100644
--- a/doc/source/dsintro.rst
+++ b/doc/source/dsintro.rst
@@ -573,8 +573,9 @@ indexing semantics are quite different in places from a matrix.
Console display
~~~~~~~~~~~~~~~
-For very large DataFrame objects, only... | As discussed in #4886, the HTML representation of DataFrames currently starts off as a table, but switches to the condensed info view if the table exceeds a certain size (by default, more than 60 rows or 20 columns). I've seen this confusing users, who think that they suddenly have a completely different kind of object... | https://api.github.com/repos/pandas-dev/pandas/pulls/5550 | 2013-11-19T19:49:46Z | 2013-11-26T01:04:01Z | 2013-11-26T01:04:01Z | 2014-06-12T17:07:25Z |
DOC: mention new to_clipboard/paste into excel capability in release docs | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 4a4726c78a677..6ba31fbc61a05 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -57,6 +57,8 @@ New features
the bandwidth, and to gkde.evaluate() to specify the indicies at which it
is evaluated, respecttively. See scipy docs.... | https://api.github.com/repos/pandas-dev/pandas/pulls/5548 | 2013-11-19T11:52:13Z | 2013-11-19T11:52:30Z | 2013-11-19T11:52:30Z | 2014-07-16T08:40:50Z | |
DOC: Fixing a good number of spelling mistakes in 0.13 release notes | diff --git a/doc/source/v0.13.0.txt b/doc/source/v0.13.0.txt
index 70fc0572ad8fb..2d01f1fb49942 100644
--- a/doc/source/v0.13.0.txt
+++ b/doc/source/v0.13.0.txt
@@ -49,10 +49,10 @@ API changes
index = index.set_levels([[1, 2, 3, 4], [1, 2, 4, 4]])
# similarly, for names, you can rename the object
- ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5547 | 2013-11-19T10:58:32Z | 2013-11-19T23:36:10Z | 2013-11-19T23:36:10Z | 2014-07-16T08:40:49Z | |
BUG: Bug in delitem on a Series (GH5542) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 8d39db39ad4a6..4a4726c78a677 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -809,6 +809,7 @@ Bug Fixes
- Fixed various setitem with 1d ndarray that does not have a matching
length to the indexer (:issue:`5508`)
- Bug in g... | closes #5542
| https://api.github.com/repos/pandas-dev/pandas/pulls/5544 | 2013-11-19T01:00:56Z | 2013-11-19T01:49:54Z | 2013-11-19T01:49:54Z | 2014-06-23T11:03:02Z |
TST: fix cumcount test on 32-bit env | diff --git a/pandas/tests/test_groupby.py b/pandas/tests/test_groupby.py
index 9df5541615cee..da20dadb062fc 100644
--- a/pandas/tests/test_groupby.py
+++ b/pandas/tests/test_groupby.py
@@ -2574,7 +2574,7 @@ def test_cumcount_empty(self):
ge = DataFrame().groupby()
se = Series().groupby()
- e ... | Fix `test_groupby.test_cumcount_empty()` on 32-bit platforms by specifying expected dtype of 'int64'.
```
======================================================================
FAIL: test_cumcount_empty (pandas.tests.test_groupby.TestGroupBy)
----------------------------------------------------------------------
Trace... | https://api.github.com/repos/pandas-dev/pandas/pulls/5540 | 2013-11-18T01:29:16Z | 2013-11-18T01:48:18Z | 2013-11-18T01:48:18Z | 2014-06-12T16:56:31Z |
TST: correctly predict locale setability | diff --git a/pandas/tools/tests/test_util.py b/pandas/tools/tests/test_util.py
index 614f5ecc39e9d..66ae52983b692 100644
--- a/pandas/tools/tests/test_util.py
+++ b/pandas/tools/tests/test_util.py
@@ -65,7 +65,7 @@ def test_set_locale(self):
enc = codecs.lookup(enc).name
new_locale = lang, enc
- ... | Don't join the lang and encoding when performing the trial set, because
```
locale.setlocale(locale.LC_ALL, ('it_CH', 'utf-8'))
```
succeeds, but
```
locale.setlocale(locale.LC_ALL, 'it_CH.utf-8')
```
throws locale.Error.
Closes #5537.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5538 | 2013-11-17T14:24:40Z | 2013-11-17T15:00:14Z | 2013-11-17T15:00:14Z | 2014-06-19T22:50:55Z |
ENH nlargest and nsmallest Series methods | diff --git a/doc/source/v0.13.1.txt b/doc/source/v0.13.1.txt
index b48f555f9691a..557abfc48a023 100644
--- a/doc/source/v0.13.1.txt
+++ b/doc/source/v0.13.1.txt
@@ -128,6 +128,7 @@ API changes
import pandas.core.common as com
com.array_equivalent(np.array([0, np.nan]), np.array([0, np.nan]))
np.arr... | closes #3960.
_Implemented using kth_largest, could cython using better algo later._
| https://api.github.com/repos/pandas-dev/pandas/pulls/5534 | 2013-11-17T10:10:29Z | 2014-05-13T14:29:21Z | null | 2014-06-16T20:51:36Z |
PERF faster head, tail and size groupby methods | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index e763700d08cf4..20f17a7f42472 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -52,7 +52,6 @@
_apply_whitelist = frozenset(['last', 'first',
'mean', 'sum', 'min', 'max',
- ... | Try again with #5518.
Massive gains in groupby head and tail, adds more tests for these, slight speed improvement in size (not as much as I'd hoped, basically iterating through grouper.indices is slow :( ).
_As mentioned before, I added a helper function to prepend as_index to index (if that makes **any** sense), I t... | https://api.github.com/repos/pandas-dev/pandas/pulls/5533 | 2013-11-17T04:47:17Z | 2013-11-20T01:42:36Z | 2013-11-20T01:42:36Z | 2014-07-16T08:40:40Z |
sphinxext py3 compatibility | diff --git a/doc/sphinxext/numpydoc/docscrape.py b/doc/sphinxext/numpydoc/docscrape.py
index 4ee0f2e400d0e..2c49ed84ad224 100755
--- a/doc/sphinxext/numpydoc/docscrape.py
+++ b/doc/sphinxext/numpydoc/docscrape.py
@@ -499,10 +499,14 @@ def splitlines_x(s):
for field, items in [('Methods', self.methods),
... | Temporary sphinxext py3 compatibility fix as discussed in #5479 before #5221 is resolved. So far test_docscrape.py passes on both Python 2.7 and 3.3 (which should be the typical developer interpreters).
| https://api.github.com/repos/pandas-dev/pandas/pulls/5530 | 2013-11-16T20:43:28Z | 2014-01-30T10:49:25Z | 2014-01-30T10:49:25Z | 2014-06-12T19:56:32Z |
BUG: Bug in getitem with a multi-index and iloc (GH5528) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 24811bc7b1b45..8d39db39ad4a6 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -808,6 +808,7 @@ Bug Fixes
- performance improvements in ``isnull`` on larger size pandas objects
- Fixed various setitem with 1d ndarray that does no... | closes #5528
| https://api.github.com/repos/pandas-dev/pandas/pulls/5529 | 2013-11-16T17:27:53Z | 2013-11-16T19:13:47Z | 2013-11-16T19:13:47Z | 2014-06-18T13:18:30Z |
StataWriter: Replace non-isalnum characters in variable names by _ inste... | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 3f148748081b9..df0a27169e6df 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -221,6 +221,7 @@ Improvements to existing features
MultiIndex and Hierarchical Rows. Set the ``merge_cells`` to ``False`` to
restore the previous ... | ...ad of integral represantation of replaced character. Eliminate duplicates created by replacement.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5525 | 2013-11-15T19:43:26Z | 2013-12-04T13:02:57Z | 2013-12-04T13:02:57Z | 2014-07-09T17:56:15Z |
BUG/TST: Fixes isnull behavior on NaT in array. Closes #5443 | diff --git a/pandas/lib.pyx b/pandas/lib.pyx
index 56ef9a4fcb160..afd8ac87589be 100644
--- a/pandas/lib.pyx
+++ b/pandas/lib.pyx
@@ -170,7 +170,6 @@ cdef inline int64_t get_timedelta64_value(val):
cdef double INF = <double> np.inf
cdef double NEGINF = -INF
-
cpdef checknull(object val):
if util.is_float_objec... | I added a test case test_isnull_nat() to test_common.py and a check for NaT in lib.isnullobj. pd.isnull(np.array([pd.NaT])) now yields the correct results ([True]).
closes #5443
| https://api.github.com/repos/pandas-dev/pandas/pulls/5524 | 2013-11-15T16:31:06Z | 2014-01-06T23:44:31Z | 2014-01-06T23:44:31Z | 2014-06-25T08:45:15Z |
Ensure that we can get a commit number from git | diff --git a/setup.py b/setup.py
index 6ab478bfc2541..44229fa64d4cd 100755
--- a/setup.py
+++ b/setup.py
@@ -201,12 +201,12 @@ def build_extensions(self):
try:
import subprocess
try:
- pipe = subprocess.Popen(["git", "describe", "HEAD"],
+ pipe = subprocess.Popen(["git", "de... | Currently, git describe fails with "fatal: No names found, cannot describe anything."
| https://api.github.com/repos/pandas-dev/pandas/pulls/5520 | 2013-11-15T09:52:20Z | 2013-11-16T10:36:14Z | 2013-11-16T10:36:13Z | 2014-07-16T08:40:30Z |
PERF faster head, tail and size groupby methods | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 982b5de49e6fa..8ec3adcdffd6f 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -245,6 +245,7 @@ def wrapper(cls):
class _OrderedDict(dict):
+
"""Dictionary that remembers insertion order"""
# An inherited dic... | This is some low hanging fruit, significantly faster than master.
To give some numbers, before the change is below the new:
```
In [1]: df = pd.DataFrame(np.random.randint(0, 100, 1000), columns=['A'], index=[0] * 1000); g = df.groupby('A')
In [2]: %timeit g.head(2)
1000 loops, best of 3: 429 µs per loop
#100 loops,... | https://api.github.com/repos/pandas-dev/pandas/pulls/5518 | 2013-11-15T00:30:38Z | 2013-11-17T04:41:20Z | null | 2014-08-18T13:12:49Z |
ENH: Have pivot and pivot_table take similar arguments | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 12a83f48706e5..f81369c60fdfd 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -124,6 +124,11 @@ API Changes
DataFrame returned by ``GroupBy.apply`` (:issue:`6124`). This facilitates
``DataFrame.stack`` operations where the ... | Right now, there is
```
df.pivot(index=foo, columns=bar, values=baz)
```
and
```
df.pivot_table(rows=foo, cols=bar, values=baz)
```
Because of dirtyness in my data I occasionally have to go back and forth between the two forms (and use `df.pivot_table(..., aggfunc='count')` to see who had the bad data). It would ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5505 | 2013-11-14T23:27:59Z | 2014-03-14T22:41:31Z | 2014-03-14T22:41:31Z | 2014-06-12T15:38:56Z |
CLN: Add more methods to whitelist (for now) | diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py
index 668c665613c0d..c0c94c46a6930 100644
--- a/pandas/core/groupby.py
+++ b/pandas/core/groupby.py
@@ -57,8 +57,14 @@
'resample',
'describe',
'rank', 'quantile', 'co... | No test cases because goal is just to make sure this is not blocked in
0.13. Can do more tweaks later. If I have time I will try to pull
together something to cover what we were discussing in #5480.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5514 | 2013-11-14T12:20:58Z | 2013-12-05T23:35:54Z | null | 2014-06-27T15:02:57Z |
BUG: Fixed various setitem with iterable that does not have a matching length to the indexer (GH5508) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 59ff48887269e..9516b67d4ca47 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -805,6 +805,8 @@ Bug Fixes
- ``pd.to_timedelta`` of a scalar returns a scalar (:issue:`5410`)
- ``pd.to_timedelta`` accepts ``NaN`` and ``NaT``, retur... | closes #5508
| https://api.github.com/repos/pandas-dev/pandas/pulls/5512 | 2013-11-14T00:32:11Z | 2013-11-14T01:06:31Z | 2013-11-14T01:06:30Z | 2014-06-24T20:52:21Z |
ENH add cumcount groupby method | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 7b769eeccbe68..e666bad2317df 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -705,3 +705,16 @@ can be used as group keys. If so, the order of the levels will be preserved:
factor = qcut(data, [0, .25, .5, .75, 1.])
data.gro... | closes #4646
Happy to hear ways to make this faster, but I think this is a good convenience function as is.
Update: made significantly faster...
| https://api.github.com/repos/pandas-dev/pandas/pulls/5510 | 2013-11-14T00:13:44Z | 2013-11-14T22:04:00Z | 2013-11-14T22:04:00Z | 2014-06-14T09:29:13Z |
BUG: bug in to_msgpack for timezone aware datetime index | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 17fe4be734f4d..59ff48887269e 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -85,7 +85,7 @@ Experimental Features
(:issue:`4897`).
- Add msgpack support via ``pd.read_msgpack()`` and ``pd.to_msgpack()`` /
``df.to_msgpack... | BUG: bug in to_msgpack for no freqstr datetime index (GH5506)
closes #5506
| https://api.github.com/repos/pandas-dev/pandas/pulls/5507 | 2013-11-13T18:48:54Z | 2013-11-13T19:53:52Z | 2013-11-13T19:53:52Z | 2014-07-16T08:40:20Z |
API/ENH: pass thru store creation arguments for HDFStore; can be used to support in-memory stores | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6ae7493fb4b72..17fe4be734f4d 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -289,6 +289,7 @@ API Changes
- ``flush`` now accepts an ``fsync`` parameter, which defaults to ``False``
(:issue:`5364`)
- ``unicode`` indi... | https://api.github.com/repos/pandas-dev/pandas/pulls/5499 | 2013-11-12T17:25:52Z | 2013-11-12T18:09:27Z | 2013-11-12T18:09:27Z | 2014-07-16T08:40:12Z | |
PERF: msgpack encoding changes to use to/from string for speed boosts | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 7f1fe50048599..42964c9d48537 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -1871,8 +1871,12 @@ def _asarray_tuplesafe(values, dtype=None):
else:
# Making a 1D array that safely contains tuples is a bit tricky
... | API: disable sparse structure encodings and unicode indexes
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
packers_read_pa... | https://api.github.com/repos/pandas-dev/pandas/pulls/5498 | 2013-11-12T15:39:50Z | 2013-11-13T14:13:45Z | 2013-11-13T14:13:45Z | 2021-10-26T16:20:50Z |
ENH: accept mutliple series for FRED DataReader | diff --git a/doc/source/release.rst b/doc/source/release.rst
index ccc34a4051508..07efacc0bf641 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -219,6 +219,7 @@ Improvements to existing features
option it is no longer possible to round trip Excel files with merged
MultiIndex and Hierarchic... | closes #3413
Let me know if you want this for .13 or .14 and I'll fill in the release notes appropriately.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5492 | 2013-11-11T15:22:23Z | 2013-11-27T18:31:21Z | 2013-11-27T18:31:21Z | 2016-11-03T12:37:37Z |
print_versions.py fixes | diff --git a/ci/print_versions.py b/ci/print_versions.py
index 900c7c15db42e..463d31ac1d1d3 100755
--- a/ci/print_versions.py
+++ b/ci/print_versions.py
@@ -2,15 +2,15 @@
def show_versions():
- import subprocess
+ import imp
import os
fn = __file__
this_dir = os.path.dirname(fn)
- pandas_di... | #4760
#4901
1. Path resolution was broken, so running the script outside the pandas root directory didn't work.
2. The use of `subprocess` to invoke the script from the source tree relied on system python,
ignoring the interpreter version actually used to invoke the scripts. Travis was unaffected since the system py... | https://api.github.com/repos/pandas-dev/pandas/pulls/5486 | 2013-11-10T21:48:16Z | 2013-11-10T21:48:36Z | 2013-11-10T21:48:36Z | 2014-07-16T08:40:00Z |
PERF: perf regression with mixed-type ops using numexpr (GH5481) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d8a722ff1439e..1222b5b93799d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2810,11 +2810,28 @@ def _arith_op(left, right):
return func(left, right)
if this._is_mixed_type or other._is_mixed_type:
- # XXX... | closes #5481
BUG: non-unique ops not aligning correctly
these are bascially a trivial op in numpy, so numexpr is slightly slower (but the
the dtype inference issue is fixed). Essentially the recreation of an int64 ndarray had to check if its a datetime-like. In this case just passing in the dtype on the reconstructed... | https://api.github.com/repos/pandas-dev/pandas/pulls/5482 | 2013-11-10T17:44:26Z | 2013-11-10T18:47:39Z | 2013-11-10T18:47:39Z | 2014-06-18T10:04:21Z |
VIS/ENH Hexbin plot | diff --git a/doc/source/release.rst b/doc/source/release.rst
index be6d5d464cb36..35ce6c9359d56 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -53,6 +53,8 @@ pandas 0.14.0
New features
~~~~~~~~~~~~
+- Hexagonal bin plots from ``DataFrame.plot`` with ``kind='hexbin'`` (:issue:`5478`)
+
API Chan... | This is just 10 minutes of copy-paste cargo-culting to gauge interest, I haven't tested anything yet.
``` python
In [1]: df = pd.DataFrame(np.random.randn(1000, 2))
In [2]: df.plot(kind='hexbin', x=0, y=1)
Out[2]: <matplotlib.axes.AxesSubplot at 0x10eb76e10>
```
 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 3c1942e300729..bc80988eb612c 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -74,6 +74,7 @@ class NDFrame(PandasObject):
'_data', 'name', '_cacher', '_is_copy', '_subtyp', '_index', '_default_kind', '_default_fill_value']
... | closes #5475
| https://api.github.com/repos/pandas-dev/pandas/pulls/5477 | 2013-11-09T01:43:33Z | 2013-11-09T01:56:27Z | 2013-11-09T01:56:27Z | 2014-07-04T19:23:41Z |
TST: win32 fixes | diff --git a/pandas/computation/tests/test_eval.py b/pandas/computation/tests/test_eval.py
index b8de54ade31db..44e560b86a683 100644
--- a/pandas/computation/tests/test_eval.py
+++ b/pandas/computation/tests/test_eval.py
@@ -180,6 +180,11 @@ def test_floor_division(self):
self.check_floor_division(lhs, '//... | TST: test_indexing dtype comps, closes #5466
TST don't compare invalid indices in eval operations, closes #5467
TST: invalid assignment for np.timedelta64 closes #5465
TST: skip locale checks on windows cloes #5464
TST: dtype comp issue on windows in test_indexing (GH5466)
TST: skip test_pow on windows (GH5467)
| https://api.github.com/repos/pandas-dev/pandas/pulls/5474 | 2013-11-08T16:04:19Z | 2013-11-08T18:18:25Z | 2013-11-08T18:18:25Z | 2014-07-16T08:39:49Z |
BUG: DatetimeIndex.normalize now accounts for nanoseconds (#5461). | diff --git a/pandas/tseries/tests/test_timeseries.py b/pandas/tseries/tests/test_timeseries.py
index 51939ac22e956..a7bd2250f95e3 100644
--- a/pandas/tseries/tests/test_timeseries.py
+++ b/pandas/tseries/tests/test_timeseries.py
@@ -1420,6 +1420,11 @@ def test_normalize(self):
result = rng.normalize()
... | closes #5461
datetime64(ns) uses the dts->ps which was not being set to zero in the
normalize function.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5472 | 2013-11-08T12:04:03Z | 2013-11-08T12:46:21Z | 2013-11-08T12:46:21Z | 2014-07-15T19:20:42Z |
BUG: bool(NaT) was True | diff --git a/pandas/tslib.pyx b/pandas/tslib.pyx
index 11b86db8b8d92..913d8850c640c 100644
--- a/pandas/tslib.pyx
+++ b/pandas/tslib.pyx
@@ -358,6 +358,10 @@ class NaTType(_NaT):
def __hash__(self):
return iNaT
+ def __bool__(self):
+ return False
+ __nonzero__ = __bool__
+
def weekday... | bool(NaT) evaluates to True. I am not sure if this is by design or if it is a bug, but I think it makes more sense to evaluate it to False.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5471 | 2013-11-08T08:52:18Z | 2013-11-08T16:51:27Z | null | 2013-11-08T16:51:27Z |
TST: Fix test case to use int64 and explicit float | diff --git a/pandas/tests/test_series.py b/pandas/tests/test_series.py
index f866c1b229fe5..b6f0387835c22 100644
--- a/pandas/tests/test_series.py
+++ b/pandas/tests/test_series.py
@@ -1724,7 +1724,7 @@ def test_mode(self):
exp = Series([11, 12])
assert_series_equal(s.mode(), exp)
- assert_se... | #5468
| https://api.github.com/repos/pandas-dev/pandas/pulls/5469 | 2013-11-08T03:59:58Z | 2013-11-08T04:38:59Z | 2013-11-08T04:38:59Z | 2014-07-16T08:39:46Z |
PERF: performance improvements on isnull/notnull for large pandas objects | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 053f4b1f1b66e..6ae7493fb4b72 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -803,6 +803,7 @@ Bug Fixes
- Make tests create temp files in temp directory by default. (:issue:`5419`)
- ``pd.to_timedelta`` of a scalar returns a sc... | ```
In [1]: df = DataFrame(np.random.randn(1000,1000))
In [2]: %timeit df.apply(pd.isnull)
10 loops, best of 3: 121 ms per loop
In [3]: %timeit pd.isnull(df)
100 loops, best of 3: 3.15 ms per loop
```
from 0.12
```
In [2]: %timeit df.apply(pd.isnull)
10 loops, best of 3: 74.3 ms per loop
In [3]: %timeit pd.isnull(... | https://api.github.com/repos/pandas-dev/pandas/pulls/5462 | 2013-11-07T13:06:16Z | 2013-11-07T14:44:58Z | 2013-11-07T14:44:58Z | 2014-07-16T08:39:41Z |
DOC: add basic documentation to some of the GroupBy properties and methods | diff --git a/doc/source/api.rst b/doc/source/api.rst
index c2c2bc8710af2..4ecde7e05256a 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1112,6 +1112,42 @@ Conversion
DatetimeIndex.to_pydatetime
+GroupBy
+-------
+.. currentmodule:: pandas.core.groupby
+
+GroupBy objects are returned by groupby call... | I added some simple documentation to the GroupBy and Grouper classes
| https://api.github.com/repos/pandas-dev/pandas/pulls/5459 | 2013-11-07T01:45:06Z | 2013-11-27T20:00:21Z | 2013-11-27T20:00:21Z | 2014-06-14T22:38:30Z |
DOC: small error in cookbook (doc build warning) | diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst
index 84cca1c4b7ae9..9a295865fbd82 100644
--- a/doc/source/cookbook.rst
+++ b/doc/source/cookbook.rst
@@ -335,7 +335,7 @@ The :ref:`CSV <io.read_csv_table>` docs
<http://stackoverflow.com/questions/11622652/large-persistent-dataframe-in-pandas/12193309#121... | https://api.github.com/repos/pandas-dev/pandas/pulls/5454 | 2013-11-06T16:23:22Z | 2013-11-06T16:34:26Z | 2013-11-06T16:34:26Z | 2014-07-16T08:39:33Z | |
add optional default value to GroupBy.get_group | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 96da62077436f..b27d5cc089b5d 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -221,6 +221,9 @@ Improvements to existing features
MultiIndex and Hierarchical Rows. Set the ``merge_cells`` to ``False`` to
restore the previous ... | I've used a try except block as opposed to and if else (below) to keep the non-default code path fast. What I didn't do:
```
if default is None :
inds = self.indices[name]
else :
inds = self.indices.get(name, default)
```
Here is an example use case:
```
def foo(df, keys) :
g = df.groupby('key')
for... | https://api.github.com/repos/pandas-dev/pandas/pulls/5452 | 2013-11-06T14:38:00Z | 2015-01-18T21:39:57Z | null | 2015-01-18T21:39:57Z |
DOC: remove docstring of flags attribute during doc building process (#5331) | diff --git a/doc/source/conf.py b/doc/source/conf.py
index a500289b27ab1..695a954f78cfb 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -246,3 +246,12 @@
'GH'),
'wiki': ('https://github.com/pydata/pandas/wiki/%s',
'wiki ')}
+
+# remove the docstring ... | Further fixes #5331 with @jtratner 's suggestion (https://github.com/pydata/pandas/issues/5142#issuecomment-27871973).
This removes the docstring of all attributes with the name `flags` during the doc building process.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5450 | 2013-11-06T14:05:13Z | 2013-11-06T15:31:36Z | 2013-11-06T15:31:36Z | 2014-07-09T18:47:42Z |
PERF: Fixed decoding perf issue on py3 (GH5441) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 926e8f1d0c5ea..e137a93af07a9 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -531,6 +531,7 @@ Bug Fixes
names weren't strings (:issue:`4956`)
- A zero length series written in Fixed format not deserializing properly.
... | closes #5441
| https://api.github.com/repos/pandas-dev/pandas/pulls/5448 | 2013-11-06T12:39:07Z | 2013-11-06T13:59:15Z | 2013-11-06T13:59:15Z | 2014-06-16T19:05:47Z |
DOC: fix build error in to_latex and release notes | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 136829e692c8f..d9924a2457e7c 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -386,6 +386,7 @@ API Changes
division.
.. code-block:: python
+
In [3]: arr = np.array([1, 2, 3, 4])
In [4]: arr2 = np.array([5, 3, 2,... | This partly fixes #5331 (the `to_latex` part, not the 'Malformed table' one).
And in the same time, fixes a build error in the newly added docs on `truediv` in the release notes.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5447 | 2013-11-06T10:25:16Z | 2013-11-06T12:58:55Z | 2013-11-06T12:58:55Z | 2014-07-16T08:39:27Z |
PERF/ENH: Use xlsxwriter by default (and then fall back on openpyxl). | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 1a879866c5516..29478d1fd7841 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1825,8 +1825,10 @@ written. For example:
df.to_excel('path_to_file.xlsx', sheet_name='Sheet1')
-Files with a ``.xls`` extension will be written using ``xlwt`` and tho... | Since xlsxwriter has a smaller install base (because it's newer),
reasonable to assume that if you have it installed, you want xlsxwriter.
Plus, it has better performance characteristics in general (esp. in
terms of memory usage)
| https://api.github.com/repos/pandas-dev/pandas/pulls/5446 | 2013-11-06T02:34:52Z | 2013-11-07T03:23:10Z | 2013-11-07T03:23:10Z | 2014-07-16T08:39:26Z |
ENH: Always do true division on Python 2.X | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 5fef061b9e447..926e8f1d0c5ea 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -376,6 +376,25 @@ API Changes
dates are given (:issue:`5242`)
- ``Timestamp`` now supports ``now/today/utcnow`` class methods
(:issue:`5339`)
+... | Close #5356.
Note: this version actually forces `a / b` to always do truediv as well. It's
less complicated to maintain if we do it that way, but it's also possible to
have this `a / b` use div and `a.div(b)` use truediv, just might be strange.
This is definitely different from numpy behavior.
We also may need to add... | https://api.github.com/repos/pandas-dev/pandas/pulls/5439 | 2013-11-05T11:46:16Z | 2013-11-05T22:53:10Z | 2013-11-05T22:53:10Z | 2014-06-23T22:30:35Z |
BUG: pd.to_timedelta handles missing data | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 4b33c20424b33..fde13941d0266 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -771,6 +771,7 @@ Bug Fixes
- Fix empty series not printing name in repr (:issue:`4651`)
- Make tests create temp files in temp directory by default. (... | closes #5437
**Updated**: Mostly following @jreback's suggestion, but we need `np.timedelta64('NaT')`, not `pd.tslib.iNaT`, because numpy cannot cast `np.datetime64('NaT')` as `np.timedelta64` type, and throws an `AssertionError`.
```
In [1]: pd.to_timedelta(Series(['00:00:01', '00:00:02']))
Out[1]:
0 00:00:01
1 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5438 | 2013-11-05T03:27:15Z | 2013-11-06T23:51:20Z | 2013-11-06T23:51:20Z | 2014-06-24T21:15:32Z |
BUG/TST: bug in the test apparatus when dtypes are equal in a Series but the values are not equal | diff --git a/pandas/src/testing.pyx b/pandas/src/testing.pyx
index 404b97879e2be..c573d8b2afbad 100644
--- a/pandas/src/testing.pyx
+++ b/pandas/src/testing.pyx
@@ -88,9 +88,10 @@ cpdef assert_almost_equal(a, b, bint check_less_precise=False):
return True
except:
pass
... | noticed in #5429
| https://api.github.com/repos/pandas-dev/pandas/pulls/5434 | 2013-11-04T22:01:12Z | 2013-11-04T22:49:49Z | 2013-11-04T22:49:49Z | 2014-07-11T22:41:28Z |
BUG: fix Resampling a Series with a timezone using kind='period' (GH5430) | diff --git a/pandas/tseries/resample.py b/pandas/tseries/resample.py
index 96ff8c47abc1e..5377543ac8c54 100644
--- a/pandas/tseries/resample.py
+++ b/pandas/tseries/resample.py
@@ -192,7 +192,9 @@ def _get_time_period_bins(self, axis):
labels = binner = PeriodIndex(start=axis[0], end=axis[-1],
... | There's a failing test case and the patch in subsequent commits.
closes #5430
closes #3609
| https://api.github.com/repos/pandas-dev/pandas/pulls/5432 | 2013-11-04T20:11:40Z | 2013-11-06T00:23:40Z | 2013-11-06T00:23:40Z | 2014-07-16T08:39:13Z |
BUG: Excel writer doesn't handle "cols" option correctly | diff --git a/pandas/core/format.py b/pandas/core/format.py
index 5062fd9be6357..ae0d95b1c3074 100644
--- a/pandas/core/format.py
+++ b/pandas/core/format.py
@@ -1393,8 +1393,12 @@ def _format_regular_rows(self):
for idx, idxval in enumerate(index_values):
yield ExcelCell(self.rowcounter + ... | closes #5427
Notes on this PR:
- This fix addresses an issue introduced in #5235 (Issue with Excel writers when column names are duplicated).
- Basically it needs to handle 2 different use cases:
- The user uses duplicate column names
- The user specifies a different order via the `cols` option
``` python
# Case ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5429 | 2013-11-04T01:38:29Z | 2013-11-06T22:16:21Z | 2013-11-06T22:16:21Z | 2014-07-02T22:44:20Z |
BUG: not clearing the cache when reindexing issue when partial setting (GH5424) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6e10bd651d90a..19639e2e759e1 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -660,7 +660,7 @@ Bug Fixes
the ``by`` argument was passed (:issue:`4112`, :issue:`4113`).
- Fixed a bug in ``convert_objects`` for > 2 ndims (:issue... | closes #5424
| https://api.github.com/repos/pandas-dev/pandas/pulls/5426 | 2013-11-04T00:13:08Z | 2013-11-04T00:40:53Z | 2013-11-04T00:40:53Z | 2014-06-23T22:17:11Z |
TST: Use tempfiles in all tests. | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6e10bd651d90a..04642c358d000 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -769,6 +769,7 @@ Bug Fixes
- The GroupBy methods ``transform`` and ``filter`` can be used on Series
and DataFrames that have repeated (non-unique) i... | related #5419
Includes @jreback's commits from #5422 and hdf_temp:
- TST: make pytables tests go thru a temporary dir and file
- TST/BUG: incorrect way of testing for r+ modes
TST: fix temporary files by using mktemp (rather than mkstemp) which opens them
| https://api.github.com/repos/pandas-dev/pandas/pulls/5425 | 2013-11-03T23:42:01Z | 2013-11-04T01:10:47Z | 2013-11-04T01:10:47Z | 2014-07-16T08:38:56Z |
ENH: Better handling of MultiIndex with Excel | diff --git a/ci/requirements-2.7.txt b/ci/requirements-2.7.txt
index 705aa9e3cc922..dc6e2d9f55977 100644
--- a/ci/requirements-2.7.txt
+++ b/ci/requirements-2.7.txt
@@ -8,7 +8,7 @@ numexpr==2.1
tables==2.3.1
matplotlib==1.1.1
openpyxl==1.6.2
-xlsxwriter==0.4.3
+xlsxwriter==0.4.6
xlrd==0.9.2
patsy==0.1.0
html5lib=... | Allow optional formatting of MultiIndex and Hierarchical Rows
as merged cells. closes #5254.
Some notes on this PR:
- The required xlsxwriter version was up-revved in `ci/requirements*.txt`to pick up a fix in that module that makes working with charts from pandas easier.
- Added a comment to `release.rst`.
- Modified ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5423 | 2013-11-03T20:42:24Z | 2013-11-06T01:42:23Z | 2013-11-06T01:42:23Z | 2014-06-16T22:40:15Z |
TST: make pytables tests go thru a temporary dir and file | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 97dc8dcdec73a..d3d113eaddc45 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -225,11 +225,6 @@ def _tables():
return _table_mod
-def h5_open(path, mode):
- tables = _tables()
- return tables.openFile(path, mode)
-
-
@cont... | TST/BUG: incorrect way of testing for r+ modes
related #5419
| https://api.github.com/repos/pandas-dev/pandas/pulls/5422 | 2013-11-03T17:26:01Z | 2013-11-03T17:44:08Z | null | 2014-07-16T08:38:46Z |
TST: Use tempfiles in all tests. | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6e10bd651d90a..04642c358d000 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -769,6 +769,7 @@ Bug Fixes
- The GroupBy methods ``transform`` and ``filter`` can be used on Series
and DataFrames that have repeated (non-unique) i... | If you really need to, possible to opt-out with make_tempfile=False.
Something weird with HDF where, even though it's _supposed_ to be
removing the file every time, it causes issues to use a real temp
file... Not sure why (maybe I missed something there).
| https://api.github.com/repos/pandas-dev/pandas/pulls/5419 | 2013-11-03T00:50:08Z | 2013-11-03T23:42:17Z | null | 2014-06-26T00:27:11Z |
BUG: Panel.to_frame() with MultiIndex major axis | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 9a0854494a897..8179c710b7a8a 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -104,6 +104,8 @@ Bug Fixes
- Fixed string-representation of ``NaT`` to be "NaT" (:issue:`5708`)
- Fixed string-representation for Timestamp to show na... | Closes #5402 WIP for now.
So this is a hack to get things "working".
I mainly just wanted to ask if there was a better way to get the levels and labels to the MultiIndex constructor.
Don't spend long thinking about it (this is my PR after all), but if you know of a quick way off the top of your head, I'd be interest... | https://api.github.com/repos/pandas-dev/pandas/pulls/5417 | 2013-11-02T19:37:15Z | 2014-01-15T16:12:41Z | 2014-01-15T16:12:41Z | 2016-11-03T12:37:41Z |
io.html.read_html support XPath expressions for table selection | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 6e10bd651d90a..c779b25b30444 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -52,6 +52,8 @@ pandas 0.13.0
New features
~~~~~~~~~~~~
+ - ``read_html()`` now accepts an ``xpath`` string argument representing an
+ xpath expressi... | First tentative PR as discussed in #5389
| https://api.github.com/repos/pandas-dev/pandas/pulls/5416 | 2013-11-02T19:15:04Z | 2014-01-01T03:01:53Z | null | 2014-07-19T02:25:03Z |
BUG: to_timedelta of a scalar returns a scalar, closes #5410. | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 79fbc1a6cbb54..4b33c20424b33 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -770,6 +770,7 @@ Bug Fixes
and DataFrames that have repeated (non-unique) indices. (:issue:`4620`)
- Fix empty series not printing name in repr (:is... | closes #5410
| https://api.github.com/repos/pandas-dev/pandas/pulls/5415 | 2013-11-02T12:55:39Z | 2013-11-04T21:19:02Z | 2013-11-04T21:19:02Z | 2014-06-20T16:34:01Z |
ENH/BUG: pass formatting params thru to `to_csv` | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 7b7b0e745872a..ac2cabe009694 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1036,8 +1036,10 @@ The Series and DataFrame objects have an instance method ``to_csv`` which
allows storing the contents of the object as a comma-separated-values file. The
... | Add support for passing remaining `csv.writer` formatting parameters thru to `DataFrame.to_csv()`.
Maybe write tests for this? That much is over my head currently.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5414 | 2013-11-02T01:32:10Z | 2014-02-17T14:19:06Z | 2014-02-17T14:19:06Z | 2014-06-14T17:02:45Z |
BLD: numpy 1.8 on the 3.3/2.7 builds | diff --git a/ci/requirements-2.7.txt b/ci/requirements-2.7.txt
index 3b786152cd653..705aa9e3cc922 100644
--- a/ci/requirements-2.7.txt
+++ b/ci/requirements-2.7.txt
@@ -1,7 +1,7 @@
python-dateutil==2.1
pytz==2013b
xlwt==0.7.5
-numpy==1.7.1
+numpy==1.8.0
cython==0.19.1
bottleneck==0.6.0
numexpr==2.1
diff --git a/c... | close #5412
still pretty good coverage of all numpys
build take a tad longer w/o the wheels
| https://api.github.com/repos/pandas-dev/pandas/pulls/5413 | 2013-11-01T22:51:05Z | 2013-11-02T23:54:38Z | 2013-11-02T23:54:38Z | 2014-06-23T21:43:09Z |
BLD: dateutil-2.2 patch | diff --git a/ci/requirements-3.3.txt b/ci/requirements-3.3.txt
index 318030e733158..94a77bbc06024 100644
--- a/ci/requirements-3.3.txt
+++ b/ci/requirements-3.3.txt
@@ -1,4 +1,4 @@
-python-dateutil==2.1
+python-dateutil==2.2
pytz==2013b
openpyxl==1.6.2
xlsxwriter==0.4.3
diff --git a/pandas/tseries/tools.py b/pandas/... | close #5409
| https://api.github.com/repos/pandas-dev/pandas/pulls/5411 | 2013-11-01T22:13:26Z | 2013-11-01T22:13:32Z | 2013-11-01T22:13:32Z | 2014-07-16T08:38:35Z |
DOC/BUG: fix details for 'quoting' parser parameter | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 52d4e6bbac50a..796475aa24a58 100644
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -36,13 +36,13 @@
%s
lineterminator : string (length 1), default None
Character to break file into lines. Only valid with C parser
-quotechar : string
- Th... | ``` python
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Imported NumPy 1.7.1, SciPy 0.12.0, Matplotlib 1.3.0 + guidata 1.6.1, guiqwt 2.3.1
Type "scientific" for more details.
>>> from csv import QUOTE_MINIMAL, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5408 | 2013-11-01T21:00:49Z | 2014-01-21T11:46:04Z | 2014-01-21T11:46:04Z | 2014-06-19T13:22:40Z |
Fix Issues with FY5253 and nearest w/ year end in Dec | diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
index 8830d66b245ef..b763fc6b11252 100644
--- a/pandas/tseries/offsets.py
+++ b/pandas/tseries/offsets.py
@@ -977,467 +977,154 @@ def onOffset(self, dt):
modMonth = (dt.month - self.startingMonth) % 3
return BMonthEnd().onOffset(dt) an... | There are currently some issues with FY5253 working with `variation="nearest"` and `startingMonth=12`.
This PR fixes those issues and add some more tests.
| https://api.github.com/repos/pandas-dev/pandas/pulls/5405 | 2013-11-01T03:52:05Z | 2013-11-07T21:58:18Z | 2013-11-07T21:58:18Z | 2014-07-04T19:06:17Z |
CLN: Remove unnecessary ExcelWriterMeta metaclass | diff --git a/pandas/io/excel.py b/pandas/io/excel.py
index 44b323abf45c2..ae844d1eeb5fc 100644
--- a/pandas/io/excel.py
+++ b/pandas/io/excel.py
@@ -24,6 +24,7 @@
_writer_extensions = ["xlsx", "xls", "xlsm"]
_writers = {}
+
def register_writer(klass):
"""Adds engine to the excel writer registry. You must use ... | Only `__new__` is really necessary. And subclasses just have to deal with
being passed an 'engine' keyword argument + a tad bit of style cleanup.
Thanks to @jseabold and @josef-pkt for making me realize that this was
unnecessary in https://github.com/statsmodels/statsmodels/issues/1167
:)
@jmcnamara - this has comple... | https://api.github.com/repos/pandas-dev/pandas/pulls/5403 | 2013-10-31T22:20:02Z | 2013-11-01T00:21:36Z | 2013-11-01T00:21:36Z | 2014-06-30T12:55:30Z |
BUG: support for GA new segment format (GH5398) | diff --git a/doc/source/v0.13.0.txt b/doc/source/v0.13.0.txt
index 27794d6af1a8d..f2f958dc472a0 100644
--- a/doc/source/v0.13.0.txt
+++ b/doc/source/v0.13.0.txt
@@ -553,6 +553,7 @@ Enhancements
output datetime objects should be formatted. Datetimes encountered in the
index, columns, and values will all have this ... | Adds support for underscores to Google's new segment format. The issue referenced is here:
closes https://github.com/pydata/pandas/issues/5398
| https://api.github.com/repos/pandas-dev/pandas/pulls/5400 | 2013-10-31T17:24:27Z | 2013-12-07T14:22:02Z | null | 2014-06-27T14:53:37Z |
Display the correct error message when calling a binary moment without appropriate parameters. | diff --git a/pandas/stats/moments.py b/pandas/stats/moments.py
index f3ec3880ec8b5..6671f0a9c958a 100644
--- a/pandas/stats/moments.py
+++ b/pandas/stats/moments.py
@@ -195,7 +195,7 @@ def _get_corr(a, b):
def _flex_binary_moment(arg1, arg2, f):
if not (isinstance(arg1,(np.ndarray, Series, DataFrame)) and
- ... | This pr fixes a typo in the type checking of binary moments. It makes the error messages below consistent:
> > > import pandas
> > > a = pandas.DataFrame([1,2,3,4,5,6])
> > > pandas.rolling_cov(list(), a, 3)
> > > ValueError: arguments to moment function must be of type ndarray/DataFrame
> > >
> > > pandas.rolling_c... | https://api.github.com/repos/pandas-dev/pandas/pulls/5399 | 2013-10-31T15:41:15Z | 2013-11-21T13:44:48Z | 2013-11-21T13:44:48Z | 2014-06-22T05:58:40Z |
BUG/TST: fix downcasting of float-like object array | diff --git a/pandas/core/common.py b/pandas/core/common.py
index d05c3dbafdee6..e89ae44dacd31 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -1038,7 +1038,8 @@ def _possibly_downcast_to_dtype(result, dtype):
# try to upcast here
elif inferred_type == 'floating':
... | related #5394
This now works
```
In [1]: arr = np.array([1.0,2.0],dtype=object)
In [3]: pandas.core.common._possibly_downcast_to_dtype(arr,'infer')
Out[3]: array([1, 2])
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/5397 | 2013-10-31T12:04:13Z | 2013-10-31T12:30:10Z | 2013-10-31T12:30:10Z | 2014-07-16T08:38:18Z |
HTML Parsing Cleanup | diff --git a/doc/source/release.rst b/doc/source/release.rst
index d6a98157c76d3..9c27851c9cecf 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -209,7 +209,9 @@ Improvements to existing features
by color as expected.
- ``read_excel()`` now tries to convert integral floats (like ``1.0``) to i... | - Can pass `Flavor` to HTML parse (closes #4594 and #5130). Instead of #5131
- Cleanup API for HTML parsers
I added new (public class) `Flavor` which users can subclass. Currently the expectation is to pass in the class (not an instance of the class)
CC @cpcloud @jtratner @jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/5395 | 2013-10-31T02:43:58Z | 2014-02-16T22:04:20Z | null | 2016-03-20T15:25:36Z |
ENH: read_excel: try converting numeric to int | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 0842893800dd5..1a879866c5516 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1839,6 +1839,13 @@ one can pass an :class:`~pandas.io.excel.ExcelWriter`.
df1.to_excel(writer, sheet_name='Sheet1')
df2.to_excel(writer, sheet_name='Sheet2')
... | Adds a convert_float=True kwarg to read_excel and parse.
All Excel numeric data is stored as floats, so have to convert it specifically.
Changing default because it's suprising to save something with what looks like
a row/column of integers and get a column of floats instead. (especially
because it can lead to annoyin... | https://api.github.com/repos/pandas-dev/pandas/pulls/5394 | 2013-10-31T00:56:03Z | 2013-11-01T02:52:15Z | 2013-11-01T02:52:15Z | 2021-06-09T03:27:30Z |
BUG: groupby with a Float like index misbehaving when the index is non-monotonic (related GH5375) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 0ef2c29af8139..13d8af52ee0dd 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -345,7 +345,7 @@ API Changes
indexing and slicing work exactly the same. Indexing on other index types
are preserved (and positional fallback for... | related #5375
| https://api.github.com/repos/pandas-dev/pandas/pulls/5393 | 2013-10-31T00:19:00Z | 2013-10-31T00:30:26Z | 2013-10-31T00:30:26Z | 2014-07-16T08:38:13Z |
API: raise/warn SettingWithCopy when chained assignment is detected | diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst
index e03d10b045824..b95c515831f55 100644
--- a/doc/source/indexing.rst
+++ b/doc/source/indexing.rst
@@ -1330,24 +1330,34 @@ indexing operation, the result will be a copy. With single label / scalar
indexing and slicing, e.g. ``df.ix[3:6]`` or ``df.ix[:, ... | ```
In [1]: df = DataFrame({"A": [1, 2, 3, 4, 5], "B": [3.125, 4.12, 3.1, 6.2, 7.]})
In [2]: row = df.loc[0]
```
Default is to warn
```
In [3]: row["A"] = 0
pandas/core/generic.py:1001: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_index,col_indexer] = ... | https://api.github.com/repos/pandas-dev/pandas/pulls/5390 | 2013-10-30T21:50:14Z | 2013-11-06T22:24:20Z | 2013-11-06T22:24:20Z | 2014-06-12T12:24:22Z |
ER/API: unicode indices not supported on table formats in py2 (GH5386) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 4d628fac78cf0..0ef2c29af8139 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -277,6 +277,7 @@ API Changes
- ``numexpr`` 2.2.2 fixes incompatiblity in PyTables 2.4 (:issue:`4908`)
- ``flush`` now accepts an ``fsync`` paramet... | closes #5386
| https://api.github.com/repos/pandas-dev/pandas/pulls/5387 | 2013-10-30T13:20:45Z | 2013-10-30T13:43:13Z | 2013-10-30T13:43:13Z | 2014-06-23T13:40:00Z |
Update offset prefix map | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 49de8dddd7210..32ec73284ea88 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -275,6 +275,7 @@ API Changes
- store `datetime.date` objects as ordinals rather then timetuples to avoid
timezone issues (:issue:`2852`), thanks... | This should address issue #5382
| https://api.github.com/repos/pandas-dev/pandas/pulls/5383 | 2013-10-30T05:08:02Z | 2013-11-01T20:57:08Z | null | 2014-07-01T17:16:52Z |
WIP: Add value_counts() to DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 0ea53920ffe3c..8ed39f002345b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4297,6 +4297,55 @@ def mode(self, axis=0, numeric_only=False):
f = lambda s: s.mode()
return data.apply(f, axis=axis)
+ def value_counts(sel... | - abstract bin generation from cut to use elsewhere. Panel goes to ndarray on
apply so that's a future TODO.
I'm relatively certain that this works, but I don't have explicit tests
for it. I'm hoping others who are interested (cough cough @rockg) will
be willing to create some of them. Key to test are that binning,
... | https://api.github.com/repos/pandas-dev/pandas/pulls/5381 | 2013-10-30T03:43:00Z | 2015-01-18T21:39:35Z | null | 2015-01-18T21:39:35Z |
ENH: Add mode method to Series and DataFrame | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 20bfe037f7373..c2c2bc8710af2 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -348,6 +348,7 @@ Computations / Descriptive Stats
Series.mean
Series.median
Series.min
+ Series.mode
Series.nunique
Series.pct_change
Series.prod
... | Closes #5367 - generally as fast or faster than value_counts (which makes sense because it has to construct Series), so should be relatively good performance-wise. Also, doesn't get stuck on value_counts' pathological case (huge array with # uniques close to/at the size of the array).
Not using result of hashtable.val... | https://api.github.com/repos/pandas-dev/pandas/pulls/5380 | 2013-10-30T03:32:21Z | 2013-11-05T06:00:57Z | 2013-11-05T06:00:57Z | 2014-06-15T23:15:45Z |
BUG: Fixes color selection in andrews_curve | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 4d628fac78cf0..f628917238e47 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -205,6 +205,8 @@ Improvements to existing features
wrapper is updated inplace, a copy is still made internally.
(:issue:`1960`, :issue:`5247`, and... | Fixed bug introduced in b5265a5b84ae1aeaf5fff88f1f9e5872a9b404e6 which change from picking a single random color for the class to picking a random color for each line.
This returns the color selection to a per-set basis.
See http://stackoverflow.com/questions/19667209/colors-in-andrews-curves
| https://api.github.com/repos/pandas-dev/pandas/pulls/5378 | 2013-10-30T02:46:42Z | 2013-10-31T03:28:25Z | 2013-10-31T03:28:25Z | 2014-06-22T05:09:45Z |
repr for PeriodIndex does not handle <=2 elements well (GH5372) | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 0ef2c29af8139..f65c613ddb96a 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -760,7 +760,8 @@ Bug Fixes
(thanks for catching this @yarikoptic!)
- Fixed html tests on win32. (:issue:`4580`)
- Make sure that ``head/tail`` ar... | closes https://github.com/pydata/pandas/issues/5372
| https://api.github.com/repos/pandas-dev/pandas/pulls/5376 | 2013-10-29T19:33:00Z | 2013-10-31T01:24:57Z | 2013-10-31T01:24:56Z | 2014-07-16T08:37:57Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.