@@ -569,9 +569,10 @@ def __getattr__(self, name: str):
569569 )
570570
571571 def __contains__ (self , key : str ) -> bool :
572- """ check for existence of this key
573- can match the exact pathname or the pathnm w/o the leading '/'
574- """
572+ """
573+ check for existence of this key
574+ can match the exact pathname or the pathnm w/o the leading '/'
575+ """
575576 node = self .get_node (key )
576577 if node is not None :
577578 name = node ._v_pathname
@@ -1831,18 +1832,19 @@ def get_result(self, coordinates: bool = False):
18311832
18321833
18331834class IndexCol :
1834- """ an index column description class
1835+ """
1836+ an index column description class
18351837
1836- Parameters
1837- ----------
1838+ Parameters
1839+ ----------
18381840
1839- axis : axis which I reference
1840- values : the ndarray like converted values
1841- kind : a string description of this type
1842- typ : the pytables type
1843- pos : the position in the pytables
1841+ axis : axis which I reference
1842+ values : the ndarray like converted values
1843+ kind : a string description of this type
1844+ typ : the pytables type
1845+ pos : the position in the pytables
18441846
1845- """
1847+ """
18461848
18471849 is_an_indexable = True
18481850 is_data_indexable = True
@@ -1999,9 +2001,11 @@ def __iter__(self):
19992001 return iter (self .values )
20002002
20012003 def maybe_set_size (self , min_itemsize = None ):
2002- """ maybe set a string col itemsize:
2003- min_itemsize can be an integer or a dict with this columns name
2004- with an integer size """
2004+ """
2005+ maybe set a string col itemsize:
2006+ min_itemsize can be an integer or a dict with this columns name
2007+ with an integer size
2008+ """
20052009 if _ensure_decoded (self .kind ) == "string" :
20062010
20072011 if isinstance (min_itemsize , dict ):
@@ -2051,8 +2055,10 @@ def validate_attr(self, append: bool):
20512055 )
20522056
20532057 def update_info (self , info ):
2054- """ set/update the info for this indexable with the key/value
2055- if there is a conflict raise/warn as needed """
2058+ """
2059+ set/update the info for this indexable with the key/value
2060+ if there is a conflict raise/warn as needed
2061+ """
20562062
20572063 for key in self ._info_fields :
20582064
@@ -2140,17 +2146,18 @@ def set_attr(self):
21402146
21412147
21422148class DataCol (IndexCol ):
2143- """ a data holding column, by definition this is not indexable
2149+ """
2150+ a data holding column, by definition this is not indexable
21442151
2145- Parameters
2146- ----------
2152+ Parameters
2153+ ----------
21472154
2148- data : the actual data
2149- cname : the column name in the table to hold the data (typically
2150- values)
2151- meta : a string description of the metadata
2152- metadata : the actual metadata
2153- """
2155+ data : the actual data
2156+ cname : the column name in the table to hold the data (typically
2157+ values)
2158+ meta : a string description of the metadata
2159+ metadata : the actual metadata
2160+ """
21542161
21552162 is_an_indexable = False
21562163 is_data_indexable = False
@@ -2460,16 +2467,17 @@ class GenericDataIndexableCol(DataIndexableCol):
24602467
24612468
24622469class Fixed :
2463- """ represent an object in my store
2464- facilitate read/write of various types of objects
2465- this is an abstract base class
2470+ """
2471+ represent an object in my store
2472+ facilitate read/write of various types of objects
2473+ this is an abstract base class
24662474
2467- Parameters
2468- ----------
2469- parent : HDFStore
2470- group : Node
2471- The group node where the table resides.
2472- """
2475+ Parameters
2476+ ----------
2477+ parent : HDFStore
2478+ group : Node
2479+ The group node where the table resides.
2480+ """
24732481
24742482 pandas_kind : str
24752483 format_type : str = "fixed" # GH#30962 needed by dask
@@ -2596,8 +2604,10 @@ def validate_version(self, where=None):
25962604 return True
25972605
25982606 def infer_axes (self ):
2599- """ infer the axes of my storer
2600- return a boolean indicating if we have a valid storer or not """
2607+ """
2608+ infer the axes of my storer
2609+ return a boolean indicating if we have a valid storer or not
2610+ """
26012611
26022612 s = self .storable
26032613 if s is None :
@@ -3105,29 +3115,29 @@ class FrameFixed(BlockManagerFixed):
31053115
31063116
31073117class Table (Fixed ):
3108- """ represent a table:
3109- facilitate read/write of various types of tables
3110-
3111- Attrs in Table Node
3112- -------------------
3113- These are attributes that are store in the main table node, they are
3114- necessary to recreate these tables when read back in.
3115-
3116- index_axes : a list of tuples of the (original indexing axis and
3117- index column)
3118- non_index_axes: a list of tuples of the (original index axis and
3119- columns on a non-indexing axis)
3120- values_axes : a list of the columns which comprise the data of this
3121- table
3122- data_columns : a list of the columns that we are allowing indexing
3123- (these become single columns in values_axes), or True to force all
3124- columns
3125- nan_rep : the string to use for nan representations for string
3126- objects
3127- levels : the names of levels
3128- metadata : the names of the metadata columns
3129-
3130- """
3118+ """
3119+ represent a table:
3120+ facilitate read/write of various types of tables
3121+
3122+ Attrs in Table Node
3123+ -------------------
3124+ These are attributes that are store in the main table node, they are
3125+ necessary to recreate these tables when read back in.
3126+
3127+ index_axes : a list of tuples of the (original indexing axis and
3128+ index column)
3129+ non_index_axes: a list of tuples of the (original index axis and
3130+ columns on a non-indexing axis)
3131+ values_axes : a list of the columns which comprise the data of this
3132+ table
3133+ data_columns : a list of the columns that we are allowing indexing
3134+ (these become single columns in values_axes), or True to force all
3135+ columns
3136+ nan_rep : the string to use for nan representations for string
3137+ objects
3138+ levels : the names of levels
3139+ metadata : the names of the metadata columns
3140+ """
31313141
31323142 pandas_kind = "wide_table"
31333143 format_type : str = "table" # GH#30962 needed by dask
@@ -4080,10 +4090,11 @@ def read_column(
40804090
40814091
40824092class WORMTable (Table ):
4083- """ a write-once read-many table: this format DOES NOT ALLOW appending to a
4084- table. writing is a one-time operation the data are stored in a format
4085- that allows for searching the data on disk
4086- """
4093+ """
4094+ a write-once read-many table: this format DOES NOT ALLOW appending to a
4095+ table. writing is a one-time operation the data are stored in a format
4096+ that allows for searching the data on disk
4097+ """
40874098
40884099 table_type = "worm"
40894100
@@ -4094,14 +4105,16 @@ def read(
40944105 start : Optional [int ] = None ,
40954106 stop : Optional [int ] = None ,
40964107 ):
4097- """ read the indices and the indexing array, calculate offset rows and
4098- return """
4108+ """
4109+ read the indices and the indexing array, calculate offset rows and return
4110+ """
40994111 raise NotImplementedError ("WORMTable needs to implement read" )
41004112
41014113 def write (self , ** kwargs ):
4102- """ write in a format that we can search later on (but cannot append
4103- to): write out the indices and the values using _write_array
4104- (e.g. a CArray) create an indexing table so that we can search
4114+ """
4115+ write in a format that we can search later on (but cannot append
4116+ to): write out the indices and the values using _write_array
4117+ (e.g. a CArray) create an indexing table so that we can search
41054118 """
41064119 raise NotImplementedError ("WORMTable needs to implement write" )
41074120
@@ -4170,8 +4183,9 @@ def write(
41704183 table .write_data (chunksize , dropna = dropna )
41714184
41724185 def write_data (self , chunksize : Optional [int ], dropna : bool = False ):
4173- """ we form the data into a 2-d including indexes,values,mask
4174- write chunk-by-chunk """
4186+ """
4187+ we form the data into a 2-d including indexes,values,mask write chunk-by-chunk
4188+ """
41754189
41764190 names = self .dtype .names
41774191 nrows = self .nrows_expected
0 commit comments