Commit Graph

14346 Commits

Author SHA1 Message Date
gfyoung 977b384cc7 BUG: Check for overflow in TimedeltaIndex addition.
Title is self-explanatory.  Closes #14068.

Author: gfyoung <gfyoung17@gmail.com>

Closes #14237 from gfyoung/add-overflow and squashes the following commits:

77effde [gfyoung] BUG: Check for overflow in TimedeltaIndex addition.
2016-09-27 06:41:56 -04:00
Piotr Jucha b81d444fb3 BUG/TST: Empty input arrays in cartesian_product and MultiIndex (#12258)
closes #12258

1. fixes logic (and division by 0) in `cartesian_product` when some input arrays are empty
2. adds tests for MultiIndex empty level  construction with `.from_arrays` and `.from_product`

Author: Piotr Jucha <pi.jucha@gmail.com>

Closes #14151 from pijucha/cartesian and squashes the following commits:

b831516 [Piotr Jucha] BUG/TST: Empty input arrays in cartesian_product and MultiIndex (#12258)
2016-09-27 06:35:22 -04:00
Jeff Reback 7dedbed898 TST: fix some warnings in test_groupby.py 2016-09-26 06:12:43 -04:00
Tom Augspurger 99b587606c Update Github issue template (#14268) 2016-09-23 23:38:17 +02:00
Jordan Erenrich d9e51fe708 DOC: Typo fix in ordered_merge warning (#14271) 2016-09-22 18:39:03 +02:00
agraboso ebc4ac101b ENH: Accept list as level for groupby in non-MultiIndexed objects
closes #13901

Author: agraboso <agraboso@gmail.com>

Closes #13907 from agraboso/fix-13901 and squashes the following commits:

fcbb724 [agraboso] ENH: Accept list as level for groupby in non-MultiIndexed objects
2016-09-22 06:25:00 -04:00
Chris 14a1c80fd0 BUG: float truncation in eval with py 2
closes #14241

Python 2 only - apparently `str()` rounds shorter than `repr()`    ```
In [1]: f = 1000000000.006    In [2]: str(f)  Out[2]: '1000000000.01'
In [3]: repr(f)  Out[3]: '1000000000.006'  ```

Author: Chris <cbartak@gmail.com>

Closes #14255 from chris-b1/eval-float-cast and squashes the following commits:

d679aa3 [Chris] actual lint fix
8b0cb57 [Chris] lint
87df38d [Chris] better tests
c1e77b6 [Chris] lint fixup
05de4ae [Chris] fix rounding in pytables query
b386184 [Chris] BUG: float trunc in eval with py 2
2016-09-22 06:18:57 -04:00
Jeff Reback 3c9644277b PERF: use uniqueness_check from monotonic check when possible
closes #14266

Author: Jeff Reback <jeff@reback.net>

Closes #14270 from jreback/memory and squashes the following commits:

968a4f7 [Jeff Reback] PERF: use uniqueness_check from monotonic check when possible
2016-09-22 06:02:41 -04:00
Joe Jevnik dfb6373b39 TST: remove usages of np.full_like for numpy<1.8.0 compat
closes ##14276

Author: Joe Jevnik <joe@quantopian.com>

Closes #14277 from llllllllll/no-full-like and squashes the following commits:

e098fd7 [Joe Jevnik] TST: remove usages of np.full_like for numpy<1.8.0 compat
2016-09-22 06:01:37 -04:00
Jeff Reback 755886c9a4 DOC: minor change in whatsnew 2016-09-21 18:52:55 -04:00
Joe Jevnik a7469cf982 ENH: Add divmod to series and index. (#14208) 2016-09-19 17:07:02 -04:00
Tom Augspurger 2a5c747b5b Fix generator tests to run (#14245)
This class inheriting from TestCase caused
the tests the yield fixture tests to not actually
run. The new output is

nosetests pandas/computation/tests/test_eval.py:TestTypeCasting
........................................
----------------------------------------------------------------------
Ran 40 tests in 0.264s

OK
2016-09-19 16:11:32 -04:00
Paul db9dc65a29 BUG: GH13629 Binned groupby median function with empty bins (#14225) 2016-09-18 10:57:27 -05:00
Joris Van den Bossche e8357a15cd TST/TEMP: fix pyqt to 4.x for plotting tests (#14240)
Matplotlib build currently broken (wrongly patched rc file) with pyqt 5, see https://github.com/ContinuumIO/anaconda-issues/issues/1068
2016-09-18 11:39:00 +02:00
Shawn Heide e596cbf824 DOC: added example to Series.map showing use of na_action parameter (GH14231)
DOC: closes #14231, refines parameter description and adds additional example to Series.map that shows use of na_action parameter.
2016-09-17 01:20:39 +02:00
Pan Deng / Zora 5e2f9da6e8 DOC: split docstring into multiple lines in excel.py (#14073) 2016-09-15 16:59:32 +02:00
gfyoung 95541952c1 MAINT: Use __module__ in _DeprecatedModule. (#14181)
Follow-up to gh-14105. Uses the '__module__' method
to correctly determine the location of the alternative
module to use.
2016-09-14 10:31:04 +02:00
WillAyd cebc70cc27 ENH: Allow true_values and false_values options in read_excel (#14002)
closes #13347

Author: willayd <william.ayd@gmail.com>

Squashes the following commits:

242a6a6 ENH: Allow true_values and fals_values options in read_excel
2016-09-14 01:07:25 +02:00
Sudarshan Konge 5e665b3733 DOC: fix incorrect example in unstack docstring (GH14206) (#14211) 2016-09-14 01:00:15 +02:00
YG-Riku fb25cca654 BUG: iloc fails with non lex-sorted MultiIndex #13797
closes #13797

Author: YG-Riku <rikuhiro@gmail.com>

Closes #14038 from YG-Riku/mi-iloc-fix and squashes the following commits:

1cf86a1 [YG-Riku] BUG: iloc fails with non lex-sorted MultiIndex #13797
a23c736 [YG-Riku] BUG: iloc fails with non lex-sorted MultiIndex #13797
072d2a3 [YG-Riku] BUG: iloc fails with non lex-sorted MultiIndex #13797
2016-09-13 18:24:37 -04:00
Johnny Gill 48ad2f40b5 BUG: add check for infinity in __call__ of EngFormatter
EngFormatter throws an exception if passed 'inf' as below.    This
patch checks for infinity and just returns 'inf' in that case.

xref #11981

Author: Johnny Gill <swfiua@gmail.com>

Closes #14214 from swfiua/master and squashes the following commits:

f2348e7 [Johnny Gill] test EngFormatter with np.inf
83f4091 [Johnny Gill] add check for infinity in __call__ of EngFormatter
2016-09-13 17:56:29 -04:00
Anthonios Partheniou f3632368ed In gbq.to_gbq allow the DataFrame column order to differ from schema
closes #11359

Author: Anthonios Partheniou <apartheniou@electricalengineer.ca>

Closes #14202 from parthea/gbq-verify-schema-less-scrict and squashes the following commits:

7e6a073 [Anthonios Partheniou] In gbq.to_gbq allow the DataFrame column order to differ from schema #11359
2016-09-13 06:22:31 -04:00
Jeff Reback 461e0e9fba BLD: require cython if tempita is needed
closes #14204
2016-09-12 06:57:35 -04:00
chris-b1 37f95cef85 DOC: add source links to api docs (#14200) 2016-09-12 09:57:26 +02:00
Kerby Shedden 54ab5be78f BUG: compat with Stata ver 111
closes #11526
closes #14159
2016-09-11 09:54:33 -04:00
Neil Parley 6c73e765a5 Fix: F999 dictionary key '2000q4' repeated with different values (#14198) 2016-09-10 15:00:13 -04:00
Nicolas Bonnotte 1e61aed165 BLD: Test for Python 3.5 with C locale
xref #12337

Author: Nicolas Bonnotte <nicolas.bonnotte@gmail.com>

Closes #14114 from nbonnotte/unicode-to_latex-12337 and squashes the following commits:

dadf73c [Nicolas Bonnotte] New tentative with C locale
b876296 [Nicolas Bonnotte] Base matrix configuration
c825f86 [Nicolas Bonnotte] New files requirements-3.5_ASCII.*
3b4c6a5 [Nicolas Bonnotte] Travis conf: new test with python 3.5 and LC_ALL=C
3b859ce [Nicolas Bonnotte] Test for Python 3.4 with C locale
2016-09-10 10:37:02 -04:00
sinhrks 2672a79999 BUG: DatetimeTZBlock can't assign values near dst boundary
Value assignment doesn't work if data contains DST boundary because of internal
.localize(None)

Author: sinhrks <sinhrks@gmail.com>

Closes #14146 from sinhrks/internals_datetimetz and squashes the following commits:

95aa6b5 [sinhrks] BUG: DatetimeTZBlock can't assign values near dst boundary
2016-09-10 10:33:51 -04:00
Chris ef2098074a BUG: union_categorical with Series and cat idx
closes #14173

Author: Chris <cbartak@gmail.com>

Closes #14199 from chris-b1/concat-cat-types and squashes the following commits:

b04ea4d [Chris] BUG: union_categorical with Series and cat idx
2016-09-10 10:28:39 -04:00
Josh Howes 289cd6d0df BUG: fix str.contains for series containing only nan values
closes #14171

Author: Josh Howes <josh.howes@gmail.com>

Closes #14182 from josh-howes/bugfix/14171-series-str-contains-only-nan-values and squashes the following commits:

c7e9721 [Josh Howes] BUG: fix str.contains for series containing only nan values
2016-09-09 18:28:50 -04:00
Chris 939a22118a BUG: Categorical constructor not idempotent with ext dtype
closes #14190

Author: Chris <cbartak@gmail.com>

Closes #14191 from chris-b1/cat-ctor and squashes the following commits:

4cad147 [Chris] add some nulls to tests
da865e2 [Chris] BUG: Categorical constructor not idempotent with ext dtype
2016-09-09 15:32:49 -04:00
gfyoung 8af626474f TST: Make encoded sep check more locale sensitive (#14161)
Closes gh-14140.
2016-09-08 18:12:53 -04:00
Christopher C. Aycock 02df7b6837 DOC: minor typo in 0.19.0 whatsnew file (#14185) 2016-09-08 17:02:13 +02:00
John Liekezer d8cd33b148 BUG: fix tz-aware datetime convert to DatetimeIndex (GH 14088)
closes #14088

Author: John Liekezer <cool.Bakov@yandex.ru>

Closes #14090 from conquistador1492/issue_14088 and squashes the following commits:

c91425b [John Liekezer] BUG: fix tz-aware datetime convert to DatetimeIndex (GH 14088)
2016-09-08 06:35:14 -04:00
Russell Smith ff435badcd BUG : bug in setting a slice of a Series with a np.timedelta64
closes #14155
closes #14160
2016-09-08 06:20:52 -04:00
Joris Van den Bossche 497a3bcbf6 RLS: v0.19.0rc1 2016-09-07 21:42:12 +02:00
Joris Van den Bossche 957eaa4a01 DOC: clean-up 0.19.0 whatsnew file (#14176)
* DOC: clean-up 0.19.0 whatsnew file
* further clean-up
* Update highlights
* consistent use of behaviour/behavior
* s/favour/favor
2016-09-07 21:15:38 +02:00
Joris Van den Bossche 1ace12b747 DOC: cleanup build warnings (#14172)
* DOC: remove examples on Panel4D (caused warnings) and refer to older docs

* DOC: fix build warnings

* resolve comments
2016-09-07 15:57:21 +02:00
Anthonios Partheniou 9b7efd69b2 Add steps to run gbq integration testing to the contributing docs (#14144) 2016-09-07 15:22:53 +02:00
Sinhrks ab4bd36401 ENH: concat and append now can handle unordered categories (#13767)
Concatting categoricals with non-matching categories will now return object dtype instead of raising an error.

* ENH: concat and append now can handleunordered categories

* reomove union_categoricals kw from concat
2016-09-07 15:18:27 +02:00
gfyoung 3f3839b6cb DEPR: Deprecate pandas.core.datetools (#14105)
* MAINT: Replace datetools import in tests

* MAINT: Replace datetools import internally

* DOC: Replace datetools import in docs

* MAINT: Remove datetool imports from scripts

* DEPR: Deprecate pandas.core.datetools

Closes gh-14094.
2016-09-07 15:16:02 +02:00
Joris Van den Bossche e88ad28c97 API/DEPR: Remove +/- as setops for DatetimeIndex/PeriodIndex (GH9630) (#14164)
API/DEPR: Remove +/- as setops for DatetimeIndex/PeriodIndex (GH9630)

xref #13777, deprecations put in place in #9630
2016-09-07 15:11:03 +02:00
Iulius Curt 844d5fba7d Fix trivial typo in comment (#14174) 2016-09-07 06:49:24 -04:00
Joris Van den Bossche 80230292e1 API/DEPR: Remove +/- as setops for Index (GH8227) (#14127) 2016-09-06 16:30:57 +02:00
gfyoung e54d4dbd96 MAINT: flake8 *.pyx files
closes #12995     flake8-ed *.pyx files and fixed errors.    Removed
the E226 check because that inhibits pointers (e.g. char*).

Author: gfyoung <gfyoung17@gmail.com>

Closes #14147 from gfyoung/pyx-flake8 and squashes the following commits:

386ed58 [gfyoung] MAINT: flake8 *.pyx files
2016-09-06 06:10:39 -04:00
Jeff Reback 1a8273cfa9 TST: skipping xref #14120, locale separator in parser tests of unsupported engines 2016-09-06 06:04:02 -04:00
Jeff Reback 3110a72b53 BLD: add in build conflict resolution to appeveyor.yml 2016-09-05 18:19:53 -04:00
Jeff Reback f7506c613f DOC: issue typo in v0.19.0 2016-09-05 18:02:41 -04:00
c123w 33f9c870a0 Fix typo (change 'n' to 'k' in get_dummies documentation). (#14153) 2016-09-05 09:16:31 -05:00
Jeff Reback 900ae6bfd4 DOC: typo/corrections in whatsnew 2016-09-04 12:45:49 -04:00