Skip to content

Commit a1e9fd0

Browse files
committed
small clean for DataFrame.columns
1 parent ad9d2ac commit a1e9fd0

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

pandas/core/frame.py

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13488,26 +13488,29 @@ def isin_(x):
1348813488
)
1348913489
columns = properties.AxisProperty(
1349013490
axis=0,
13491-
doc=dedent(
13492-
"""
13493-
The column labels of the DataFrame.
13494-
13495-
See Also
13496-
--------
13497-
DataFrame.index: The index (row labels) of the DataFrame.
13498-
DataFrame.axes: Return a list representing the axes of the DataFrame.
13499-
13500-
Examples
13501-
--------
13502-
>>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
13503-
>>> df
13504-
A B
13505-
0 1 3
13506-
1 2 4
13507-
>>> df.columns
13508-
Index(['A', 'B'], dtype='object')
13509-
"""
13510-
),
13491+
doc="""
13492+
The column labels of the DataFrame.
13493+
13494+
Returns
13495+
-------
13496+
pandas.Index
13497+
The column labels of the DataFrame.
13498+
13499+
See Also
13500+
--------
13501+
DataFrame.index: The index (row labels) of the DataFrame.
13502+
DataFrame.axes: Return a list representing the axes of the DataFrame.
13503+
13504+
Examples
13505+
--------
13506+
>>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
13507+
>>> df
13508+
A B
13509+
0 1 3
13510+
1 2 4
13511+
>>> df.columns
13512+
Index(['A', 'B'], dtype='object')
13513+
""",
1351113514
)
1351213515

1351313516
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)