Skip to content

Commit c010399

Browse files
committed
add whatsnew and remove unwanted benchmarks
1 parent 91e0b94 commit c010399

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

asv_bench/benchmarks/io/json.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,36 +53,18 @@ def time_read_json_lines(self, index):
5353
def time_read_json_lines_concat(self, index):
5454
concat(read_json(self.fname, orient="records", lines=True, chunksize=25000))
5555

56-
def time_read_json_lines_concat_hundred(self, index):
57-
concat(read_json(self.fname, orient="records", lines=True, chunksize=100))
58-
59-
def time_read_json_lines_concat_ten_thousand(self, index):
60-
concat(read_json(self.fname, orient="records", lines=True, chunksize=10000))
61-
6256
def time_read_json_lines_nrows(self, index):
63-
read_json(self.fname, orient="records", lines=True, nrows=15000)
64-
65-
def time_read_json_lines_nrows_larger(self, index):
66-
read_json(self.fname, orient="records", lines=True, nrows=45000)
57+
read_json(self.fname, orient="records", lines=True, nrows=25000)
6758

6859
def peakmem_read_json_lines(self, index):
6960
read_json(self.fname, orient="records", lines=True)
7061

7162
def peakmem_read_json_lines_concat(self, index):
7263
concat(read_json(self.fname, orient="records", lines=True, chunksize=25000))
7364

74-
def peakmem_read_json_lines_concat_hundred(self, index):
75-
concat(read_json(self.fname, orient="records", lines=True, chunksize=100))
76-
77-
def peakmem_read_json_lines_concat_ten_thousand(self, index):
78-
concat(read_json(self.fname, orient="records", lines=True, chunksize=10000))
79-
8065
def peakmem_read_json_lines_nrows(self, index):
8166
read_json(self.fname, orient="records", lines=True, nrows=15000)
8267

83-
def peakmem_read_json_lines_nrows_larger(self, index):
84-
read_json(self.fname, orient="records", lines=True, nrows=45000)
85-
8668

8769
class ToJSON(BaseIO):
8870

doc/source/whatsnew/v1.1.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ Other enhancements
236236
and :class:`~pandas.io.stata.StataWriterUTF8` (:issue:`26599`).
237237
- :meth:`HDFStore.put` now accepts `track_times` parameter. Parameter is passed to ``create_table`` method of ``PyTables`` (:issue:`32682`).
238238
- Make :class:`pandas.core.window.Rolling` and :class:`pandas.core.window.Expanding` iterable(:issue:`11704`)
239+
- :meth:`~pandas.io.json.read_json` now accepts `nrows` parameter. (:issue:`33916`).
239240

240241
.. ---------------------------------------------------------------------------
241242

0 commit comments

Comments
 (0)