Skip to content

WIP: API: Add support for PEP 519 / file system path protocol #14123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 338 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
338 commits
Select commit Hold shift + click to select a range
97fd856
CLN: remove build some warnings
jreback Jan 30, 2017
d585157
CLN: remove build warnings from tslib.pyx, saslib.pyx, some from lib.…
jreback Jan 30, 2017
cfb916e
BUG: Fix overflow error in cartesian_product
david-hoffman Feb 1, 2017
ab09d2d
COMPAT: xarray 0.8.2 test compat w.r.t. CategoricalIndex indempotency…
jreback Feb 1, 2017
a2e86ad
BUG: Support empty dict-likes in replace()
ExpHP Feb 2, 2017
951bbbb
TST: DatetimeIndex compiled together in test_datetime.py
Feb 3, 2017
84a7adf
TST: create the pandas/tests/scalar directory structure
jreback Feb 3, 2017
8f124ba
Added a tutorial for pandas dataframes (#15295)
Kacawi Feb 3, 2017
6ff9083
TST: Timestamp and Timeseries tests reorg (gh14854)
Feb 4, 2017
c5342fd
TST: making test files a bit more balanced
jreback Feb 4, 2017
f98398b
TST: more test moving from series/test_timeseries.py
jreback Feb 4, 2017
1aef9bc
ENH: .isnull and .notnull have been added as methods to Index to make…
jreback Feb 4, 2017
76becb7
BUG: Fix downcast argument for DataFrame.fillna()
Feb 6, 2017
4a5d851
DOC/CI: ensure correct pandas version (GH15311) (#15317)
jorisvandenbossche Feb 6, 2017
5eac460
CLN: reorg pandas/io/json to sub-dirs
jreback Feb 6, 2017
c3775bf
BUG: bug in passing 'on=' keyword for groupby(..).resample()
Feb 7, 2017
27fedba
TST: remove __main__ from all test files (#15330)
jreback Feb 7, 2017
0f10b04
TST/STYLE: remove multiprocess nose flags and slight PEP fixes
jreback Feb 7, 2017
1fc92b9
TST/CLN: reorg more of tseries/tests
Feb 6, 2017
c087c7a
TST: more tseries/tests reorg
jreback Feb 7, 2017
248c53b
TST/CLN: reorg groupby tests (#15336)
jreback Feb 8, 2017
d20c45f
TST: mark gbq streaming insert tests as slow
jreback Feb 8, 2017
5d7a777
ENH: .squeeze has gained the axis parameter
kernc Feb 8, 2017
0e21767
Small documentation fix for MultiIndex.sortlevel (#15345)
J535D165 Feb 8, 2017
8ad25d4
CI: use pip install for statsmodels
jreback Feb 8, 2017
97a0202
TST: Period tests reorg
Feb 8, 2017
8436024
TST: more test_period reorg
jreback Feb 8, 2017
d4da626
DEPR: remove statsmodels as a dependency
jreback Feb 9, 2017
e5a58f0
BUG: Multiline Eval broken for local variables after first line
stephenrauch Feb 9, 2017
64384e9
BUG: fix read_gbq lost precision for longs above 2^53 and floats abov…
Feb 9, 2017
a22a2ae
CLN: strip out and form tools/concat.py from tools/merge.py
jreback Feb 9, 2017
89a4e92
TST: Remaining tseries tests reorg
Feb 9, 2017
0810889
TST: more tseries reorg
jreback Feb 9, 2017
18bc171
API: Reformat output of groupby.describe (#4792)
mroeschke Feb 10, 2017
24e98df
BUG: Fix #15344 by backporting ujson usage of PEP 393 API
tobgu Feb 10, 2017
eaf2216
TST: Use pytest
TomAugspurger Feb 10, 2017
ed27d40
TST: small adjustments for pytest
jreback Feb 10, 2017
3e600fb
COMPAT: skip tests for numpy >= 1.12 with pow and integer inputs
jreback Feb 10, 2017
021f594
BUG: Fixed handling of non-list value_vars in melt
Feb 10, 2017
636df8d
TST: split up tests/indexing/test_indexing a bit
jreback Feb 11, 2017
a4e8018
DOC: fix py3 compat (change lost in FAQ-gotchas merge)
jorisvandenbossche Feb 11, 2017
5dabbaf
TST: remove nose
jreback Feb 11, 2017
54b1f9c
BUG: Avoid grafting missing examples directory (#15373)
neirbowj Feb 12, 2017
97cdbf0
CLN: remove pandas/io/auth.py, from ga.py (now removed) (#15374)
jreback Feb 12, 2017
c059b0a
TST: consolidate remaining tests under pandas.tests
jreback Feb 12, 2017
1cad387
TST: fix locations for github based url tests
jreback Feb 12, 2017
a9adfb6
DOC: fix path in whatsnew
jreback Feb 12, 2017
0a4773a
TST: use xdist for multiple cpu testing
jreback Feb 11, 2017
1d9569d
Typo (#15377)
andrewkittredge Feb 12, 2017
7949cec
TST: control skipping of numexpr tests if its installed / used
jreback Feb 12, 2017
f239129
TST: make test_gbq single cpu
jreback Feb 12, 2017
29666cc
ENH: expose Int64VectorData in hashtable.pxd
jreback Feb 13, 2017
0c38886
TST: xfail most test_gbq tests for now
jreback Feb 13, 2017
8eda10b
TST: Fix gbq integration tests. gbq._Dataset.dataset() would not retu…
parthea Feb 14, 2017
4b098f9
Bug: Raise ValueError with interpolate & fillna limit = 0 (#9217)
mroeschke Feb 14, 2017
811e8c1
CLN: create core/sorting.py
jreback Feb 14, 2017
a4ddb8f
TST: disable gbq tests again
jreback Feb 15, 2017
7c625ec
TST: fix incorrect url in compressed url network tests in parser
jreback Feb 15, 2017
2f10800
TST: incorrect skip in when --skip-network is run
jreback Feb 15, 2017
65a6be5
TST: fix test_nework.py fixture under py27
jreback Feb 15, 2017
49f0c75
BLD: Numexpr 2.4.6 required
Feb 15, 2017
d6adeec
TST: print skipped tests files
jreback Feb 15, 2017
06ad296
PERF: high memory in MI
jreback Feb 15, 2017
af89a04
STYLE: flake8 upgraded to 3.3 on conda (#15412)
jreback Feb 15, 2017
a07db74
DOC: use shared_docs for Index.get_indexer, get_indexer_non_unique (#…
jreback Feb 15, 2017
9f91c15
BLD: use latest conda version with latest miniconda installer on appv…
jreback Feb 15, 2017
0c7e906
TST: convert yield based test_pickle.py to parametrized to remove war…
jreback Feb 16, 2017
0460a72
TST: Parametrize simple yield tests
QuLogic Feb 16, 2017
bd9c1d2
BUG: Ensure the right values are set in SeriesGroupBy.nunique
Feb 16, 2017
23401c1
BUG: Concat with inner join and empty DataFrame
abaldenko Feb 16, 2017
43aba17
ENH: Added ability to freeze panes from DataFrame.to_excel() (#15160)
jeffcarey Feb 16, 2017
3a74d95
Documents touch-up for DataFrame.to_excel() freeze_panes option (#15436)
jeffcarey Feb 17, 2017
a7ba5e8
BUG: to_sql convert index name to string (#15404) (#15423)
redbullpeter Feb 17, 2017
f8adc5d
DOC: add whatsnew for #15423
jorisvandenbossche Feb 17, 2017
68c1d30
TST: remove yielding tests from test_msgpacks.py (#15427)
jreback Feb 17, 2017
0630ba8
ENH: Don't add rowspan/colspan if it's 1.
QuLogic Feb 17, 2017
591427a
DOC: correct rpy2 examples (GH15142) (#15450)
jorisvandenbossche Feb 18, 2017
815aca7
BUG: rolling not accepting Timedelta-like window args (#15443)
mroeschke Feb 18, 2017
4f2ef7d
BUG: testing on windows
jreback Feb 18, 2017
54e9bf3
BUG: MultiIndex indexing with passed Series/DataFrame/ndarray as inde…
toobaz Feb 20, 2017
01b1126
TST: make sure test_fash uses the same seed for launching processes
jreback Feb 20, 2017
270fb3e
ENH: Add __copy__ and __deepcopy__ to NDFrame
bmcfee Feb 20, 2017
e60269b
CI: add circle ci support
jreback Feb 21, 2017
b297503
BUG: Bug on reset_index for a MultiIndex of all NaNs
tzinckgraf Feb 21, 2017
717163b
DOC: Link CONTRIBUTING.md to contributing.rst (#15451)
gfyoung Feb 21, 2017
53c09a3
TST: remove 4 builds from travis that are on circleci (#15465)
jreback Feb 22, 2017
47a91f3
update README.md for badges (circleci and fix anaconda cloud pointer)
jreback Feb 22, 2017
3819bc2
ENH: Adds custom plot formatting for TimedeltaIndex.
jgoppert Feb 22, 2017
52a5481
TST: skip some timedelta plotting tests on mac (on travis) for precis…
jreback Feb 22, 2017
1a0599d
ENH union_categoricals supports ignore_order GH13410
Feb 22, 2017
90a0cf7
TST: break out union_categoricals to separate test file
jreback Feb 22, 2017
fa3c2e4
BUG: Categorical.unique() preserves categories
kernc Feb 22, 2017
3f8677b
PEP: pep issue in pandas/tests/tools/test_concat.py
jreback Feb 22, 2017
431132e
CI: use correct circleci badge
jreback Feb 23, 2017
4c015e9
BUG: The roll_quantile function now throws an exception instead of ca…
csizsek Feb 23, 2017
28105bd
TST: add pytest to asv conf
jreback Feb 24, 2017
6045e79
CLN: split off frozen (immutable) data structures into pandas/indexes…
jreback Feb 24, 2017
f8c5a24
DOC: Fix to docstrings of is_type_factory and is_instance_factory (#1…
fumitoh Feb 24, 2017
28f8c8f
BUG: incorrect ranking in an ordered categorical
jeet63 Feb 24, 2017
f1ea8b1
BUG: Accept Generic Array-Like for .where
gfyoung Feb 24, 2017
90909f6
BUG: GH #12223, GH #15262. Allow ints for names in MultiIndex
Dr-Irv Feb 24, 2017
889b0dd
BUG: msgpack supports CategoricalIndex
abast Feb 24, 2017
ebd124b
DOC: fix doc build warnings (#15505)
jorisvandenbossche Feb 25, 2017
fdac7c3
DOC: Fix versionadded for cond in .where (#15509)
gfyoung Feb 25, 2017
4adfeb8
BUG: Parse two date columns broken in read_csv with multiple headers
stephenrauch Feb 27, 2017
8d90d6c
BUG: GH15426 timezone lost in groupby-agg with cython functions
stephenrauch Feb 27, 2017
cd64027
BUG: Fix a bug occuring when using DataFrame.to_records with unicode
AlexisMignon Jun 16, 2016
f618916
BUG: reindex_like after shape comparison
jojomdt Feb 27, 2017
a38a957
TST: DataFrame.hist() does not get along with matplotlib.pyplot.tight…
ResidentMario Feb 27, 2017
ff81cc9
CLN: remove pandas/io/gbq.py and tests and replace with pandas-gbq
jreback Feb 27, 2017
ca8c53c
BUG: GH15429 transform result of timedelta from datetime
jreback Feb 27, 2017
d18d0b4
BUG: fix groupby.aggregate resulting dtype coercion, xref #11444, #13046
jreback Feb 27, 2017
99d3544
DOC: Update contributing for test_fast, fix doc Windows build (#15523)
Dr-Irv Feb 27, 2017
2d18b7f
BUG: fix to_gbq calling convention; now its a bound method of DataFrame
jreback Feb 28, 2017
36631dc
BUG: fix calling convention for to_gbq, take 2
jreback Feb 28, 2017
afae797
DEPR: rename consolidate to _consolidate and create deprecation warni…
GuessWhoSamFoo Feb 28, 2017
4116d9e
DEPR: remove pd.TimeSeries & Series.is_time_series
jreback Feb 28, 2017
4a3035b
BUG: DataFrame index & column returned by corr & cov are the same (#1…
mroeschke Feb 28, 2017
95f545d
BLD: fix 2.7_LOCALE build
jreback Mar 1, 2017
9732cd6
PERF: Rank categorical perf
jeet63 Mar 1, 2017
1931c1e
COMPAT: if docstring_wrapper is activated on a class, don't fail
jreback Mar 2, 2017
7c6bee5
DOC: add pandas-gbq to doc-build
jreback Mar 2, 2017
8528157
DOC: Styler.set_table_attributes docstring
chris-b1 Mar 2, 2017
81905df
TST: split tests/format/test_format.py (#15546)
jreback Mar 2, 2017
7cef767
CLN: remove deprecated irow, icol, iget, iget_value (GH10711)
jorisvandenbossche Mar 2, 2017
5c55b7c
DOC: revert gbq doc-strings to be in-line rather than wrapped
jreback Mar 2, 2017
8ffed0e
ENH: Added FrozenList difference setop
benthayer Mar 2, 2017
ab8ad9f
BUG: Fix index for datetime64 conversion. Fixes #13937
amolkahat Mar 2, 2017
380a082
TST: remove deprecated usages of FrozenList.__add__ from test code
jreback Mar 2, 2017
6417246
Make Series.map() documentation a bit more verbose
manuels Mar 2, 2017
9204e16
ENH: Added multicolumn/multirow support for latex (#14184)
hein09 Mar 3, 2017
e3ba132
DEPR: deprecate some top-level non-used functions (#15538)
jreback Mar 3, 2017
c4d2061
BUG: Set frequency for empty Series
sahildua2305 Mar 3, 2017
a94ed1e
BUG: syntax error in hdf query with ts
chris-b1 Mar 3, 2017
06c5c6e
BUG: handle empty lists in json_normalize (#15535)
rgbkrk Mar 4, 2017
7235dde
ENH: Added to_json_schema (#14904)
TomAugspurger Mar 4, 2017
a380a39
DEPR/CLN: remove SparseTimeSeries class (follow-up GH15098) (#15567)
jorisvandenbossche Mar 4, 2017
dd5d3b1
Revert FrozenList changes (doc build slowdown, #15559)
jorisvandenbossche Mar 4, 2017
db51afb
DEPR: silence some deprecation warnings
jreback Mar 4, 2017
f82ffa0
CLN: clean up PeriodIndex constructor
max-sixty Mar 4, 2017
ef9a93a
BUG: pivot_table over Categorical Columns
Mar 4, 2017
161a9af
DOC: fix build_table_schema docs (#15571)
jorisvandenbossche Mar 4, 2017
78c08ac
BUG: DataFrame.isin empty datetimelike (#15570)
chris-b1 Mar 5, 2017
ad24d7f
BUG: Groupby.cummin/max DataError on datetimes (#15561) (#15569)
mroeschke Mar 5, 2017
dd17884
DOC: reset table_schema option after example (#15572)
jorisvandenbossche Mar 5, 2017
5b8ded1
ENH: str.replace accepts a compiled expression (#15456)
rouzazari Mar 5, 2017
45a9bf6
TST: fix test str_replace error messge (#15456)
jorisvandenbossche Mar 5, 2017
388aab9
Update dtypes.py (#15577)
petioptrv Mar 5, 2017
47968e6
BUG: Floating point accuracy with DatetimeIndex.round (#14440)
mroeschke Mar 5, 2017
90eb140
PERF: faster unstacking
jreback Mar 5, 2017
b4b9075
API: return Index instead of array from datetime field accessors (GH1…
jorisvandenbossche Mar 6, 2017
6b3d8db
Revert "API: return Index instead of array from datetime field access…
jorisvandenbossche Mar 6, 2017
f3b57a1
DOC: updated badges
jreback Mar 6, 2017
21cc067
DOC: remove wakari.io section (#15596)
mandel01 Mar 6, 2017
01894d8
DOC: remove Panel4D from the API docs #15579 (#15598)
yinleon Mar 7, 2017
69902bd
CLN: Moved freeze_panes validation to io/excel.py (#15160)
jeffcarey Mar 7, 2017
c4f6960
BUG: Timestamp.round precision error for ns (#15578)
mroeschke Mar 7, 2017
ea5d7ad
BUG: repr SparseDataFrame after setting a value
kernc Mar 7, 2017
f5fc387
DOC/BUILD: Parallelize doc build
jreback Mar 7, 2017
9ee6980
BUG: fix SparseSeries reindex by using Series implementation
toobaz Mar 7, 2017
520eb1a
BLD: consolidate remaining extensions
jreback Mar 7, 2017
ef56228
CLN: clean up Makefile & fix lib.pyx deps
jreback Mar 8, 2017
0c59dd5
DOC: fix appeveyor badge to point to pandas-dev account
jreback Mar 8, 2017
cbbce9a
BUG: make Series.sort_values(ascending=[False]) behave as ascending=F…
Mar 8, 2017
3253054
DOC: remove gbq references / clean some whatsnew
jreback Mar 8, 2017
65bdde5
BUG: pd.cut with bins=1 and input all 0s
luca-s Mar 8, 2017
53dc52c
BLD: fix linting wrt to #15537, changes in location of pandas/src (#1…
jreback Mar 8, 2017
cc82b54
DOC: more whatsnew fixing
jreback Mar 8, 2017
c958948
DOC: fix link to offset strings in resample method (#15619)
DaanVanHauwermeiren Mar 8, 2017
e8369a1
DOC: make it possible to run doctests (#15626)
jorisvandenbossche Mar 9, 2017
3ef6f46
DOC: add example for DataFrame.resample: keywords on and level (#15627)
DaanVanHauwermeiren Mar 9, 2017
d8df4d2
DOC: resolved mistakes in examples series (#15625)
MichielStock Mar 9, 2017
250dc8d
ENH: to_string/to_latex now accept list-like header arg for overwriti…
mcocdawc Mar 9, 2017
160f19d
DOC: add documentation to IndexSlice (#15623)
jdcla Mar 9, 2017
ae8ea01
DOC: remove to_gbq from api.rst as not directly callable (DataFrame.t…
jreback Mar 9, 2017
973cfc1
DOC: use mathjax on sphinx - #15469 Exponentially Weighed Windows pag…
cdemulde Mar 9, 2017
3bfe1ca
ENH: add compression support for 'read_pickle' and 'to_pickle'
goldenbull Mar 9, 2017
55507ca
TST: fix up compression tests / docs
jreback Mar 9, 2017
35145b2
DOC: remove latex and parallel building (#15637)
jorisvandenbossche Mar 9, 2017
0696bb1
DOC: increase recursion limit on sphinx builds (#15641)
jreback Mar 10, 2017
9eaac95
DEPR: remove more .ix warnings from tests
jreback Mar 10, 2017
b28ac27
BUG: Incorrect value updating for groupby.cummin/max (#15635)
mroeschke Mar 10, 2017
fd9c9ed
DOC GH15643 Removed pytest-xdist from requirements_dev.txt file (#15646)
linebp Mar 10, 2017
33c05cd
DOC: add examples to DataFrame.dropna (#15620)
JennaVergeynst Mar 10, 2017
c1065da
DOC: doc warnings
jreback Mar 10, 2017
adaca51
ENH: Native conversion from/to scipy.sparse matrix to SparseDataFrame
kernc Mar 10, 2017
e1996ce
BUG: Error when specifying int index containing NaN
gfyoung Mar 10, 2017
482b28d
API: Drop DataFrame.iterkv()
gfyoung Mar 10, 2017
1607abe
BUG/API: .merge() and .join() on category dtype columns will now pres…
jreback Mar 10, 2017
eb9a201
API: Drop the name parameter from Categorical
gfyoung Mar 11, 2017
326d738
MAINT: Remove testing.assert_isinstance (#15652)
gfyoung Mar 11, 2017
4cb1cd7
CLN: Cleanup tests for .rank()
rouzazari Mar 12, 2017
971908e
DOC: fix typo in timeseries documentation (#15666)
adamjstewart Mar 12, 2017
8f3a2d6
Fix another typo in the timeseries documentation (#15667)
adamjstewart Mar 12, 2017
94d9188
BLD: make 3.6 use *only* conda-forge channels
jreback Mar 12, 2017
e17ba3d
TST: skip scipy tests for >= 0.19.0 as needed in interpolation / wind…
jreback Mar 12, 2017
6bc9ea9
COMPAT: free parser memory at close() for non-refcnt gc
mattip Mar 13, 2017
42fe25f
DOC: typo in merge.rst
jreback Mar 13, 2017
3bca592
DOC: correct whatsnew note of #15515
jorisvandenbossche Mar 13, 2017
a4c8c60
DOC: typo in merge.rst
jreback Mar 13, 2017
b8420ba
TST: fix errant tight_layout test (#15671)
ResidentMario Mar 13, 2017
36cfda4
DOC: use shared docs on Index._convert_list_indexer (#15678)
jreback Mar 13, 2017
6326521
BUG: upcasting on reshaping ops #13247
jaehoonhwang Mar 14, 2017
eae80ec
DOC/TST: clean up docs & tests, xref #15594
jreback Mar 14, 2017
8f410a4
BUG: Allow multiple 'by' parameters in merge_asof() when DataFrames a…
Mar 14, 2017
883536a
DOC: elevate deprecations / removals to top-level of whatsnew doc to …
jreback Mar 14, 2017
c556177
compatibility with scipy 0.19
zym1010 Mar 15, 2017
c3efe0e
ENH: use constant f32 eps, not np.finfo() during import
jzwinck Mar 15, 2017
cc7a999
TST: reorg tests_multilevel.py tests
jreback Mar 15, 2017
7d3333c
BUG: Group-by numeric type-coercion with datetime
gwpdt Mar 16, 2017
ca223b5
CI: remove dev-scipy from testing on numpy-dev build as really old wh…
jreback Mar 16, 2017
7e4615a
MAINT: test with manylinux numpy/scipy pre-release (#15702)
matthew-brett Mar 16, 2017
3dd9a8d
TST: missing __init__.py file in pandas/tests/io/sas
jreback Mar 16, 2017
05be2bd
TST: report the exit code on pandas.test() exit
jreback Mar 16, 2017
4dbe10e
CI: re-enable miniconda cache
jreback Mar 17, 2017
50bbb09
TST: Replace check_package with skip_if_no_package (#15709)
gfyoung Mar 17, 2017
9630d4c
DOC: Add gotcha about flake8-ing diff
gfyoung Mar 17, 2017
7fc3434
TST: don't catch, but supress warnings in panel4d/panelnd (#15705)
jreback Mar 17, 2017
87df521
BUG: TZ-aware Series.where() appropriately handles default other=nan …
Mar 17, 2017
bcbb673
TST: remove rest of yield warnings (#15708)
jreback Mar 17, 2017
ed9b014
CI: actually use the miniconda cache :>
jreback Mar 17, 2017
89ccfa4
TST: only catch deprecation warnings for top-level module imports (#1…
jreback Mar 17, 2017
880c9ab
CI: fix cache again
jreback Mar 17, 2017
8809d9c
CI: typo in using ccache
jreback Mar 17, 2017
66829d7
DOC: Update broken link in cookbook.rst #15605
lorenzocestaro Mar 17, 2017
c098382
CI: don't fail if our env already exists in caching
jreback Mar 17, 2017
c40dbc8
CI: remove caching for miniconda itself (#15722)
jreback Mar 17, 2017
a5e1ab8
CI: remove miniconda from actual cache scripts
jreback Mar 17, 2017
6946439
CI: install ccache on osx
jreback Mar 17, 2017
eefe266
MAINT: Drop take_last kwarg from method signatures
gfyoung Mar 18, 2017
4794392
TST: move pandas/tests/io/test_date_converters.py to pandas/tests/io/…
jaehoonhwang Mar 18, 2017
7e34190
CI: install nomkl to speed building (#15728)
jreback Mar 18, 2017
16a45a8
DOC: Fix typos in merge_asof() docstring (#15729)
chrisaycock Mar 18, 2017
579710f
TST: move conftest.py to top-level (#15731)
jreback Mar 18, 2017
6a5193b
CI: remove 3.5 appveyor build (#15730)
jreback Mar 18, 2017
d7e19f6
CI: turn on cache for osx (#15733)
jreback Mar 18, 2017
a5ea998
Revert "TST: move conftest.py to top-level (#15731)"
jreback Mar 18, 2017
232228d
TST: clean up build testing
jreback Mar 19, 2017
c2e5beb
MAINT: Drop order and sort from pandas objects (#15735)
gfyoung Mar 19, 2017
8e62346
DOC: Fix typo in docstring param name (#15739)
jzwinck Mar 20, 2017
5b75cf8
BUG: Fix linux clipboard QApplication() creation
pankajp Mar 20, 2017
25b8c49
BUG: replace coerces incorrect dtype
sinhrks Mar 20, 2017
f139a77
BUG: tz aware Timestamp field accessors returns local values (#13303)
mroeschke Mar 20, 2017
fc0d670
DOC: Patch new flake8 command grep
gfyoung Mar 20, 2017
649cd39
MAINT: Remove Long and WidePanel (#15748)
gfyoung Mar 20, 2017
fcb6a9f
PERF: Improve drop_duplicates for bool columns (#12963)
mroeschke Mar 20, 2017
de15b6d
CI: trying for osx cache again
jreback Mar 20, 2017
2c4e377
Fix num_days in PandasAutoDateLocator (#14716)
wiktortomczak Mar 21, 2017
0fa874b
CI: set path for osx ccache
jreback Mar 21, 2017
fb72afc
CLN: replace _interleave_dtype with _find_common_type
jreback Mar 21, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pandas/io/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
_PY_PATH_INSTALLED = False


try:
from os import fspath, PathLike
_OS_FSPATH_INSTALLED = True
except:
_OS_FSPATH_INSTALLED = False


if compat.PY3:
from urllib.request import urlopen, pathname2url
_urlopen = urlopen
Expand Down Expand Up @@ -183,6 +190,10 @@ def _stringify_path(filepath_or_buffer):
-------
str_filepath_or_buffer : a the string version of the input path
"""
if _OS_FSPATH_INSTALLED and isinstance(filepath_or_buffer, PathLike):
return fspath(filepath_or_buffer)
elif hasattr(filepath_or_buffer, "__fspath__"):
return filepath_or_buffer.__fspath__()
if _PATHLIB_INSTALLED and isinstance(filepath_or_buffer, pathlib.Path):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might as well make the others elif

return text_type(filepath_or_buffer)
if _PY_PATH_INSTALLED and isinstance(filepath_or_buffer, LocalPath):
Expand Down
5 changes: 4 additions & 1 deletion pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from pandas.core.index import _ensure_index
from pandas.tools.merge import concat
from pandas import compat
from pandas.compat import u_safe as u, PY3, range, lrange, string_types, filter
from pandas.compat import u_safe as u, PY3, range, lrange, string_types, text_type, filter
from pandas.core.config import get_option
from pandas.computation.pytables import Expr, maybe_expression

Expand Down Expand Up @@ -487,6 +487,9 @@ def __contains__(self, key):
return True
return False

def __fspath__(self):
return text_type(self._path)

def __len__(self):
return len(self.groups())

Expand Down