1
- .. _ compare_with_excel :
1
+ .. _ compare_with_spreadsheets :
2
2
3
3
{{ header }}
4
4
5
- Comparison with Excel
6
- *********************
5
+ Comparison with spreadsheets
6
+ ****************************
7
7
8
- Since many potential pandas users have some familiarity with `Excel
9
- <https://support.microsoft.com/en-us/excel> `_, this page is meant to provide some examples of how
10
- various Excel operations would be performed using pandas. Much of this will be the
11
- same/similar in `Google Sheets <https://support.google.com/a/users/answer/9282959 >`_, `LibreOffice
12
- Calc <https://help.libreoffice.org/latest/en-US/text/scalc/main0000.html?DbPAR=CALC> `_, `Apple
13
- Numbers <https://www.apple.com/mac/numbers/compatibility/functions.html> `_, and other
8
+ Since many potential pandas users have some familiarity with spreadsheet programs like
9
+ `Excel <https://support.microsoft.com/en-us/excel >`_, this page is meant to provide some examples
10
+ of how various spreadsheet operations would be performed using pandas. This page will use
11
+ terminology and link to documentation for Excel, but much will be the same/similar in
12
+ `Google Sheets <https://support.google.com/a/users/answer/9282959 >`_,
13
+ `LibreOffice Calc <https://help.libreoffice.org/latest/en-US/text/scalc/main0000.html?DbPAR=CALC >`_,
14
+ `Apple Numbers <https://www.apple.com/mac/numbers/compatibility/functions.html >`_, and other
14
15
Excel-compatible spreadsheet software.
15
16
16
17
.. include :: comparison_boilerplate.rst
@@ -48,11 +49,11 @@ A ``Series`` is the data structure that represents one column of a ``DataFrame``
48
49
49
50
Every ``DataFrame `` and ``Series `` has an ``Index ``, which are labels on the *rows * of the data. In
50
51
pandas, if no index is specified, an integer index is used by default (first row = 0, second row =
51
- 1, and so on), analogous to row headings/numbers in Excel .
52
+ 1, and so on), analogous to row headings/numbers in spreadsheets .
52
53
53
54
In pandas, indexes can be set to one (or multiple) unique values, which is like having a column that
54
- use use as the row identifier in a worksheet. Unlike Excel , these ``Index `` values can actually be
55
- used to reference the rows. For example, in Excel , you would reference the first row as ``A1:Z1 ``,
55
+ use use as the row identifier in a worksheet. Unlike spreadsheets , these ``Index `` values can actually be
56
+ used to reference the rows. For example, in spreadsheets , you would reference the first row as ``A1:Z1 ``,
56
57
while in pandas you could use ``populations.loc['Chicago'] ``.
57
58
58
59
Index values are also persistent, so if you re-order the rows in a ``DataFrame ``, the label for a
@@ -61,8 +62,8 @@ particular row don't change.
61
62
See the :ref: `indexing documentation<indexing> ` for much more on how to use an ``Index ``
62
63
effectively.
63
64
64
- Commonly used Excel functionalities
65
- -----------------------------------
65
+ Commonly used spreadsheet functionalities
66
+ -----------------------------------------
66
67
67
68
Importing data
68
69
~~~~~~~~~~~~~~
@@ -88,7 +89,7 @@ Fill Handle
88
89
~~~~~~~~~~~
89
90
90
91
Create a series of numbers following a set pattern in a certain set of cells. In
91
- Excel this would be done by shift+drag after entering the first number or by
92
+ a spreadsheet, this would be done by shift+drag after entering the first number or by
92
93
entering the first two or three values and then dragging.
93
94
94
95
This can be achieved by creating a series and assigning it to the desired cells.
@@ -145,7 +146,7 @@ Pivot Tables
145
146
~~~~~~~~~~~~
146
147
147
148
`PivotTables <https://support.microsoft.com/en-us/office/create-a-pivottable-to-analyze-worksheet-data-a9a84538-bfe9-40a9-a8e9-f99134456576 >`_
148
- from Excel can be replicated in pandas through :ref: `reshaping `. Using the ``tips `` dataset again,
149
+ from spreadsheets can be replicated in pandas through :ref: `reshaping `. Using the ``tips `` dataset again,
149
150
let's find the average gratuity by size of the party and sex of the server.
150
151
151
152
In Excel, we use the following configuration for the PivotTable:
0 commit comments