From 04ca0ecda1f722b6c32b6fdb67335e81343704ca Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Mon, 11 Feb 2019 21:47:00 -0800 Subject: [PATCH 1/2] Removed Panel class from HDF ASVs --- asv_bench/benchmarks/io/hdf.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/asv_bench/benchmarks/io/hdf.py b/asv_bench/benchmarks/io/hdf.py index f08904ba70a5f..8c1f623973be1 100644 --- a/asv_bench/benchmarks/io/hdf.py +++ b/asv_bench/benchmarks/io/hdf.py @@ -99,31 +99,6 @@ def time_store_info(self): self.store.info() -class HDFStorePanel(BaseIO): - - def setup(self): - self.fname = '__test__.h5' - with warnings.catch_warnings(record=True): - self.p = Panel(np.random.randn(20, 1000, 25), - items=['Item%03d' % i for i in range(20)], - major_axis=date_range('1/1/2000', periods=1000), - minor_axis=['E%03d' % i for i in range(25)]) - self.store = HDFStore(self.fname) - self.store.append('p1', self.p) - - def teardown(self): - self.store.close() - self.remove(self.fname) - - def time_read_store_table_panel(self): - with warnings.catch_warnings(record=True): - self.store.select('p1') - - def time_write_store_table_panel(self): - with warnings.catch_warnings(record=True): - self.store.append('p2', self.p) - - class HDF(BaseIO): params = ['table', 'fixed'] From c9a32e86b8b1eccc30fa2f60ee8b0df77a0db967 Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Mon, 11 Feb 2019 22:30:00 -0800 Subject: [PATCH 2/2] LINT fixup --- asv_bench/benchmarks/io/hdf.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/asv_bench/benchmarks/io/hdf.py b/asv_bench/benchmarks/io/hdf.py index 8c1f623973be1..a5dc28eb9508c 100644 --- a/asv_bench/benchmarks/io/hdf.py +++ b/asv_bench/benchmarks/io/hdf.py @@ -1,7 +1,5 @@ -import warnings - import numpy as np -from pandas import DataFrame, Panel, date_range, HDFStore, read_hdf +from pandas import DataFrame, date_range, HDFStore, read_hdf import pandas.util.testing as tm from ..pandas_vb_common import BaseIO