Skip to content

DEPR: Deprecate numpy argument in read_json #28562

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 38 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5a5b347
add original changes.
lucaionescu Dec 18, 2019
18bd98f
ENH: Add support for DataFrame(Categorical) (#11363) (#30305)
proost Dec 18, 2019
416907d
DOC: whatsnew fixups (#30331)
TomAugspurger Dec 18, 2019
f36eac1
CLN: changed .format to f-string in pandas/core/dtypes (#30287)
DorAmram Dec 18, 2019
70a083f
Fix typos, via a Levenshtein-style corrector (#30341)
bwignall Dec 19, 2019
20e4c18
TYPING: Enable --check-untyped-defs for MyPy (#29493)
simonjayhawkins Dec 19, 2019
53a0dfd
BUG: Fix infer_dtype_from_scalar to infer IntervalDtype (#30339)
jschendel Dec 19, 2019
5b25df2
API: Return BoolArray for string ops when backed by StringArray (#30239)
TomAugspurger Dec 19, 2019
f8b9ce7
REF: change parameter name fname -> path (#30338)
jbrockmendel Dec 19, 2019
8cbfd06
CLN: make lookups explicit instead of using globals (#30343)
jbrockmendel Dec 19, 2019
2bfd10c
REF: remove pytables Table.metadata (#30342)
jbrockmendel Dec 19, 2019
95e1a63
REF: pytables prepare to make _create_axes return a new object (#30344)
jbrockmendel Dec 19, 2019
e66a2c7
CLN: format replaced with f-strings #29547 (#30355)
hasnain2808 Dec 19, 2019
011a667
replace str.format with f-string (#30363)
AlpAribal Dec 20, 2019
c521a4e
DOC: "Next" link from user_guide/io.rst goes to read_sql_table API pa…
souvik3333 Dec 20, 2019
b4343ef
CI: troubleshoot codecov (#30070)
jbrockmendel Dec 20, 2019
66038e9
BUG+TST: non-optimized apply_index and empty DatetimeIndex (#30336)
jbrockmendel Dec 20, 2019
a9e2566
REF: define NA_VALUES in libparsers (#30373)
jbrockmendel Dec 20, 2019
eadaa40
[CLN] remove now-unnecessary td.skip_if_no(pathlib) (#30376)
MarcoGorelli Dec 20, 2019
1be80ea
REF: directory for method-specific series/frame tests (#30362)
jbrockmendel Dec 20, 2019
a6b047a
REF: refactor cumulative op tests from test_analytics (#30358)
jbrockmendel Dec 20, 2019
9296849
Cleaned up Tempita refs and Cython import (#30330)
WillAyd Dec 20, 2019
6efc237
CLN: Old string formatting: .format() -> f"" (#30328)
baevpetr Dec 20, 2019
0df8858
de-privatize io.common functions (#30368)
jbrockmendel Dec 20, 2019
0cd388f
CLN: remove py2-legacy UnicodeReader, UnicodeWriter (#30371)
jbrockmendel Dec 20, 2019
8376067
CI: troubleshoot codecov (#30380)
jbrockmendel Dec 21, 2019
c869255
CLN: move code out of try clause in merge.py (#30382)
topper-123 Dec 21, 2019
477b2d5
TYP: Annotations in core/indexes/ (#30390)
ShaharNaveh Dec 21, 2019
835f207
DOC: fix external links + favicon (#30389)
jorisvandenbossche Dec 22, 2019
a2bbdb5
STY: Underscores for long numbers (#30397)
ShaharNaveh Dec 22, 2019
104fc11
fix call of tm.assert_frame_equal
lucaionescu Dec 22, 2019
97b182b
add original changes.
lucaionescu Dec 18, 2019
3c8f95b
fix call of tm.assert_frame_equal
lucaionescu Dec 22, 2019
df2671b
merge.
lucaionescu Dec 22, 2019
f46426e
Revert "fix call of tm.assert_frame_equal"
lucaionescu Dec 22, 2019
0be5dd7
Revert "merge."
lucaionescu Dec 22, 2019
16217f0
fix tm.assert_frame_equal. use naming conventions.
lucaionescu Dec 22, 2019
640f729
sort imports correctly.
lucaionescu Dec 22, 2019
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
Prev Previous commit
Next Next commit
[CLN] remove now-unnecessary td.skip_if_no(pathlib) (#30376)
  • Loading branch information
MarcoGorelli authored and jreback committed Dec 20, 2019
commit eadaa403be60df0d2852ac6ee2c5ed1ca78aeb7a
4 changes: 1 addition & 3 deletions pandas/tests/io/pytables/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from distutils.version import LooseVersion
from io import BytesIO
import os
from pathlib import Path
import re
from warnings import catch_warnings, simplefilter

Expand Down Expand Up @@ -4594,12 +4595,9 @@ def test_read_nokey_empty(self, setup_path):
with pytest.raises(ValueError):
read_hdf(path)

@td.skip_if_no("pathlib")
def test_read_from_pathlib_path(self, setup_path):

# GH11773
from pathlib import Path

expected = DataFrame(
np.random.rand(4, 5), index=list("abcd"), columns=list("ABCDE")
)
Expand Down
4 changes: 1 addition & 3 deletions pandas/tests/io/sas/test_sas7bdat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import io
import os
from pathlib import Path

import numpy as np
import pytest
Expand Down Expand Up @@ -68,10 +69,7 @@ def test_from_iterator(self):
tm.assert_frame_equal(df, df0.iloc[2:5, :])
rdr.close()

@td.skip_if_no("pathlib")
def test_path_pathlib(self):
from pathlib import Path

for j in 0, 1:
df0 = self.data[j]
for k in self.test_ix[j]:
Expand Down
11 changes: 2 additions & 9 deletions pandas/tests/io/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from io import StringIO
import mmap
import os
from pathlib import Path

import pytest

Expand All @@ -27,14 +28,7 @@ def __fspath__(self):


# Functions that consume a string path and return a string or path-like object
path_types = [str, CustomFSPath]

try:
from pathlib import Path

path_types.append(Path)
except ImportError:
pass
path_types = [str, CustomFSPath, Path]

try:
from py.path import local as LocalPath
Expand Down Expand Up @@ -73,7 +67,6 @@ def test_expand_user_normal_path(self):
assert expanded_name == filename
assert os.path.expanduser(filename) == expanded_name

@td.skip_if_no("pathlib")
def test_stringify_path_pathlib(self):
rel_path = icom._stringify_path(Path("."))
assert rel_path == "."
Expand Down