maxframe.dataframe.read_odps_table#

maxframe.dataframe.read_odps_table(table_name: str | Table, partitions: None | str | List[str] = None, columns: List[str] | None = None, index_col: None | str | List[str] = None, odps_entry: ODPS = None, string_as_binary: bool = None, append_partitions: bool = False, **kw)[source]#

Read data from a MaxCompute (ODPS) table into DataFrame.

Supports specifying some columns as indexes. If not specified, RangeIndex will be generated.

Parameters:
  • table_name (Union[str, Table]) – Name of the table to read from.

  • partitions (Union[None, str, List[str]]) – Table partition or list of partitions to read from.

  • columns (Optional[List[str]]) – Table columns to read from. You may also specify partition columns here. If not specified, all table columns (or include partition columns if append_partitions is True) will be included.

  • index_col (Union[None, str, List[str]]) – Columns to be specified as indexes.

  • append_partitions (bool) – If True, will add all partition columns as selected columns when columns is not specified,

Returns:

result – DataFrame read from MaxCompute (ODPS) table

Return type:

DataFrame