Skip to content

DOC: 10 minutes - <TAB> completion section showing inconsistent suggestions #31526

Closed
@Cardosaum

Description

@Cardosaum

Code Sample, a copy-pastable example if possible

From the very end of the section "Object Creation"

In [12]: df2.<TAB>  # noqa: E225, E999
df2.A                  df2.bool
df2.abs                df2.boxplot
df2.add                df2.C
df2.add_prefix         df2.clip
df2.add_suffix         df2.clip_lower
df2.align              df2.clip_upper
df2.all                df2.columns
df2.any                df2.combine
df2.append             df2.combine_first
df2.apply              df2.consolidate
df2.applymap
df2.D

And the following text:

As you can see, the columns ``A``, ``B``, ``C``, and ``D`` are automatically
tab completed. ``E`` is there as well; the rest of the attributes have been
truncated for brevity.

Problem description

In the text we read that columns A, B, C and D are shown. However, df2.B isn't shown at all

Expected Output

I think we could just add some more completions, along side df2.B to make the documentation more consistent to what is being said.

Something similar to:

In [12]: df2.<TAB>  # noqa: E225, E999
df2.A                  df2.bool
df2.abs                df2.boxplot
df2.add                df2.C
df2.add_prefix         df2.clip
df2.add_suffix         df2.columns
df2.align              df2.combine
df2.all                df2.combine_first
df2.any                df2.D
df2.append             df2.describe
df2.apply              df2.diff
df2.applymap           df2.div
df2.B                  df2.divide
Note

I'd like to know what does # noqa: E225, E999 means. I didn't see this reference early in this guide

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions