MCPcopy Index your code
hub / github.com/PyTables/PyTables / copy

Method copy

tables/table.py:3093–3129  ·  view source on GitHub ↗

Copy this table and return the new one. This method has the behavior and keywords described in :meth:`Leaf.copy`. Moreover, it recognises the following additional keyword arguments. Parameters ---------- sortby If specified, and sortby c

(
        self,
        newparent: Group | None = None,
        newname: str | None = None,
        overwrite: bool = False,
        createparents: bool = False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

3091 # This overloading of copy is needed here in order to document
3092 # the additional keywords for the Table case.
3093 def copy(
3094 self,
3095 newparent: Group | None = None,
3096 newname: str | None = None,
3097 overwrite: bool = False,
3098 createparents: bool = False,
3099 **kwargs,
3100 ) -> Table:
3101 """Copy this table and return the new one.
3102
3103 This method has the behavior and keywords described in
3104 :meth:`Leaf.copy`. Moreover, it recognises the following additional
3105 keyword arguments.
3106
3107 Parameters
3108 ----------
3109 sortby
3110 If specified, and sortby corresponds to a column with an index,
3111 then the copy will be sorted by this index. If you want to ensure
3112 a fully sorted order, the index must be a CSI one. A reverse
3113 sorted copy can be achieved by specifying a negative value for the
3114 step keyword. If sortby is omitted or None, the original table
3115 order is used.
3116 checkCSI
3117 If true and a CSI index does not exist for the sortby column, an
3118 error will be raised. If false (the default), it does nothing.
3119 You can use this flag in order to explicitly check for the
3120 existence of a CSI index.
3121 propindexes
3122 If true, the existing indexes in the source table are propagated
3123 (created) to the new one. If false (the default), the indexes are
3124 not propagated.
3125
3126 """
3127 return super().copy(
3128 newparent, newname, overwrite, createparents, **kwargs
3129 )
3130
3131 def flush(self) -> None:
3132 """Flush the table buffers."""

Callers 1

_read_coordinatesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected