Skip to content
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

Removed Panel class from HDF ASVs #25281

Merged
merged 3 commits into from
Feb 13, 2019
Merged
Changes from all commits
Commits
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
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