Skip to content

Commit 3cde26c

Browse files
committed
DOC: have excel page boilerplate match other comparison pages
1 parent 44c88d9 commit 3cde26c

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

doc/source/getting_started/comparison/comparison_with_excel.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
.. _compare_with_excel:
22

3-
.. ipython:: python
4-
:suppress:
5-
6-
import pandas as pd
7-
import random
8-
pd.options.display.max_rows=15
3+
{{ header }}
94

105
Comparison with Excel
116
*********************
@@ -18,6 +13,16 @@ Calc <https://help.libreoffice.org/latest/en-US/text/scalc/main0000.html?DbPAR=C
1813
Numbers <https://www.apple.com/mac/numbers/compatibility/functions.html>`_, and other
1914
Excel-compatible spreadsheet software.
2015

16+
If you're new to pandas, you might want to first read through :ref:`10 Minutes to pandas<10min>`
17+
to familiarize yourself with the library.
18+
19+
As is customary, we import pandas and NumPy as follows:
20+
21+
.. ipython:: python
22+
23+
import pandas as pd
24+
import numpy as np
25+
2126
Commonly used Excel functionalities
2227
-----------------------------------
2328

@@ -98,6 +103,8 @@ VLOOKUP
98103

99104
.. ipython:: python
100105
106+
import random
107+
101108
df1 = pd.DataFrame({"keys": [1, 2, 3, 4, 5, 6, 7], "first_names": ["harry", "ron",
102109
"hermione", "rubius", "albus", "severus", "luna"]}); df1
103110

0 commit comments

Comments
 (0)