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
minor doc updates for pytablesv4
diff --git a/doc/source/io.rst b/doc/source/io.rst index 1108f9ca7ef83..2d7be175ba549 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -854,7 +854,6 @@ after data is already in the table (this may become automatic in the future or a df2 = df[4:] store.append('df', df1) store.append('df', df2) - s...
added a min_itemsize example to the docs min_itemsize can be passed as a dict
https://api.github.com/repos/pandas-dev/pandas/pulls/2387
2012-11-29T15:02:00Z
2012-11-29T16:39:30Z
null
2012-11-29T16:39:30Z
ENH: line_terminator parameter for DataFrame.to_csv
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3f555c800d1eb..2d32079cf8cdd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1305,7 +1305,7 @@ def _helper_csvexcel(self, writer, na_rep=None, cols=None, def to_csv(self, path_or_buf, sep=",", na_rep='', float_format=None, ...
In response to #2326 (Am I doing this right?)
https://api.github.com/repos/pandas-dev/pandas/pulls/2383
2012-11-29T05:02:31Z
2012-11-29T20:24:49Z
null
2014-06-20T21:46:40Z
"x in ix" fails for dupe keys in DatetimeIndex
diff --git a/.travis.yml b/.travis.yml index 33c281b7f6d57..ee60f9d7ad713 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ install: - 'if [ $TRAVIS_PYTHON_VERSION == "3.3" ]; then pip uninstall numpy; pip install https://github.com/numpy/numpy/archive/v1.7.0b2.tar.gz; fi' - 'if [ $TRAVIS_PYTHON_VERSIO...
https://api.github.com/repos/pandas-dev/pandas/pulls/2380
2012-11-29T03:07:24Z
2012-11-29T20:13:07Z
null
2014-06-19T19:39:39Z
BLD: modify travis to install numpy 1.6.2+fixes on py3
diff --git a/.travis.yml b/.travis.yml index 7568ec0763366..33c281b7f6d57 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ python: - 2.7 - 3.1 - 3.2 - # - 3.3 + - 3.3 matrix: include: @@ -13,20 +13,21 @@ matrix: env: VBENCH=true allow_failures: - # - python: 3.3 # until travis ...
1.6.2 and git master have diverged quite a bit, best to narrow down the chance of spurious errors..
https://api.github.com/repos/pandas-dev/pandas/pulls/2378
2012-11-28T23:56:22Z
2012-11-28T23:59:48Z
2012-11-28T23:59:48Z
2012-11-29T16:52:08Z
BUG: py3.3 returns False, not TypeError datetime==datetime+tz #2331
diff --git a/pandas/tseries/tests/test_timeseries.py b/pandas/tseries/tests/test_timeseries.py index ef35c44b53772..b60397bf138c6 100644 --- a/pandas/tseries/tests/test_timeseries.py +++ b/pandas/tseries/tests/test_timeseries.py @@ -2385,8 +2385,12 @@ def test_cant_compare_tz_naive_w_aware(self): self.assertRa...
http://docs.python.org/3/whatsnew/3.3.html#datetime This should leave just one error specific to 3.3 from those mentioned in #2331, and that's parser related. Don't know if other parts of the package depend on the exception being raised.
https://api.github.com/repos/pandas-dev/pandas/pulls/2377
2012-11-28T23:51:15Z
2012-11-30T23:48:01Z
null
2012-11-30T23:48:02Z
ENH: enhance useability of options API
diff --git a/doc/source/v0.10.0.txt b/doc/source/v0.10.0.txt index ff4a4d53ff425..3b365b975754c 100644 --- a/doc/source/v0.10.0.txt +++ b/doc/source/v0.10.0.txt @@ -31,10 +31,11 @@ API changes - New API functions for working with pandas options (GH2097_): - - ``get_option`` / ``set_option`` - get/set the valu...
- Only 4 functions are now defined `get`, `set`, `reset`, `describe` - All functions accept a regexp as input and will try to do the right thing accordingly. For example: get_option("max_rows") now returns the value of print_config.max_rows. - keys are now case-insensitive.
https://api.github.com/repos/pandas-dev/pandas/pulls/2376
2012-11-28T21:06:12Z
2012-11-29T16:44:55Z
null
2012-11-29T16:44:55Z
BLD: fix travis.yml, print is a function in 3.x
diff --git a/.travis.yml b/.travis.yml index 87da143d9d612..7568ec0763366 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,4 +35,4 @@ script: - 'if [ x"$VBENCH" != x"true" ]; then nosetests --exe -w /tmp -A "not slow" pandas; fi' - pwd - 'if [ x"$VBENCH" == x"true" ]; then pip install sqlalchemy git+git://...
https://api.github.com/repos/pandas-dev/pandas/pulls/2375
2012-11-28T18:24:34Z
2012-11-28T18:25:35Z
2012-11-28T18:25:35Z
2012-11-28T18:25:35Z
Incorporate a vbench run into Travis-CI
diff --git a/.travis.yml b/.travis.yml index 3cfb4af167038..87da143d9d612 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,20 +5,34 @@ python: - 2.7 - 3.1 - 3.2 + # - 3.3 + +matrix: + include: + - python: 2.7 + env: VBENCH=true + + allow_failures: + # - python: 3.3 # until travis yograde to 1.8.4...
A seperate 2.7 env is spawned, which is allowed to fail without failing the entire build. The results are posted to a public gist as a json file, and the gist url is printed in the log. A helper function in vb_suite/perf_HEAD.py accepts a travis build number, It then locates the VBENCH job within the build, fetches t...
https://api.github.com/repos/pandas-dev/pandas/pulls/2373
2012-11-28T03:03:09Z
2012-11-28T04:35:39Z
null
2014-07-21T09:13:49Z
DOC: mention new options API in whatsnew 0.10.0
diff --git a/doc/source/v0.10.0.txt b/doc/source/v0.10.0.txt index 8a5652523dfda..ff4a4d53ff425 100644 --- a/doc/source/v0.10.0.txt +++ b/doc/source/v0.10.0.txt @@ -18,20 +18,33 @@ API changes .. ipython:: python def f(x): - return Series([ x, x**2 ], index = ['x', 'x^s']) + return Series([ x...
https://api.github.com/repos/pandas-dev/pandas/pulls/2372
2012-11-27T23:15:05Z
2012-11-27T23:15:15Z
2012-11-27T23:15:15Z
2012-11-27T23:15:15Z
Pytablesv4
diff --git a/RELEASE.rst b/RELEASE.rst index a34d5f0d4b58f..171b0e8bd2694 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -34,6 +34,7 @@ pandas 0.10.0 - Grouped histogram via `by` keyword in Series/DataFrame.hist (#2186) - Support optional ``min_periods`` keyword in ``corr`` and ``cov`` for both Series and Dat...
Refactor of PyTables support to allow multiple table types. This commit allows for support of multiple table types in a pytables hdf file, supporting the existing infrastructure in a backwards compatible manner (LegacyTable) while extending to a slightly modified format to support AppendableTables and futu...
https://api.github.com/repos/pandas-dev/pandas/pulls/2371
2012-11-27T21:30:00Z
2012-11-29T00:40:18Z
2012-11-29T00:40:18Z
2012-11-29T16:47:29Z
Excelfancy
diff --git a/pandas/core/format.py b/pandas/core/format.py index d13cee0b24da2..db50955c13c3e 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -17,6 +17,9 @@ import numpy as np +import itertools + + docstring_to_string = """ Parameters ---------- @@ -400,6 +403,7 @@ def _get_column_na...
adds to export dataframe for excel: - multiindex (merge cells similar to htmlformatter) - border - bold header - ability to add dataframe in same sheet (startrow, startcol) http://cl.ly/image/2r102L0E1l23 solves Issue #2294
https://api.github.com/repos/pandas-dev/pandas/pulls/2370
2012-11-27T20:23:26Z
2012-11-29T19:32:13Z
2012-11-29T19:32:13Z
2014-06-16T03:26:35Z
ENH: partial date slicing for day, hour, and minute resolutions #2306
diff --git a/pandas/src/datetime.pyx b/pandas/src/datetime.pyx index 44660cd3bb682..bb5ed79cc4b5d 100644 --- a/pandas/src/datetime.pyx +++ b/pandas/src/datetime.pyx @@ -1603,3 +1603,100 @@ cpdef normalize_date(object dt): return datetime(dt.year, dt.month, dt.day) else: raise TypeError('Unrecogni...
https://api.github.com/repos/pandas-dev/pandas/pulls/2369
2012-11-27T19:03:14Z
2012-12-02T17:10:49Z
2012-12-02T17:10:49Z
2012-12-02T17:10:49Z
BLD: temporary workaround for travis numpy/py3 woes
diff --git a/.travis.yml b/.travis.yml index e90a83257e210..3cfb4af167038 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,17 @@ python: - 3.2 install: - - pip install --use-mirrors cython numpy nose pytz python-dateutil + - export PYTHONIOENCODING=utf8 # activate venv 1.8.4 "detach" fix + - virtualenv --...
note that py3 is now tested against numpy recent git, not pypi, just until the travis people sort things out.
https://api.github.com/repos/pandas-dev/pandas/pulls/2365
2012-11-27T06:36:31Z
2012-11-27T06:51:37Z
2012-11-27T06:51:37Z
2013-03-26T12:52:12Z
doc updates for whatsnew v0.10.0
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 831fafe5e531d..4a37222b6dd4c 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -560,6 +560,15 @@ The dimension of the returned result can also change: In [11]: grouped.apply(f) +``apply`` on a Series can operate on a returned ...
added whatsnew for 0.10.0 added new apply functionality to whatsnew and flexible apply in groupby
https://api.github.com/repos/pandas-dev/pandas/pulls/2364
2012-11-27T03:11:11Z
2012-11-27T22:25:41Z
null
2014-07-08T19:39:42Z
added an example of boolean selection using OR
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index c2ef0d74ced53..c5dedcca3568f 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -189,6 +189,7 @@ Using a boolean vector to index a Series works exactly as in a numpy ndarray: s[s > 0] s[(s < 0) & (s > -0.5)] + s[(s < -1)...
as a follow-up to this [SO post](http://stackoverflow.com/questions/13572576/using-or-to-select-data-in-pandas/13572798#13572798) I thought it might be nice to have an example in the docs
https://api.github.com/repos/pandas-dev/pandas/pulls/2362
2012-11-26T21:26:08Z
2012-11-27T00:02:13Z
null
2014-06-27T22:56:15Z
endianess fixes for #2318
diff --git a/pandas/stats/tests/test_moments.py b/pandas/stats/tests/test_moments.py index abb160fc0d00b..b421d1083d6cc 100644 --- a/pandas/stats/tests/test_moments.py +++ b/pandas/stats/tests/test_moments.py @@ -171,6 +171,8 @@ def test_fperr_robustness(self): data = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\...
pending fix verifcation from @juliantaylor
https://api.github.com/repos/pandas-dev/pandas/pulls/2359
2012-11-25T22:55:40Z
2012-11-26T22:58:59Z
null
2014-06-28T22:42:58Z
BUG: hash random. in 3.3 exposed reliance on dict traversal order. #2331
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index 04c3f80df669a..91e0bf8a7aa69 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -10,6 +10,7 @@ from pandas.core.series import Series from pandas.core.panel import Panel from pandas.util.decorators import cache_readonly, Appender +fro...
fixes all failing tests mentioned in #2331, perhaps others lurking.
https://api.github.com/repos/pandas-dev/pandas/pulls/2358
2012-11-25T22:26:35Z
2012-11-27T02:34:22Z
null
2014-06-19T00:06:44Z
CLN: more test_perf cleanups
diff --git a/vb_suite/test_perf.py b/vb_suite/test_perf.py index 0d11f403b7651..85a21382f1f44 100755 --- a/vb_suite/test_perf.py +++ b/vb_suite/test_perf.py @@ -18,14 +18,11 @@ --- These are the steps taken: 1) create a temp directory into which vbench will clone the temporary repo. -2) parse the Git tree to obtain ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2353
2012-11-25T12:31:20Z
2012-11-26T23:57:52Z
null
2014-07-20T16:06:46Z
Support for datetime columns with rpy2
diff --git a/pandas/rpy/common.py b/pandas/rpy/common.py index 481714b94386c..d2a9eaefffd1b 100644 --- a/pandas/rpy/common.py +++ b/pandas/rpy/common.py @@ -197,6 +197,40 @@ def convert_robj(obj, use_pandas=True): raise Exception('Do not know what to do with %s object' % type(obj)) + +def convert_to_r_posixct(...
Check to see if the values we're looking at are numpy datetime64 objects. If they are, we can assume we're looking at a Timestamp object, which subclasses Python's datetime class, and we return a struct_time which is understood by rpy2's POSIXct class. Attempt at a fix for #2351
https://api.github.com/repos/pandas-dev/pandas/pulls/2352
2012-11-25T06:59:06Z
2012-12-01T20:49:06Z
null
2014-08-11T23:16:20Z
BUG: del df[k] with non-unique key
diff --git a/pandas/core/common.py b/pandas/core/common.py index aa7ed9cd6b76f..c6e58e478ec53 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -699,6 +699,23 @@ def iterpairs(seq): return itertools.izip(seq_it, seq_it_next) +def split_ranges(mask): + """ Generates tuples of ranges which cov...
This touches some delicate functions to be messing with, so I've split off the underlying logic into a function in common and added an exhaustive test. Would welcome review none the less. Also, I tried to test for nagative perf. There must something wrong with the test since comparing the commit after just adding a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2349
2012-11-24T21:51:27Z
2012-11-25T19:17:47Z
2012-11-25T19:17:47Z
2014-06-12T16:15:38Z
Pytables: bug fixes, code cleanup, and much updated docs
diff --git a/doc/source/io.rst b/doc/source/io.rst index f74120ad7ef57..5dfc80d12d22b 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -1,3 +1,4 @@ + .. _io: .. currentmodule:: pandas @@ -793,17 +794,75 @@ Objects can be written to the file just like adding key-value pairs to a dict: major_a...
Should be completely backwards compatible mainly bug fixes, code clean, and much updated docs should merge cleanly 1. added **str** (to do **repr**) 2. added **delitem** to support store deletion syntatic sugar 3. row removal in tables is much faster if rows are consecutive (remove also returns the number of rows re...
https://api.github.com/repos/pandas-dev/pandas/pulls/2346
2012-11-24T20:47:44Z
2012-11-28T00:31:20Z
null
2014-06-19T02:01:31Z
test_perf, cmdline args and fixes
diff --git a/test_perf.sh b/test_perf.sh index 5880769dae177..c71f37b233b7a 100755 --- a/test_perf.sh +++ b/test_perf.sh @@ -3,10 +3,10 @@ CURDIR=$(pwd) BASEDIR=$(readlink -f $(dirname $0 )) -echo "Use vbench to compare HEAD against a known-good baseline." +echo "Use vbench to compare the performance of one commit...
https://api.github.com/repos/pandas-dev/pandas/pulls/2344
2012-11-24T16:18:31Z
2012-11-25T04:34:49Z
null
2014-07-08T10:24:39Z
updated docs for indexing to incorporate where and mask
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index a77e2c928abfa..78bbd34b310ae 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -231,22 +231,64 @@ Note, with the :ref:`advanced indexing <indexing.advanced>` ``ix`` method, you may select along more than one axis using boolean vec...
updated docs in the indexing section for new Series/DataFrame methods where and mask
https://api.github.com/repos/pandas-dev/pandas/pulls/2343
2012-11-24T15:05:53Z
2012-11-24T22:16:02Z
null
2012-11-24T22:16:02Z
Update doc/source/r_interface.rst
diff --git a/doc/source/r_interface.rst b/doc/source/r_interface.rst index 88f4810109936..d375b3da38d82 100644 --- a/doc/source/r_interface.rst +++ b/doc/source/r_interface.rst @@ -15,10 +15,14 @@ rpy2 / R interface If your computer has R and rpy2 (> 2.2) installed (which will be left to the reader), you will be able...
rpy2-2.3.0 is becoming the current release. Changes to the API are relatively few. 
https://api.github.com/repos/pandas-dev/pandas/pulls/2339
2012-11-24T02:17:59Z
2012-11-25T05:33:38Z
null
2012-11-25T05:33:38Z
Where/mask methods for Series
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index a77e2c928abfa..6eb141930f274 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -231,22 +231,49 @@ Note, with the :ref:`advanced indexing <indexing.advanced>` ``ix`` method, you may select along more than one axis using boolean vec...
add where and mask methods for Series, analagous to DataFrame methods added for 0.9.1 passes all tests where is equivalent to: `s[cond].reindex_like(s).fillna(other)` ``` In [7]: s = pd.Series(np.random.rand(5)) In [8]: s Out[8]: 0 0.638664 1 0.574688 2 0.460510 3 0.641840 4 0.044129 In [10]: s[0:2]...
https://api.github.com/repos/pandas-dev/pandas/pulls/2337
2012-11-23T21:42:36Z
2012-11-24T05:20:52Z
null
2014-06-12T16:27:48Z
VB: add test for iteritems performance
diff --git a/vb_suite/frame_methods.py b/vb_suite/frame_methods.py index 08f041d835f76..7cf1fc6cf34c5 100644 --- a/vb_suite/frame_methods.py +++ b/vb_suite/frame_methods.py @@ -65,3 +65,14 @@ frame_boolean_row_select = Benchmark('df[bool_arr]', setup, start_date=datetime(2011, 1...
catch the regression noted in #2273 next time. ``` frame_iteritems 24.85 3.12 7.98 Columns: test_name | head_time [ms] | baseline_time [ms] | ratio - a Ratio of 1.30 means HEAD is 30% slower then the Baseline. Head [59d318c] : revert Baseline [bdbca8e] : BUG: fix borked data-copying...
https://api.github.com/repos/pandas-dev/pandas/pulls/2335
2012-11-23T12:20:14Z
2012-11-23T21:10:35Z
null
2012-11-23T21:10:35Z
Fix seconds parsing #2209
diff --git a/pandas/src/inference.pyx b/pandas/src/inference.pyx index 3405dcb779414..07ff3b88326f1 100644 --- a/pandas/src/inference.pyx +++ b/pandas/src/inference.pyx @@ -645,8 +645,10 @@ def try_parse_datetime_components(ndarray[object] years, ndarray[object] months, result = np.empty(n, dtype='O') for i...
Creating a milliseconds entry by doing math on the seconds entry: ``` msecs = round(float(seconds[i] % 1)*10**6) ```
https://api.github.com/repos/pandas-dev/pandas/pulls/2334
2012-11-23T03:26:32Z
2012-11-30T23:59:17Z
null
2014-06-24T22:55:32Z
df.combine_first() with empty frame should still yield unioned index
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f7f296e822e15..c0e0c2a464a1d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3503,15 +3503,18 @@ def combine(self, other, func, fill_value=None): ------- result : DataFrame """ - if other.empty: - ...
closes #2307
https://api.github.com/repos/pandas-dev/pandas/pulls/2332
2012-11-22T20:29:50Z
2012-11-24T00:24:50Z
null
2014-07-14T03:26:39Z
add check for endianess in major constructors
diff --git a/pandas/core/common.py b/pandas/core/common.py index 30f6b66a2b7d3..b5529eea11b0a 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -604,6 +604,15 @@ def ensure_float(arr): return arr +def assert_ndarray_endianess(ar): + import sys + little_endian = (sys.byteorder == 'little')...
apropos #2318
https://api.github.com/repos/pandas-dev/pandas/pulls/2330
2012-11-22T19:48:44Z
2013-02-08T11:03:02Z
null
2014-07-04T18:49:30Z
Fixes for #1000, to_string(), to_html() should respect col_space
diff --git a/doc/source/io.rst b/doc/source/io.rst index f74120ad7ef57..3fbc45dda8fa4 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -668,7 +668,7 @@ over the string representation of the object. All arguments are optional: - ``buf`` default None, for example a StringIO object - ``columns`` default N...
Note that the semantics of `col_space` are different in each case, characters vs. pixels, but that's reasonable. I hope this doesn't presage more html configuration via kwd arguments, yonder way madness lies. also, there's a discrepency between the docstring and [io.rst](https://github.com/pydata/pandas/blame/master...
https://api.github.com/repos/pandas-dev/pandas/pulls/2328
2012-11-22T17:26:09Z
2012-11-29T20:32:03Z
2012-11-29T20:32:02Z
2014-06-25T18:33:51Z
CLN: Dropped python 2.5 support
diff --git a/pandas/core/common.py b/pandas/core/common.py index 30f6b66a2b7d3..71d767a57bccb 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -8,13 +8,6 @@ import itertools -try: - next -except NameError: # pragma: no cover - # Python < 2.6 - def next(x): - return x.next() - fro...
https://api.github.com/repos/pandas-dev/pandas/pulls/2323
2012-11-22T00:47:48Z
2012-11-23T04:52:17Z
2012-11-23T04:52:17Z
2014-06-19T10:32:41Z
Make sparse DataFrame and Series construction more efficient
diff --git a/pandas/sparse/frame.py b/pandas/sparse/frame.py index c38936b55696f..58d3a90e9b7db 100644 --- a/pandas/sparse/frame.py +++ b/pandas/sparse/frame.py @@ -92,7 +92,9 @@ def __init__(self, data=None, index=None, columns=None, columns = Index([]) else: for c in col...
Cleans up SparseSeries and SparseDataFrame initialization code so no objects are created unnecessarily. Currently if you run the (potentially useless) statement: ``` SparseDataFrame(columns=np.arange(100000), index=np.arange(100000)) ``` pandas will consume memory and time filling in empty Series objects only to then...
https://api.github.com/repos/pandas-dev/pandas/pulls/2322
2012-11-21T23:56:33Z
2012-11-24T23:05:22Z
null
2014-06-12T06:37:53Z
BUG: Fix long index repr #2319
diff --git a/pandas/core/index.py b/pandas/core/index.py index b7792309f66ff..12d2574d5efb6 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -133,11 +133,15 @@ def _shallow_copy(self): return self.view() def __repr__(self): + if len(self) > 6 and len(self) > np.get_printoptions()['...
``` python In [2]: pd.Index(np.arange(10000)) Out[2]: Int64Index([0, 1, 2, ..., 9997, 9998, 9999], dtype=int64) ``` broken by 95678ebf. configurable via `np.set_printoptions (threshold)`, like the original version which used np.ndarray.**repr**. closes #2319
https://api.github.com/repos/pandas-dev/pandas/pulls/2321
2012-11-21T22:41:16Z
2012-11-23T04:55:23Z
null
2014-06-14T08:30:00Z
BUG: PeriodIndex as DataFrame column should box to Periods #2243 #2281
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f7f296e822e15..a78710d49bbd3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2024,6 +2024,8 @@ def _sanitize_column(self, key, value): if not isinstance(value, np.ndarray): value = com._asarray_tuples...
https://api.github.com/repos/pandas-dev/pandas/pulls/2310
2012-11-21T05:26:35Z
2012-11-23T05:43:22Z
null
2012-11-23T05:43:22Z
ENH: DataFrame.from_records takes iterator #1794
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 14b435e0aafc8..218c04b6fd9e5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -872,7 +872,7 @@ def to_dict(self, outtype='dict'): @classmethod def from_records(cls, data, index=None, exclude=None, columns=None, - ...
@wesm are there other cases you can think of we should add as test case?
https://api.github.com/repos/pandas-dev/pandas/pulls/2297
2012-11-19T23:20:40Z
2012-11-20T19:29:28Z
null
2012-11-20T19:29:28Z
BUG: remove asserts from core #2288
diff --git a/pandas/core/format.py b/pandas/core/format.py index d87d2006785db..13e504a8e1f88 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -293,8 +293,9 @@ def to_latex(self, force_unicode=False, column_format=None): if column_format is None: column_format = '|l|%s|' % '|'.j...
https://api.github.com/repos/pandas-dev/pandas/pulls/2293
2012-11-19T20:46:08Z
2012-11-20T19:36:00Z
null
2014-06-12T16:07:43Z
BUG: dtype=object should stop conversion from object in frame constructo...
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 14b435e0aafc8..04f72de80d500 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -402,8 +402,7 @@ def __init__(self, data=None, index=None, columns=None, dtype=None, index = _get_names_from_index(data) if ...
...r #2255 don't call maybe_convert_objects in _convert_object_array if dtype is object. Note that it also stops other type conversions too.
https://api.github.com/repos/pandas-dev/pandas/pulls/2291
2012-11-19T19:22:53Z
2012-11-24T00:31:38Z
2012-11-24T00:31:38Z
2014-06-25T01:09:13Z
Support for customizing parallel_plot() x axis tickmarks
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 0724799ced6f2..b4bfab7a5d8dd 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -460,6 +460,15 @@ def test_parallel_coordinates(self): path = os.path.join(curpath(), 'data/iris.csv') df = re...
If the columns are already numeric, then you can simply use "use_columns=True" to have x-axis scaled according to those values. Otherwise the "xticks" parameter can be used to manually specify xticks to use. Feedback or suggestions are welcome!
https://api.github.com/repos/pandas-dev/pandas/pulls/2287
2012-11-19T03:26:26Z
2012-12-11T20:34:24Z
2012-12-11T20:34:24Z
2012-12-11T20:34:24Z
API: fillna method argument should be None by default and raise on both ...
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bb0e4512ea267..6ed54ab67026d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3041,7 +3041,7 @@ def reorder_levels(self, order, axis=0): #---------------------------------------------------------------------- # Filling NA's - ...
...value and method #2027 @wesm what do you think of the API change? If you're ok with it I'll propagate to DataFrame and Panel.
https://api.github.com/repos/pandas-dev/pandas/pulls/2284
2012-11-18T22:28:48Z
2012-11-30T23:46:12Z
null
2014-06-12T07:17:06Z
ENH: google analytics integration using oauth2
diff --git a/.gitignore b/.gitignore index d17c869c4c1ba..320f03a0171a2 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,5 @@ scikits pandas.egg-info *\#*\# .tox +pandas/io/*.dat +pandas/io/*.json \ No newline at end of file diff --git a/pandas/io/auth.py b/pandas/io/auth.py new file mode 100644 index 000000000...
skips tests if no network or authentication config file is missing @wesm, mainly just want a quick review of the testing suite to make sure it skips the test in the right situations.
https://api.github.com/repos/pandas-dev/pandas/pulls/2283
2012-11-18T20:59:41Z
2012-12-01T15:25:45Z
2012-12-01T15:25:45Z
2014-06-14T13:14:30Z
Easy vbench testing of HEAD against a known-good baseline
diff --git a/test_perf.sh b/test_perf.sh new file mode 100755 index 0000000000000..5880769dae177 --- /dev/null +++ b/test_perf.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +CURDIR=$(pwd) +BASEDIR=$(readlink -f $(dirname $0 )) + +echo "Use vbench to compare HEAD against a known-good baseline." +echo "Make sure the python 'vbench' ...
I hope to avoid more performance regressions in the future, in my own PR's if no one else's... Her'es some example output: ``` groupby_apply_dict_return 33.20 33.26 1.00 frame_reindex_axis1 2.32 2.32 1.00 frame_fillna_inplace 18.34 18.31 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2279
2012-11-18T00:52:58Z
2012-11-23T16:33:53Z
null
2012-11-25T04:52:55Z
ENH: add encoding/decoding error handling
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index b3a12fa8b0f3b..469804ecca67e 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -519,35 +519,37 @@ def str_get(arr, i): return _na_map(f, arr) -def str_decode(arr, encoding): +def str_decode(arr, encoding, errors="strict"): ...
When encoding/decoding strings with errors allow you to pass error handling strings. This works the same as error handling for other encode/decode functions. Defaults to 'strict', but you can pass 'ignore', 'replace'. Extends work done in #1706.
https://api.github.com/repos/pandas-dev/pandas/pulls/2276
2012-11-16T21:58:47Z
2012-11-17T03:50:06Z
null
2014-06-12T13:19:13Z
Added support for specifying colors in parallel_plot()
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 0724799ced6f2..708f8143de3d5 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -460,6 +460,10 @@ def test_parallel_coordinates(self): path = os.path.join(curpath(), 'data/iris.csv') df = re...
Sometimes the random colors chosen in parallel_plot are very unfortunate, so I thought it would be nice to provide an option to pass a list of colors in.
https://api.github.com/repos/pandas-dev/pandas/pulls/2274
2012-11-16T20:52:32Z
2012-11-19T00:11:39Z
null
2012-11-19T00:27:59Z
ENH: pprint_thing escapes tabs. close #2038
diff --git a/pandas/core/common.py b/pandas/core/common.py index 936f1d6357e4e..6c0cda736fd2c 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -1178,6 +1178,8 @@ def pprint_thing(thing, _nest_lvl=0): # either utf-8 or we replace errors result = str(thing).decode('utf-8', "repl...
another win for DRY.
https://api.github.com/repos/pandas-dev/pandas/pulls/2271
2012-11-16T17:20:54Z
2012-11-17T03:53:16Z
null
2012-11-17T03:53:16Z
BUG: loses nano precision when converting Timestamp objects #2252
diff --git a/pandas/src/datetime.pyx b/pandas/src/datetime.pyx index bdfa04eaca441..846c3f4d21380 100644 --- a/pandas/src/datetime.pyx +++ b/pandas/src/datetime.pyx @@ -605,6 +605,9 @@ cpdef convert_to_tsobject(object ts, object tz=None): if obj.tzinfo is not None and not _is_utc(obj.tzinfo): ...
quick and dirty: add nanoseconds after conversion to datetimestruct #2252
https://api.github.com/repos/pandas-dev/pandas/pulls/2265
2012-11-15T21:19:02Z
2012-11-23T21:11:39Z
null
2014-06-22T14:35:35Z
Pytables selection enhancement & docs update for HDF5 tables
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index a77e2c928abfa..6eb141930f274 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -231,22 +231,49 @@ Note, with the :ref:`advanced indexing <indexing.advanced>` ``ix`` method, you may select along more than one axis using boolean vec...
1. added **str** (to do **repr**) 2. row removal in tables is much faster if rows are consecutive 3. added Term class, refactored Selection (this is backwards compatible) Term is a concise way of specifying conditions for queries, e.g. ``` Term(dict(field = 'index', op = '>', value = '20121114')) Term(...
https://api.github.com/repos/pandas-dev/pandas/pulls/2264
2012-11-15T20:16:53Z
2012-11-24T18:09:04Z
null
2014-06-12T20:20:07Z
pytables selection enhancements (to close GH #1966)
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index af480b5a6457f..224ac82237dfd 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -7,6 +7,7 @@ from datetime import datetime, date import time +import re import numpy as np from pandas import ( @@ -916,27 +917,40 @@ def _read_panel_ta...
in pandas/io/pytables.py 1. added **str** (to do **repr**) 2. row removal in tables is much faster if rows are consecutive 3. added Term class, refactored Selection (this is backdwards compatible) Term is a concise way of specifying conditions for queries, e.g. ``` Term(dict(field = 'index', op = '>', val...
https://api.github.com/repos/pandas-dev/pandas/pulls/2261
2012-11-15T19:09:12Z
2012-11-15T20:35:39Z
null
2014-06-19T00:02:49Z
Fixes - Block.repr unicode and docstring tweak
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dd96cd2b10ae4..c176bbdaa3c46 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -899,6 +899,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None, else: arrays, columns = _to_arrays(data, columns, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2256
2012-11-15T14:31:05Z
2012-11-18T22:00:33Z
null
2014-06-27T13:41:00Z
update 0.9.1 whatsnew to add where/mask commentary
diff --git a/doc/source/v0.9.1.txt b/doc/source/v0.9.1.txt index 6cf6bb0ed7274..10599d2e99727 100644 --- a/doc/source/v0.9.1.txt +++ b/doc/source/v0.9.1.txt @@ -42,14 +42,44 @@ New features - DataFrame has new `where` and `mask` methods to select values according to a given boolean mask (GH2109_, GH2151_) - ...
update whatsnew docs for where/mask (prob could be added to main docs at some point)
https://api.github.com/repos/pandas-dev/pandas/pulls/2254
2012-11-15T02:03:33Z
2012-11-15T03:14:09Z
null
2014-06-26T19:47:36Z
CLN: df.iteritems() can use self.icol()
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index dd96cd2b10ae4..9ce9b303648f8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -637,7 +637,7 @@ def keys(self): def iteritems(self): """Iterator over (column, series) pairs""" for i, k in enumerate(self.columns): - ...
now that all the issues have been fixed.
https://api.github.com/repos/pandas-dev/pandas/pulls/2253
2012-11-15T00:46:32Z
2012-11-17T02:55:43Z
null
2012-11-17T02:55:45Z
BUG: icol() should propegate fill_value for sparse data frames #2249
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d91be2d1f36c1..4b506a23f9fb2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1734,8 +1734,15 @@ def icol(self, i): return self.ix[:, i] values = self._data.iget(i) - return self._col_klass.from...
#2249
https://api.github.com/repos/pandas-dev/pandas/pulls/2250
2012-11-14T20:46:34Z
2012-11-15T00:38:09Z
null
2014-07-17T12:26:16Z
ENH: Import DataReader and Options into namespace
diff --git a/pandas/__init__.py b/pandas/__init__.py index 3760e3fbc434b..49837caf81f58 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -30,6 +30,7 @@ from pandas.io.parsers import (read_csv, read_table, read_clipboard, read_fwf, to_clipboard, ExcelFile, ...
Don't know if there's any reason not to import these. I thought maybe they'd be better off in the data namespace though. Thoughts?
https://api.github.com/repos/pandas-dev/pandas/pulls/2246
2012-11-14T16:14:20Z
2012-11-14T16:19:19Z
null
2012-11-14T16:19:19Z
BUG: ExcelWriter raises exception on PeriodIndex #2240
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 31c1a09f409c3..deed613c2d992 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1174,8 +1174,12 @@ def _helper_csvexcel(self, writer, na_rep=None, cols=None, encoded_cols = list(cols) writer.writerow(encoded_c...
convert to_timestamp first otherwise roundtripping is hard and the output isn't all that useful for processing in Excel
https://api.github.com/repos/pandas-dev/pandas/pulls/2244
2012-11-14T05:37:28Z
2012-11-14T16:55:39Z
null
2014-07-15T12:47:03Z
Panelnd
diff --git a/pandas/core/api.py b/pandas/core/api.py old mode 100644 new mode 100755 index 8cf3b7f4cbda4..6cbdae430ba0b --- a/pandas/core/api.py +++ b/pandas/core/api.py @@ -4,7 +4,6 @@ import numpy as np from pandas.core.algorithms import factorize, match, unique, value_counts - from pandas.core.common import isn...
## Panel4D ( note - this superseeds the prior branch, FDPanel and this is 0.9rc1 compatible) Panel4D is like a Panel object, but provides 4 dimensions labels, items, major_axis, minor_axis instead of using a dict of Panels to hold data, the Panel4D provides a convenient represenation in pandas space with named dim...
https://api.github.com/repos/pandas-dev/pandas/pulls/2242
2012-11-14T04:29:16Z
2012-12-02T23:03:23Z
2012-12-02T23:03:23Z
2014-06-12T10:20:37Z
Ignore terminal width when not running in an interactive shell
diff --git a/pandas/core/common.py b/pandas/core/common.py index f9af37872d1b7..936f1d6357e4e 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -1073,6 +1073,14 @@ def _concat_compat(to_concat, axis=0): else: return np.concatenate(to_concat, axis=axis) +def in_interactive_session(): + ...
shell use with python/ipython is unaffected, but redirecting to a file gives you all the columns unles print_config.max_columns is set. #1610.
https://api.github.com/repos/pandas-dev/pandas/pulls/2241
2012-11-14T00:29:59Z
2012-11-14T17:29:58Z
null
2014-07-04T07:51:38Z
BUG: Incorrect error message due to zero based levels. #2226
diff --git a/pandas/core/index.py b/pandas/core/index.py index 1e4d6347aaeec..9638da8f418cf 100644 --- a/pandas/core/index.py +++ b/pandas/core/index.py @@ -1364,9 +1364,10 @@ def _get_level_number(self, level): raise Exception('Level %s not found' % str(level)) elif level < 0: ...
Simple fix in error message that assume levels starting at 1 instead of 0.
https://api.github.com/repos/pandas-dev/pandas/pulls/2231
2012-11-12T00:44:52Z
2012-11-12T04:37:37Z
2012-11-12T04:37:37Z
2012-11-12T04:37:41Z
use boolean indexing via getitem to trigger masking; add inplace keyword to where
diff --git a/pandas/core/frame.py b/pandas/core/frame.py old mode 100644 new mode 100755 index 31c1a09f409c3..c9184f148e5a9 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1775,9 +1775,8 @@ def __getitem__(self, key): elif isinstance(self.columns, MultiIndex): return self._getitem_multil...
in core/frame.py changed method _getitem_ to use _mask_ directly (e.g. df.mask(df > 0) is equivalent semantically to df[df>0]) this would be a small API change as before df[df >0] returned a boolean np array added inplace keyword to _where_ method (to update the dataframe in place, default is NOT to use inplace, an...
https://api.github.com/repos/pandas-dev/pandas/pulls/2230
2012-11-11T21:19:09Z
2012-11-13T22:52:23Z
2012-11-13T22:52:23Z
2014-06-12T19:22:25Z
Unicode : change df.to_string() and friends to always return unicode objects
diff --git a/pandas/core/format.py b/pandas/core/format.py index 13e504a8e1f88..f2999c63db38e 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -36,7 +36,7 @@ string representation of NAN to use, default 'NaN' formatters : list or dict of one-parameter functions, optional formatte...
closes #2225 **Note**: Although all the tests pass with minor fixes, this PR has an above-average chance of breaking things for people who have relied on broken behaviour thus far. `df.tidy_repr` combines several strings to produce a result. when one component is unicode and other other is a non-ascii bytestring, it ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2224
2012-11-11T18:25:14Z
2012-11-27T02:46:35Z
2012-11-27T02:46:35Z
2014-06-13T01:01:53Z
CLN: use com._is_sequence instead of duplicating code
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 1ab2c3b7f8460..0cfb4004708fa 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -10,20 +10,9 @@ # "null slice" _NS = slice(None, None) - -def _is_sequence(x): - try: - iter(x) - assert(not isinstance(x, basestri...
https://api.github.com/repos/pandas-dev/pandas/pulls/2223
2012-11-11T12:46:01Z
2012-11-12T16:23:10Z
2012-11-12T16:23:10Z
2012-11-12T16:23:20Z
beef-up tests of arith operators on panel and df
diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py index 0b36e8d39a00a..8ef2df02d6447 100644 --- a/pandas/tests/test_frame.py +++ b/pandas/tests/test_frame.py @@ -3114,6 +3114,39 @@ def test_arith_mixed(self): 'B': [2, 4, 6]}) assert_frame_equal(result, expected...
https://api.github.com/repos/pandas-dev/pandas/pulls/2222
2012-11-11T12:41:17Z
2012-11-12T16:41:42Z
null
2014-06-16T09:15:24Z
fixes for #2218, #2219
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 31c1a09f409c3..05d3713375481 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -633,7 +633,8 @@ def keys(self): def iteritems(self): """Iterator over (column, series) pairs""" - return ((k, self[k]) for k in self.columns...
4a5b75b (the fix for #2219) triggers the issue in #2220 which makes a test fail, afiact, that's a genuine issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/2221
2012-11-11T12:30:20Z
2012-11-13T23:27:47Z
2012-11-13T23:27:47Z
2014-07-07T19:30:39Z
Small tweaks to vb_suite
diff --git a/vb_suite/run_suite.py b/vb_suite/run_suite.py old mode 100644 new mode 100755 index febd9d1fa6cad..0c03d17607f4e --- a/vb_suite/run_suite.py +++ b/vb_suite/run_suite.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python from vbench.api import BenchmarkRunner from suite import * diff --git a/vb_suite/suite.py b/vb_...
I had a couple of false starts with vbench in the past, Hopefully these trivial changes will help make it work out of the box for more people.
https://api.github.com/repos/pandas-dev/pandas/pulls/2216
2012-11-10T14:23:31Z
2012-11-13T23:51:46Z
null
2013-12-04T00:57:53Z
BUG: coerce ndarray dtype to object when comparing series
diff --git a/pandas/core/series.py b/pandas/core/series.py index 4194cbd4e4156..b6e1448514112 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -110,7 +110,10 @@ def na_op(x, y): y = lib.list_to_object_array(y) if isinstance(y, np.ndarray): - result = lib.v...
fixes #1926 (partialy at least)
https://api.github.com/repos/pandas-dev/pandas/pulls/2214
2012-11-09T23:34:41Z
2012-11-14T00:02:28Z
null
2014-07-02T07:41:20Z
ENH: eliminate _str() in favor of pprint_thing
diff --git a/pandas/core/format.py b/pandas/core/format.py index aae911ba807ef..58353a823e7e5 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -405,13 +405,6 @@ def _get_column_name_list(self): names.append('' if columns.name is None else columns.name) return names - -def _str(x...
https://api.github.com/repos/pandas-dev/pandas/pulls/2206
2012-11-09T17:59:02Z
2012-11-09T19:12:37Z
null
2012-11-09T19:12:37Z
set link target for faq site
diff --git a/doc/source/faq.rst b/doc/source/faq.rst index 0f676ba6066de..2a3620f8ae50c 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -21,6 +21,7 @@ Frequently Asked Questions (FAQ) import matplotlib.pyplot as plt plt.close('all') +.. _ref-scikits-migration: Migrating from scikits.timeseries ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2204
2012-11-09T12:39:28Z
2012-11-09T16:44:15Z
null
2012-11-09T16:44:15Z
link the info on scikits.timeseries
diff --git a/doc/source/related.rst b/doc/source/related.rst index e613d34c2a29f..33dad8115e5b1 100644 --- a/doc/source/related.rst +++ b/doc/source/related.rst @@ -45,3 +45,13 @@ customizable by the user (so 5-minutely data is easier to do with pandas for example). We are aiming to merge these libraries together i...
link to the FAQ, devel pages and issue list.
https://api.github.com/repos/pandas-dev/pandas/pulls/2203
2012-11-09T12:37:26Z
2012-11-09T17:19:06Z
null
2013-12-04T00:57:52Z
PR: unicode, mostly
diff --git a/pandas/core/common.py b/pandas/core/common.py index 7bbbaab49e864..46c28e8af52ac 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -1140,6 +1140,9 @@ def pprint_thing(thing, _nest_lvl=0): from pandas.core.format import print_config if thing is None: result = '' + elif ...
f2db4c1 fixes the `UnboundLocalError` mentioned in #2200.
https://api.github.com/repos/pandas-dev/pandas/pulls/2201
2012-11-08T23:41:48Z
2012-11-09T17:29:02Z
2012-11-09T17:29:02Z
2014-06-16T22:34:21Z
BUG: join_non_unique doesn't sort properly for DatetimeIndex #2196
diff --git a/pandas/core/common.py b/pandas/core/common.py index 7bbbaab49e864..60a0c30a49d78 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -852,6 +852,13 @@ def is_integer_dtype(arr_or_dtype): (issubclass(tipo, np.datetime64) or issubclass(tipo, np.timedelta64))) +def _...
use the int64 factorizer
https://api.github.com/repos/pandas-dev/pandas/pulls/2197
2012-11-08T15:48:53Z
2012-11-09T16:43:07Z
null
2012-11-09T16:43:07Z
Updating help text for plot_series
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index 00724a2dc35a0..98cf676c60a4d 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -1301,7 +1301,9 @@ def plot_series(series, label=None, kind='line', use_index=True, rot=None, Parameters ---------- label : label arg...
description for parameter 'kind' was given twice.
https://api.github.com/repos/pandas-dev/pandas/pulls/2195
2012-11-08T04:30:52Z
2012-11-08T14:23:06Z
2012-11-08T14:23:06Z
2012-11-09T23:53:16Z
corrected version of ts_hourly
diff --git a/pandas/tseries/pivot.py b/pandas/tseries/pivot.py new file mode 100644 index 0000000000000..632e6bdab4324 --- /dev/null +++ b/pandas/tseries/pivot.py @@ -0,0 +1,206 @@ +import numpy as np + +from pandas.core.frame import DataFrame +import pandas.core.nanops as nanops +from pandas.tseries.util import isleap...
small glitch in the function but mainly fixes in tests
https://api.github.com/repos/pandas-dev/pandas/pulls/2183
2012-11-05T23:45:15Z
2012-12-03T19:02:18Z
null
2014-06-27T22:56:10Z
CLN: Some minor cleanup in io/tests/test_parsers.py
diff --git a/pandas/io/tests/test_parsers.py b/pandas/io/tests/test_parsers.py index 041fcb9808df1..23c6eec259384 100644 --- a/pandas/io/tests/test_parsers.py +++ b/pandas/io/tests/test_parsers.py @@ -859,22 +859,17 @@ def test_parse_cols_list(self): for s in suffix: pth = os.path.join(self.dirp...
https://api.github.com/repos/pandas-dev/pandas/pulls/2181
2012-11-05T13:58:18Z
2012-11-05T15:13:12Z
null
2012-11-05T15:13:12Z
CLN: Fixed a typo in the documentation.
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index fa133d45e8863..a77e2c928abfa 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -91,7 +91,7 @@ the data structures: There is an analogous ``set_value`` method which has the additional capability of enlarging an object. This meth...
https://api.github.com/repos/pandas-dev/pandas/pulls/2180
2012-11-05T13:21:00Z
2012-11-05T15:14:02Z
null
2012-11-05T15:14:02Z
CLN: Typo fix in documentation
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index fa133d45e8863..a77e2c928abfa 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -91,7 +91,7 @@ the data structures: There is an analogous ``set_value`` method which has the additional capability of enlarging an object. This meth...
https://api.github.com/repos/pandas-dev/pandas/pulls/2178
2012-11-05T12:52:22Z
2012-11-05T12:53:08Z
null
2012-11-05T12:57:02Z
CLN: fix indent in bench_merge_sqlite
diff --git a/bench/bench_merge_sqlite.py b/bench/bench_merge_sqlite.py index 14a5288e44f20..a05a7c896b3d2 100644 --- a/bench/bench_merge_sqlite.py +++ b/bench/bench_merge_sqlite.py @@ -74,8 +74,8 @@ conn.commit() sql_results[sort][join_method] = elapsed -sql_results.columns = ['sqlite3'] # ['dont_so...
was breaking Rope.
https://api.github.com/repos/pandas-dev/pandas/pulls/2177
2012-11-05T12:27:10Z
2012-11-05T15:15:00Z
null
2014-06-22T13:36:18Z
Misc fixes: comment cleanup and remove deprecated arg
diff --git a/pandas/core/common.py b/pandas/core/common.py index a7a53b24ae277..7bbbaab49e864 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -1147,11 +1147,12 @@ def pprint_thing(thing, _nest_lvl=0): result = _pprint_seq(thing, _nest_lvl) else: # when used internally in the pac...
https://api.github.com/repos/pandas-dev/pandas/pulls/2176
2012-11-05T08:21:54Z
2012-11-05T15:16:01Z
null
2012-11-05T15:16:01Z
BUG: Series.diff for integer dtypes #2087
diff --git a/pandas/core/common.py b/pandas/core/common.py index e7829ab4b41d5..bcb05c9f1bd0f 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -373,6 +373,35 @@ def mask_out_axis(arr, mask, axis, fill_value=np.nan): arr[tuple(indexer)] = fill_value +def diff(arr, n, indexer, axis=0): + out_...
https://api.github.com/repos/pandas-dev/pandas/pulls/2174
2012-11-04T21:26:39Z
2012-11-04T23:03:21Z
null
2014-06-17T00:19:46Z
BUG: stop overridding matplotlib unit registrations for datetime.datetim...
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index 97cae5e351fe2..bae624c2f83fa 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -16,12 +16,13 @@ from pandas.tseries.frequencies import get_period_alias, get_base_alias from pandas.tseries.offsets import DateOffset +""" try...
...e/date/time but keep registration for pandas specific classes Period and Timestamp
https://api.github.com/repos/pandas-dev/pandas/pulls/2173
2012-11-04T20:27:09Z
2012-11-05T04:06:45Z
null
2012-11-06T07:17:43Z
BUG: start_time end_time to_timestamp bugs #2124 #2125 #1764
diff --git a/pandas/tseries/period.py b/pandas/tseries/period.py index d7557e38c1680..763c34717abb1 100644 --- a/pandas/tseries/period.py +++ b/pandas/tseries/period.py @@ -4,7 +4,8 @@ from datetime import datetime, date import numpy as np -from pandas.tseries.frequencies import (get_freq_code as _gfc, to_offset, +...
@wesm can you review this plz? The main change is I have to_timestamp default to second frequency now to get the first and last second of the Period. This doesn't **quite** solve #2125 since Timestamp resolution goes down to Nanos. So the question is is it appropriate to add 999999999ns to the end_time when ns doesn't...
https://api.github.com/repos/pandas-dev/pandas/pulls/2170
2012-11-03T20:49:25Z
2012-11-04T21:18:12Z
2012-11-04T21:18:12Z
2014-07-13T09:26:33Z
Plot color
diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index efb3252a66209..35786c242082b 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -107,7 +107,7 @@ def test_bar_linewidth(self): self.assert_(r.get_linewidth() == 2) @slow - def test_...
Deprecate 'colors' parameter in LinePlot. Otherwise frame.plot(color='rgb') fails but frame.plot(kind='bar', color='rgb') works.
https://api.github.com/repos/pandas-dev/pandas/pulls/2169
2012-11-03T15:38:56Z
2012-11-03T16:22:45Z
2012-11-03T16:22:45Z
2012-11-03T16:22:45Z
BUG: xs MultiIndex integer level problem #2107
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bd220a008c9e8..d389d8c93cd2c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2025,6 +2025,11 @@ def xs(self, key, axis=0, level=None, copy=True): indexer = tuple(indexer) else: indexer = loc + ...
purely positional indexing would solve this problem better
https://api.github.com/repos/pandas-dev/pandas/pulls/2166
2012-11-03T02:21:51Z
2012-11-03T15:23:42Z
null
2012-11-03T15:23:42Z
BUG: exclude timedelta64 from integer dtypes #2146
diff --git a/pandas/core/common.py b/pandas/core/common.py index c52de85670c5e..a4d7d1bf9a898 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -90,6 +90,8 @@ def _isnull_ndarraylike(obj): elif values.dtype == np.dtype('M8[ns]'): # this is the NaT pattern result = values.view('i8'...
com.is_integer_dtype now returns False for dtype timedelta64 #2146
https://api.github.com/repos/pandas-dev/pandas/pulls/2165
2012-11-02T17:39:08Z
2012-11-02T18:20:09Z
null
2014-06-25T18:03:15Z
ENH: rank na_options top and bottom #1508
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index cb7314a26689f..21915da2c4402 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -191,11 +191,12 @@ def rank(values, axis=0, method='average', na_option='keep', """ if values.ndim == 1: f, values = _get_dat...
#1508
https://api.github.com/repos/pandas-dev/pandas/pulls/2159
2012-11-02T02:04:40Z
2012-11-02T16:55:47Z
null
2014-06-12T04:55:31Z
Ts pivot hourly
diff --git a/pandas/tseries/pivot.py b/pandas/tseries/pivot.py new file mode 100644 index 0000000000000..9792ef1f60550 --- /dev/null +++ b/pandas/tseries/pivot.py @@ -0,0 +1,207 @@ +import numpy as np + +from pandas.core.frame import DataFrame +import pandas.core.nanops as nanops +from pandas.tseries.util import isleap...
Now I figured out. Here is the PR for #2153
https://api.github.com/repos/pandas-dev/pandas/pulls/2154
2012-11-01T17:31:51Z
2012-11-05T23:25:14Z
null
2013-12-04T00:57:52Z
BUG: Timestamp.astimezone returns datetime.datetime #2060
diff --git a/pandas/src/datetime.pyx b/pandas/src/datetime.pyx index 1fe36d95014b6..bdfa04eaca441 100644 --- a/pandas/src/datetime.pyx +++ b/pandas/src/datetime.pyx @@ -238,6 +238,8 @@ class Timestamp(_Timestamp): # Same UTC timestamp, different time zone return Timestamp(self.value, tz=tz) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2152
2012-11-01T16:53:37Z
2012-11-02T16:46:09Z
null
2012-11-02T16:46:09Z
ENH: DataFrame where and mask #2109
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0f270c6f6e546..c689b62432847 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4832,6 +4832,49 @@ def combineMult(self, other): """ return self.mul(other, fill_value=1.) + def where(self, cond, other): + """ + ...
#2109
https://api.github.com/repos/pandas-dev/pandas/pulls/2151
2012-11-01T16:38:32Z
2012-11-02T18:08:57Z
null
2014-06-13T08:10:02Z
ENH: at_time and between_time for DataFrame #2131
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 97b10e532c9de..31c1c2a638376 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -156,6 +156,48 @@ def asfreq(self, freq, method=None, how=None): from pandas.tseries.resample import asfreq return asfreq(self, freq, meth...
pushed up to generic, raises TypeError if index doesn't have indexer_at_time
https://api.github.com/repos/pandas-dev/pandas/pulls/2149
2012-11-01T15:03:23Z
2012-11-02T18:17:32Z
null
2014-06-17T14:25:08Z
BUG: fix output formatting, zero trimming of floats with exp, close #212...
diff --git a/pandas/core/format.py b/pandas/core/format.py index c38e34141d67f..1f435f2e459e7 100644 --- a/pandas/core/format.py +++ b/pandas/core/format.py @@ -887,14 +887,14 @@ def just(x): def _trim_zeros(str_floats, na_rep='NaN'): """ - Trims zeros and decimal points + Trims zeros and decimal points. ...
...0 implement + test proposed fix for #2120
https://api.github.com/repos/pandas-dev/pandas/pulls/2135
2012-10-26T19:54:30Z
2012-10-31T20:23:11Z
null
2012-10-31T20:23:11Z
BUG: fix unicode handling in plot label, close #2080
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index 34754a23ba5b4..caa685340c0e5 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -902,7 +902,7 @@ def _maybe_add_color(kwargs, style, i): _maybe_add_color(kwds, style, i) - label = com.pprint_t...
#2080
https://api.github.com/repos/pandas-dev/pandas/pulls/2122
2012-10-25T17:32:59Z
2012-10-31T20:23:52Z
null
2012-11-02T22:06:26Z
BUG: setup.py error message lacks cache_dir argument
diff --git a/setup.py b/setup.py index 4189c3803b241..38dffdffdbdf0 100755 --- a/setup.py +++ b/setup.py @@ -341,7 +341,7 @@ def __init__(self,*args,**kwds): cache_dir=kwds.pop("cache_dir",BUILD_CACHE_DIR) self.cache_dir=cache_dir if not os.path.isdir(cache_dir): - raise Exception(...
https://api.github.com/repos/pandas-dev/pandas/pulls/2111
2012-10-24T14:32:46Z
2012-10-31T20:24:54Z
null
2012-10-31T20:24:54Z
Unicode III : revenge of the character planes
diff --git a/pandas/core/encoding.py b/pandas/core/encoding.py new file mode 100644 index 0000000000000..50a732d3d081d --- /dev/null +++ b/pandas/core/encoding.py @@ -0,0 +1,298 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# Mutable sequences handling? specificaly tuples. +# generators - via wrapper? + +import...
This is the 3rd installment in the unicode saga, and once again, there's a lot of issues to point out. fair warning given. #1994 cleaned up things to use basestring and unicode() over str() where needed #2005 consolidated and implemented unicode-friendly pretty-printing The attempt here is to ensure that the internal...
https://api.github.com/repos/pandas-dev/pandas/pulls/2104
2012-10-22T18:27:53Z
2012-10-28T10:42:42Z
null
2014-06-23T04:22:12Z
PR: adding a core.config module to hold package-wide configurables
diff --git a/pandas/__init__.py b/pandas/__init__.py index 3760e3fbc434b..df37b44cc6a7d 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -22,6 +22,9 @@ from pandas.version import version as __version__ from pandas.info import __doc__ +# let init-time option registration happen +import pandas.core.config_...
PR for #2081 ## Summary - core.config is a new module which serves as a general mechanism for working with configurables. - superceds fmt.print_config, while remaining backward-compatible (set_printoptions(), reset_printoptions() are still working). - adds the following user API's: `get_option()`, `set_option`, `rese...
https://api.github.com/repos/pandas-dev/pandas/pulls/2097
2012-10-21T11:28:51Z
2012-11-27T22:19:28Z
2012-11-27T22:19:27Z
2014-06-13T09:21:50Z
STY: pep8
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index d5380b66a43f6..cb7314a26689f 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -9,6 +9,7 @@ import pandas.lib as lib import pandas._algos as _algos + def match(to_match, values, na_sentinel=-1): """ Compute l...
Except for test_\* files i ran every file through pep8, and resolved most of the violations.
https://api.github.com/repos/pandas-dev/pandas/pulls/2086
2012-10-19T21:57:12Z
2012-10-31T20:27:52Z
2012-10-31T20:27:52Z
2012-10-31T20:27:52Z
Panel constructed with a None as a dict value throws an error
diff --git a/pandas/core/panel.py b/pandas/core/panel.py old mode 100644 new mode 100755 index 211434ab07154..b802a7f86731b --- a/pandas/core/panel.py +++ b/pandas/core/panel.py @@ -1403,8 +1403,11 @@ def _homogenize_dict(frames, intersect=True, dtype=None): columns = _extract_axis(adj_frames, axis=1, intersect=in...
Python 2.7.3 (default, Jun 21 2012, 07:50:29) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. > > > import pandas > > > print pandas.**version** > > > 0.8.1 > > > print pandas.Panel(dict(a = None, b = pandas.DataFrame(index=[1,2,3],columns=[1,2,3]))) > > > Traceback (most r...
https://api.github.com/repos/pandas-dev/pandas/pulls/2075
2012-10-16T02:42:36Z
2012-11-02T20:48:38Z
null
2014-06-18T19:13:57Z
Fix for Python 3.3
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 156ccbd95fa54..a2a74d50de4e1 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -25,6 +25,7 @@ def __init__(self, values, items, ref_items, ndim=2, assert(values.ndim == ndim) assert(len(items) == len(values)) ...
There were two problems with a simple 'import pandas' on python 3.3, that have to do with slots. For the first one, I converted the class initializer into an instance variable. For the second one, there seems to be a property to compute 'ndim' so I simply removed it. (I couldn't figure out quickly how to run the tests...
https://api.github.com/repos/pandas-dev/pandas/pulls/2066
2012-10-13T19:13:35Z
2012-10-13T19:28:21Z
null
2014-07-15T12:12:35Z
CLN: cleanup tox.ini, remove stale pandas/setup.py, fix tox warning
diff --git a/pandas/setup.py b/pandas/setup.py deleted file mode 100644 index f9945f0fdaab1..0000000000000 --- a/pandas/setup.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python - -import numpy - -def configuration(parent_package='',top_path=None): - from numpy.distutils.misc_util import Configuration - conf...
I always find it hard to get Packaging issues right, i'd appreciate if someone would back me up on pandas/setup.py being superfluous. I made sure that setup.py install/develop still works, and that introducing a failed test is caught by tox as you would expect, Also see #2029 for much faster tox runs.
https://api.github.com/repos/pandas-dev/pandas/pulls/2063
2012-10-12T17:08:38Z
2012-10-12T23:39:58Z
2012-10-12T23:39:58Z
2012-10-12T23:40:06Z
BUG: fix Series repr when name is tuple holding non string-type
diff --git a/RELEASE.rst b/RELEASE.rst index bef84c4b02150..202e3ab9d67be 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -22,6 +22,20 @@ Where to get it * Binary installers on PyPI: http://pypi.python.org/pypi/pandas * Documentation: http://pandas.pydata.org +pandas 0.10.0 +============= + +**Release date:** not yet...
Not sure if this is in line with latest unicode work, @y-p?
https://api.github.com/repos/pandas-dev/pandas/pulls/2059
2012-10-11T19:07:25Z
2012-10-12T06:56:57Z
null
2012-10-12T23:37:59Z
DOC: various small fixes
diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst index c6e919eb6096c..3c3c67092c8f1 100644 --- a/doc/source/dsintro.rst +++ b/doc/source/dsintro.rst @@ -26,7 +26,7 @@ objects. To get started, import numpy and load pandas into your namespace: randn = np.random.randn from pandas import * -Here is a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/2056
2012-10-11T16:45:43Z
2012-10-31T20:29:34Z
2012-10-31T20:29:34Z
2014-07-08T10:21:47Z
Uncentered
diff --git a/RELEASE.rst b/RELEASE.rst index bef84c4b02150..db1928c176242 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -22,6 +22,16 @@ Where to get it * Binary installers on PyPI: http://pypi.python.org/pypi/pandas * Documentation: http://pandas.pydata.org +pandas 0.10.0 +============= + +***Release date:** + +**N...
@wesm can I get a second pair of eyes to skim over this PR real quick? All tests pass but touches a lot of core modules.
https://api.github.com/repos/pandas-dev/pandas/pulls/2054
2012-10-10T20:25:12Z
2014-02-16T21:55:28Z
null
2022-10-13T00:14:40Z
Added hourofyear for pivoting calcualtions
diff --git a/pandas/tseries/index.py b/pandas/tseries/index.py index be7193418e82f..92131dc632b66 100644 --- a/pandas/tseries/index.py +++ b/pandas/tseries/index.py @@ -1150,6 +1150,7 @@ def freqstr(self): dayofweek = _field_accessor('dayofweek', 'dow') weekday = dayofweek dayofyear = _field_accessor('da...
I do not know if this is possible. But very much needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/2052
2012-10-10T15:37:19Z
2013-07-29T05:17:57Z
null
2022-10-13T00:14:40Z
To csv infs
diff --git a/doc/source/missing_data.rst b/doc/source/missing_data.rst index a502d5c78a9ae..f514139a9170f 100644 --- a/doc/source/missing_data.rst +++ b/doc/source/missing_data.rst @@ -57,11 +57,11 @@ to handling missing data. While ``NaN`` is the default missing value marker for reasons of computational speed and con...
This branch makes inf/-inf different from nan/None (GH #1919), and also fixes a few bugs with INF and NaN values (GH #2026, #2041).
https://api.github.com/repos/pandas-dev/pandas/pulls/2050
2012-10-09T17:58:45Z
2012-12-02T03:14:36Z
2012-12-02T03:14:36Z
2014-06-20T15:11:02Z