maxframe.dataframe.read_odps_query#

maxframe.dataframe.read_odps_query(query: str, odps_entry: ODPS = None, index_col: None | str | List[str] = None, string_as_binary: bool = None, **kw)[source]#

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

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

Parameters:
  • query (str) – MaxCompute SQL statement.

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

Returns:

result – DataFrame read from MaxCompute (ODPS) table

Return type:

DataFrame