Skip to content

Commit

Permalink
Removed Panel class from HDF ASVs (pandas-dev#25281)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd authored and Pingviinituutti committed Feb 28, 2019
1 parent 970c2bb commit 0d7076c
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions asv_bench/benchmarks/io/hdf.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -99,31 +97,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']
Expand Down

0 comments on commit 0d7076c

Please sign in to comment.