-
-
Notifications
You must be signed in to change notification settings - Fork 19k
Expand data table representation #62362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AnandMukherjee2004
wants to merge
12
commits into
pandas-dev:main
from
AnandMukherjee2004:expand-data-table-representation
+65
−1
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
aa0804f
DOC: Clarify parentheses vs. brackets usage (GH#62314)
AnandMukherjee2004 ada92d7
DOC: Clarify parentheses vs. brackets usage (GH#62314) updated
AnandMukherjee2004 41272b9
DOC: Clarify parentheses vs. brackets usage (GH#62314) updated
AnandMukherjee2004 8c77d05
DOC: Clarify parentheses vs. brackets usage (GH#62314) updated
AnandMukherjee2004 fac8e7c
DOC: Clarify parentheses vs. brackets usage (GH#62314) updated
AnandMukherjee2004 689b069
DOC: Fix trailing whitespace and end-of-file issues (pre-commit CI)
AnandMukherjee2004 a1feaab
DOC: Fix trailing whitespace and end-of-file issues (pre-commit CI)
AnandMukherjee2004 2c658b1
DOC: Fix trailing whitespace and end-of-file issues (pre-commit CI)
AnandMukherjee2004 cf1e395
DOC: Fix trailing whitespace and end-of-file issues (pre-commit CI)
AnandMukherjee2004 8537736
DOC: expand data table diagram and add explanation of indexes to tuto...
AnandMukherjee2004 2399a2e
DOC: expand data table diagram and add explanation of indexes to tuto...
AnandMukherjee2004 f840b61
Merge branch 'main' into expand-data-table-representation
AnandMukherjee2004 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletions
doc/source/_static/schemas/01_dataframe.svg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
doc/source/getting_started/intro_tutorials/11_brackets_vs_parenthesis.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _10min_tut_11_brackets_vs_parenthesis: | ||
|
||
Parentheses vs. Square Brackets in Python and pandas | ||
==================================================== | ||
|
||
In both Python and pandas, it is important to understand the difference between parentheses ``()`` and square brackets ``[]``: | ||
|
||
- **Parentheses** are used to call functions and methods. For example, ``df.mean()`` calculates the mean of a DataFrame. Parentheses are also used to group expressions, such as ``(a + b) * c``, or to create tuples: ``(1, 2, 3)``. | ||
- **Square brackets** are used for indexing, selecting data, and defining lists. In pandas, you use square brackets to select columns or filter data—for instance, ``df['A']`` selects column ``A``, while ``df[0:3]`` selects rows by position. In standard Python, square brackets are also used to define a list, as in ``my_list = [1, 2, 3]``. | ||
|
||
Remember: Use ``[]`` for selection or indexing, and ``()`` for calling functions or grouping expressions. | ||
|
||
For more explanation, see `Brackets in Python and pandas <https://python-public-policy.afeld.me/en/columbia/brackets.html>`__. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ Getting started tutorials | |
08_combine_dataframes | ||
09_timeseries | ||
10_text_data | ||
11_brackets_vs_parenthesis |
6 changes: 6 additions & 0 deletions
package-lock.json
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.