Skip to content

Commit 689b069

Browse files
DOC: Fix trailing whitespace and end-of-file issues (pre-commit CI)
1 parent fac8e7c commit 689b069

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/source/getting_started/intro_tutorials/11_brackets_vs_parenthesis.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Parentheses vs. Square Brackets in Python and pandas
44
====================================================
5-
65
In both Python and pandas, it’s important to understand the difference between parentheses ``()`` and square brackets ``[]``:
76

87
- **Parentheses** are used to call functions and methods. For example, ``df.mean()`` calculates the mean of a DataFrame, and parentheses are also used to group expressions, such as ``(a + b) * c``, or to create tuples: ``(1, 2, 3)``.
@@ -11,5 +10,4 @@ In both Python and pandas, it’s important to understand the difference between
1110
Remember:
1211
**Use [] for selection or indexing, and () for calling functions or grouping expressions.**
1312

14-
For more explanation, see `Brackets in Python and pandas <https://python-public-policy.afeld.me/en/columbia/brackets.html>`__.
15-
13+
For more explanation, see `Brackets in Python and pandas <https://python-public-policy.afeld.me/en/columbia/brackets.html>`__.

0 commit comments

Comments
 (0)