`.type` and `.types` frame's attributes do not work properly in notebooks

Open
#3,465 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
jupyter-notebook, python

Research direction

First reproduce the .type and .types behavior in a notebook and in a direct Python session using the example code. Trace how these attributes are represented in the notebook context, then verify that both return the expected type values rather than object representations in a regression test.

Written by the indexing model from the issue text.

Description

bug

When a notebook cell contains the following code

DT = dt.Frame([1,2,3])
DT.type

it outputs

<datatable.datatable.Type at 0x7d03abe37380>

The same code, when executed directly in python, works as expected

>>> DT = dt.Frame([1,2,3])
>>> DT.type
Type.int32

.types behaves exactly the same.

Dominant language
C++
Stars
1.9k
Forks
164
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from h2oai/datatable

All issues in h2oai/datatable

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.