Skip to content

Commit 4b76509

Browse files
committed
minor doc changes to reflect v4
1 parent 42932b5 commit 4b76509

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

doc/source/io.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,8 @@ after data is already in the table (this may become automatic in the future or a
854854
df2 = df[4:]
855855
store.append('df', df1)
856856
store.append('df', df2)
857+
store.append('wp', wp)
858+
store
857859
858860
store.select('df')
859861
@@ -879,7 +881,7 @@ a subset of the data. This allows one to have a very large on-disk table and ret
879881

880882
A query is specified using the ``Term`` class under the hood.
881883

882-
- 'index' refers to the index of a DataFrame
884+
- 'index' and 'column' are supported indexers of a DataFrame
883885
- 'major_axis' and 'minor_axis' are supported indexers of the Panel
884886

885887
Valid terms can be created from ``dict, list, tuple, or string``. Objects can be embeded as values. Allowed operations are: ``<, <=, >, >=, =``. ``=`` will be inferred as an implicit set operation (e.g. if 2 or more values are provided). The following are all valid terms.
@@ -921,7 +923,6 @@ Notes & Caveats
921923

922924
- Selection by items (the top level panel dimension) is not possible; you always get all of the items in the returned Panel
923925
- ``PyTables`` only supports fixed-width string columns in ``tables``. The sizes of a string based indexing column (e.g. *index* or *minor_axis*) are determined as the maximum size of the elements in that axis or by passing the ``min_itemsize`` on the first table creation. If subsequent appends introduce elements in the indexing axis that are larger than the supported indexer, an Exception will be raised (otherwise you could have a silent truncation of these indexers, leading to loss of information).
924-
- Mixed-Type Panels/DataFrames are not currently supported (but coming soon)!
925926
- Once a ``table`` is created its items (Panel) / columns (DataFrame) are fixed; only exactly the same columns can be appended
926927
- You can not append/select/delete to a non-table (table creation is determined on the first append, or by passing ``table=True`` in a put operation)
927928

@@ -930,6 +931,11 @@ Performance
930931

931932
- ``Tables`` come with a performance penalty as compared to regular stores. The benefit is the ability to append/delete and query (potentially very large amounts of data).
932933
Write times are generally longer as compared with regular stores. Query times can be quite fast, especially on an indexed axis.
934+
- ``Tables`` can (as of 0.10.0) be expressed as different types.
935+
936+
- ``AppendableTable`` which is a similiar table to past versions (this is the default).
937+
- ``WORMTable`` (pending implementation) - is available to faciliate very fast writing of tables that are also queryable (but CANNOT support appends)
938+
933939
- To delete a lot of data, it is sometimes better to erase the table and rewrite it. ``PyTables`` tends to increase the file size with deletions
934940
- In general it is best to store Panels with the most frequently selected dimension in the minor axis and a time/date like dimension in the major axis, but this is not required. Panels can have any major_axis and minor_axis type that is a valid Panel indexer.
935941
- No dimensions are currently indexed automagically (in the ``PyTables`` sense); these require an explict call to ``create_table_index``

pandas/io/pytables.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
import pandas.lib as lib
3232
from contextlib import contextmanager
3333

34-
import sys
35-
sys.path.insert(0,'/home/jreback/pandas/pandas')
3634
import pandas._pytables as pylib
3735

3836
# reading and writing the full object in one go

0 commit comments

Comments
 (0)