Skip to content

REF: remove pytables Table.metadata #30342

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

Merged
merged 1 commit into from
Dec 19, 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
11 changes: 1 addition & 10 deletions pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2033,9 +2033,6 @@ def maybe_set_size(self, min_itemsize=None):
if min_itemsize is not None and self.typ.itemsize < min_itemsize:
self.typ = _tables().StringCol(itemsize=min_itemsize, pos=self.pos)

def validate(self, handler, append):
self.validate_names()

def validate_names(self):
pass

Expand Down Expand Up @@ -3176,7 +3173,6 @@ def __init__(
self.non_index_axes = []
self.values_axes = []
self.data_columns = []
self.metadata = []
self.info = dict()
self.nan_rep = None

Expand Down Expand Up @@ -3376,7 +3372,6 @@ def set_attrs(self):
self.attrs.encoding = self.encoding
self.attrs.errors = self.errors
self.attrs.levels = self.levels
self.attrs.metadata = self.metadata
self.attrs.info = self.info

def get_attrs(self):
Expand All @@ -3390,7 +3385,6 @@ def get_attrs(self):
self.levels = getattr(self.attrs, "levels", None) or []
self.index_axes = [a for a in self.indexables if a.is_an_indexable]
self.values_axes = [a for a in self.indexables if not a.is_an_indexable]
self.metadata = getattr(self.attrs, "metadata", None) or []

def validate_version(self, where=None):
""" are we trying to operate on an old version? """
Expand Down Expand Up @@ -3896,9 +3890,6 @@ def get_blk_items(mgr, blocks):
# validate our min_itemsize
self.validate_min_itemsize(min_itemsize)

# validate our metadata
self.metadata = [c.name for c in self.values_axes if c.metadata is not None]

# validate the axes if we have an existing table
if validate:
self.validate(existing_table)
Expand Down Expand Up @@ -4127,7 +4118,7 @@ def write(
)

for a in self.axes:
a.validate(self, append)
a.validate_names()

if not self.is_exists:

Expand Down