All `.pxi` files have the warning to not edit directly, so why not
have Git ignore any changes made there? In addition, this PR
deletes all of the `.pxi` files from the codebase because they are
automatically generated by the `.pxi.in` files
Author: gfyoung <gfyoung17@gmail.com>
Closes#14723 from gfyoung/gitignore-pxi-ignore and squashes the following commits:
fe0c410 [gfyoung] MAINT: Ignore .pxi files
(cherry picked from commit ee108164ee)
closes#14515
This commit fixes a bug where `read_csv` failed when given a file with
a multiindex header and empty content. Because pandas reads index
names as a separate line following the header lines, the reader looks
for the line with index names in it. If the content of the dataframe
is empty, the reader will choke. This bug surfaced after
https://github.com/pandas-dev/pandas/issues/6618 stopped writing an
extra line after multiindex columns, which led to a situation where
pandas could write CSV's that it couldn't then read. This commit
changes that behavior by explicitly checking if the index name row
exists, and processing it correctly if it doesn't.
Author: Ben Kandel <ben.kandel@gmail.com>
Closes#14596 from bkandel/fix-parse-empty-df and squashes the following commits:
32e3b0a [Ben Kandel] lint
e6b1237 [Ben Kandel] lint
fedfff8 [Ben Kandel] fix multiindex column parsing
518982d [Ben Kandel] move to 0.19.2
fc23e5c [Ben Kandel] fix errant this_columns
3d9bbdd [Ben Kandel] whatsnew
68eadf3 [Ben Kandel] Modify test.
17e44dd [Ben Kandel] fix python parser too
72adaf2 [Ben Kandel] remove unnecessary test
bfe0423 [Ben Kandel] typo
2f64d57 [Ben Kandel] pep8
b8200e4 [Ben Kandel] BUG: read_csv with empty df
(cherry picked from commit f862b52e75)
In python 3.6, the CALL_FUNCTION handling was updated. One change is
that when calling a C function from a python function python now
counts the reference owned by the argument tuple. This means that
move was always seeing objects with two references instead of the
expected one. Python 3.6 also removed a copy in the argument tuple
when *unpacking functions. This means that if a user does: tuple =
(create_string(),) move_into_mutable_buffer(*tuple) where
create_string() creates a string object with one reference then we
will fail to raise a BadMove even though the user could later retrieve
that string with tuple[0]. There is no way to detect this case so this
patch adds a warning to the docstring advising against star unpacking.
xref: #14679 I played around with removing the extra reference that
was added in 3.6 but it looks like playing with borrowed refs
everywhere will be a bit tricky. This change should clear things up
for 3.6 while continuing to work for older versions. In 3.6 you
__could__ get a shared mutable string from this but you need to try
pretty hard for it.
Author: Joe Jevnik <joe@quantopian.com>
Closes#14695 from llllllllll/move-3.6-compat and squashes the following commits:
d1e8b1b [Joe Jevnik] BUG: Fix move_into_mutable_buffer for python 3.6.
(cherry picked from commit f60964092d)
vendered updated version of Pyperclip
closes#13747closes#14362closes#12807closes#12529
Author: Ajay Saxena <ajasaxen@Ajays-MacBook-Pro.local>
Author: Ajay Saxena <aileronajay@gmail.com>
Closes#14599 from aileronajay/master and squashes the following commits:
2aafb66 [Ajay Saxena] moved comment inside test and added github issue labels to test
b74fbc1 [Ajay Saxena] ignore lint test for pyperclip files
9db42d8 [Ajay Saxena] whatsnew conflict
1dca292 [Ajay Saxena] conflict resolution
98b61e8 [Ajay Saxena] merge conflict
cedb690 [Ajay Saxena] merge conflict in whats new file
7af95da [Ajay Saxena] merging lastest changes
ac8ae60 [Ajay Saxena] skip clipboard test if clipboard primitives are absent
b03ed56 [Ajay Saxena] changed whatsnew file
c0aafd7 [Ajay Saxena] Merge branch 'test_branch'
9946fb7 [Ajay Saxena] Merge branch 'master' of https://github.com/pandas-dev/pandas into test_branch
ed1375f [Ajay Saxena] Merge branch 'test_branch'
0665fd4 [Ajay Saxena] fixed linting and test case as per code review
d202fd0 [Ajay Saxena] added test for valid encoding, modified setup.py so that pandas/util/clipboard can be found
dd57ae3 [Ajay Saxena] code review changes and read clipboard invalid encoding test
71d58d0 [Ajay Saxena] testing encoding in kwargs to to_clipboard and test case for the same
02f87b0 [Ajay Saxena] removed duplicate files
825bbe2 [Ajay Saxena] all files related to pyperclip are under pandas.util.clipboard
c5a87d8 [Ajay Saxena] Merge branch 'test_branch' of https://github.com/aileronajay/pandas into test_branch
f708c2e [Ajay Saxena] Merge branch 'master' of https://github.com/aileronajay/pandasd565b1f [Ajay Saxena] updated pyperclip to the latest version
14d94a0 [Ajay Saxena] changed the pandas util clipboard file to return unicode if the python version is 2, else str
66d8ebf [Ajay Saxena] removed the disabled tag for clipboard test so that we can check if they pass after this change
edb8553 [Ajay Saxena] refactored the new unicode test to be in sync with the rest of the file
c83d000 [Ajay Saxena] added test case for unicode round trip
fb922d6 [Ajay Saxena] changes for GH 13747
(cherry picked from commit 4a1a330343)
xref #14679
Author: Jeff Reback <jeff@reback.net>
Closes#14685 from jreback/offsets and squashes the following commits:
8ad212c [Jeff Reback] BUG: fix pickling of Custom offsets in 3.6
(cherry picked from commit bec5bdb891)
partial on #14679
Author: Jeff Reback <jeff@reback.net>
Closes#14681 from jreback/warnings and squashes the following commits:
56e7b1b [Jeff Reback] COMPAT: remove some deprecation warnings in 3.6
(cherry picked from commit 748000d220)
Fixed conflicts in:
pandas/io/tests/test_clipboard.py
closes#14561
Author: Jeff Reback <jeff@reback.net>
Closes#14678 from jreback/py3.6_fix and squashes the following commits:
c8eed83 [Jeff Reback] ERR: fix exception propogation for datetime parsing functions, noted in python 3.6
(cherry picked from commit b52dda8fa4)
generic support for additional installation instructions (e.g. 3.4_slow build)
remove 2.7_NUMPY_DEV build files (not longer on travis)
use python 3.5 for root conda env, use PYTHON_VERSION to designate conda installation
(cherry picked from commit b23a329edf)
Add explicit error checking for out-of-range doubles when writing Stata files
Upcasts float32 to float64 if out-of-range values encountered
Tests for infinite values and raises if found
closes#14618closes#14637
(cherry picked from commit fe555db3f1)
closes#14652
Author: Luca Scarabello <luca.scarabello@sed.ethz.ch>
Author: Luca <luca.scarabello@gmail.com>
Closes#14663 from luca-s/issue_14652 and squashes the following commits:
8db26db [Luca Scarabello] Moved new test location to pandas\tools\tests\test_tile.py
90dd07d [Luca Scarabello] Updated whatsnew
d6b3da8 [Luca Scarabello] fixed flake8 compliance
fdc55b9 [Luca Scarabello] Added test case for #14652d5790e2 [Luca Scarabello] updated whatsnew v0.19.2
2db0c7a [Luca] BUG: pandas.cut and negative values #14652
(cherry picked from commit 2fc0c68ace)
closes#14626
Author: Mykola Golubyev <Mykola.Golubyev@twosigma.com>
Closes#14638 from MykolaGolubyev/issue-14626 and squashes the following commits:
166ec23 [Mykola Golubyev] Inline datetime_now_without_trailing_zeros within test_format
68a72a7 [Mykola Golubyev] Fix trailing current date zeros flaky test_format problem
(cherry picked from commit 3552dc0c45)
closes#14621
Author: Jeff Reback <jeff@reback.net>
Closes#14631 from jreback/replace and squashes the following commits:
3f95042 [Jeff Reback] BUG: segfault manifesting with dateutil=2.6 w.r.t. replace when timezones are present
(cherry picked from commit f8bd08e9c2)
* BUG/API: Index.append with mixed object/Categorical indices
* Only coerce to object if the calling index is not categorical
* Add test for the df.info() case (GH14298)
(cherry picked from commit 252526cc0f)
pandas.core.common.array_equivalent was removed without deprecation warning.
This commits adds it back to the core.common namespace with deprecation warning
(cherry picked from commit 093aa8231e)
When the driver was not installed, but sqlalchemy itself was, when passing a URI string, you got an error indicating that SQLAlchemy was not installed, instead of the driver not being installed. This was because the import error for the driver was captured as import error for sqlalchemy.
(cherry picked from commit 7f5a45c1b3)
Title is self-explanatory. Affects Python 2.x only. Closes#14477.
Author: gfyoung <gfyoung17@gmail.com>
Closes#14492 from gfyoung/quotechar-unicode-2.x and squashes the following commits:
ec9f59a [gfyoung] BUG: Accept unicode quotechars again in pd.read_csv
(cherry picked from commit 6130e77fb7)
xref https://github.com/numpy/numpy/pull/8127closes#14489
Author: Jeff Reback <jeff@reback.net>
Closes#14498 from jreback/compat and squashes the following commits:
882872e [Jeff Reback] COMPAT/TST: fix test for range testing of negative integers to neg powers
(cherry picked from commit 050bf60edd)
* Fix performance regression in Series.asof by avoiding pre-computing nulls and returning value by indexing the underlying ndarray.
(cherry picked from commit e3d943d187)