Table

Work with tables on Redivis

class Table

Tables are the fundamental data-containing entity in Redivis. Tables belong to either a dataset or workflow, 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

Returns a list of Tables within a dataset

Returns a list of Tables within a workflow

Examples

dataset = redivis.organization("Demo").dataset("iris_species")
table = dataset.table("Iris")

table.exists() # -> True
table.get() # table.properties is now populated with the table resource definition

table.variable("SepalLengthCm") # -> Returns a variable reference
table.to_pandas_dataframe()     # -> Returns a pandas dataframe for the table

Attributes

dataset

workflow

properties

qualified_reference

For example,

scoped_reference

The canonical reference for the table, without any qualifiers. E.g., posts:7q4m

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 properties attribute on the table will be fully populated.

Deprecated. Please use to_[geo]pandas_dataframe instead.

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).

Last updated