Table
Work with tables on Redivis
class Table
Tables are the fundamental data-containing entity in Redivis. Tables belong to either a dataset or project, and are made up of rows and variables (columns). Various methods allow you to read table data, as well as to create / update / delete tables belonging to an unreleased version of a dataset.
Certain tables may be file index tables, which represent a collection of non-tabular files, where each row corresponds to a file. There are additional methods available on file index tables that allow for you to interface with these files.
Constructors
| Return a Table within the current default scope (either a dataset or project). In a Redivis notebook, the default scope will always be the notebook's project. If no default scope is specified, the table_reference must be fully qualified (see below).
|
| Return a Table within a specific dataset. The table_reference does not need to be fully qualified, since the table lookup is already scoped to a dataset. Consult the referencing resources documentation to learn more. |
| Return a Table within a specific project. The table_reference does not need to be fully qualified, since the table lookup is already scoped to a project. |
Returns a list of Tables within a dataset | |
Returns a list of Tables within a project |
Examples
Attributes
| A reference to the Dataset instance that constructed this table. Will be |
| A reference to the Project instance that constructed this table. Will be |
| A dict containing the API resource representation of the table. This will only be populated after certain methods are called, particularly the |
| |
| The canonical reference for the table, without any qualifiers. E.g., |
Methods
Reading data and metadata | |
| Export a table in a particular format and download it to disk. |
| Download all files represented in a file index table to a local directory. |
Check whether the table exists | |
Fetch table metadata. Once called, the | |
| Return a list of File instances in a file index table. |
| Deprecated. Return a list of named tuples referencing the rows of the table. Use Table.to_arrow_table().to_pydict() instead. |
| Return a list of Variable instances associated with this table. |
Return an iterator that yields pyarrow.RecordBatches, for processing the table's data in a memory-efficient streaming manner. | |
| Return a pyarrow.dataset.Dataset for the table. Data is backed by disk, allowing for larger-than-memory analysis. |
| Return a pyarrow.Table with the table's data. |
| Deprecated. Please use to_[geo]pandas_dataframe instead. |
| Return a geopandas.GeoDataframe. For working with tables that contain a geography variable. |
| Return a dask.DataFrame. Data is backed by disk, allowing for larger-than-memory analysis. |
| Return a pandas.DataFrame with the table's data. |
| Return a polars.LazyFrame. Data is backed by disk, allowing for larger-than-memory analysis. |
| Reference a Variable within the table. |
Uploading and modifying data | |
| Upload non-tabular files to an unreleased file index table. |
| Create a table within a dataset if it doesn't already exist. Table must belong to an unreleased version of the dataset. |
Delete a table belonging to an unreleased version of a dataset. | |
| Return a list of uploads on a table |
Update properties on the table (name, description). | |
Create a reference to an Upload on the table, which can subsequently be used to upload tabular data. |
Last updated