You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/io.rst
+28-3
Original file line number
Diff line number
Diff line change
@@ -2404,10 +2404,18 @@ conversion may not be necessary in future versions of pandas)
2404
2404
String Columns
2405
2405
~~~~~~~~~~~~~~
2406
2406
2407
-
The underlying implementation of ``HDFStore`` uses a fixed column width (itemsize) for string columns. A string column itemsize is calculated as the maximum of the
2408
-
length of data (for that column) that is passed to the ``HDFStore``, **in the first append**. Subsequent appends, may introduce a string for a column **larger** than the column can hold, an Exception will be raised (otherwise you could have a silent truncation of these columns, leading to loss of information). In the future we may relax this and allow a user-specified truncation to occur.
2407
+
**min_itemsize**
2409
2408
2410
-
Pass ``min_itemsize`` on the first table creation to a-priori specifiy the minimum length of a particular string column. ``min_itemsize`` can be an integer, or a dict mapping a column name to an integer. You can pass``values``as a key to allow all*indexables*or*data_columns* to have this min_itemsize.
2409
+
The underlying implementation of ``HDFStore`` uses a fixed column width (itemsize) for string columns.
2410
+
A string column itemsize is calculated as the maximum of the
2411
+
length of data (for that column) that is passed to the ``HDFStore``, **in the first append**. Subsequent appends,
2412
+
may introduce a string for a column **larger** than the column can hold, an Exception will be raised (otherwise you
2413
+
could have a silent truncation of these columns, leading to loss of information). In the future we may relax this and
2414
+
allow a user-specified truncation to occur.
2415
+
2416
+
Pass ``min_itemsize`` on the first table creation to a-priori specifiy the minimum length of a particular string column.
2417
+
``min_itemsize`` can be an integer, or a dict mapping a column name to an integer. You can pass``values``as a key to
2418
+
allow all*indexables*or*data_columns* to have this min_itemsize.
2411
2419
2412
2420
Starting in0.11, passing a ``min_itemsize``dict will cause all passed columns to be created as*data_columns* automatically.
2413
2421
@@ -2429,6 +2437,23 @@ Starting in 0.11, passing a ``min_itemsize`` dict will cause all passed columns
0 commit comments