Skip to content

col_summary_tbl() does not accept ibis.expr.types.relations.Table #286

@gregorywaynepower

Description

@gregorywaynepower

Prework

Description

Describe the bug clearly and concisely.

Putting an ibis.expr.types.relations.Table object into col_summary_tbl() returns TypeError: Expected pandas-like dataframe, Polars dataframe, or Polars lazyframe, got: <class 'pyarrow.lib.RecordBatchReader'> even though documentation states that Ibis's Table objects should be acceptable. I have checked the type of the input into the function.

Reproducible example

  • Post a minimal reproducible example (MRE) so the maintainer can troubleshoot the problems you identify. A reproducible example is:
    • Runnable: post enough code and data so any onlooker can create the error on their own computer.
    • Minimal: reduce runtime wherever possible and remove complicated details that are irrelevant to the issue at hand.
    • Readable: format your code according to the Style Guide for Python Code.

salesforce_contacts.zip (uncompress this zip file)

import pointblank as pb
import ibis

ibis.options.interactive = True

ibis_database_table_object = ibis.duckdb.connect("salesforce_contacts.duckdb").table("all_contacts")

print(f"ibis_database_table_object's type is: {type(ibis_database_table_object)}")

pb.col_summary_tbl(data=ibis_database_table_object)

Expected result

I would expect to be able to get a summary of the table.

Development environment

  • Operating System: Windows 11
  • pointblank version 0.13.4
  • ibis version 10.8.0

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions