Skip to content

DOC: Clarifying Terminology: "Brackets" vs "Parentheses" #56972

Closed
@vertigoa

Description

@vertigoa

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/getting_started/intro_tutorials/02_read_write.html

Documentation problem

image

Note

When asking for the dtypes, no brackets are used! dtypes is an attribute of a DataFrame and Series. Attributes of a DataFrame or Series do not need brackets. Attributes represent a characteristic of a DataFrame/Series, whereas methods (which require brackets) do something with the DataFrame/Series as introduced in the first tutorial.

Suggested fix for documentation

I am just learning pandas, so please excuse me if I am incorrect. I wonder if this may be a regional things or matter of convention I am not yet awaare of. The use of the word "brackets" in the pandas documentation to describe parentheses () can be confusing. "brackets" refer to square brackets [ ], which are used for indexing and selecting data. , while "parentheses" refer to () used when calling methods. It seems that in this particular documentation, the term "brackets" is being used to refer to parentheses.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions