You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/rst/pandas.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -462,7 +462,7 @@ Complete the program to plot the result as a bar graph like this one:
462
462
463
463
### Exercise 2
464
464
465
-
Using the method `read_data` introduced in Exercise 1, write a program to obtain year-on-year percentage change for the following indices:
465
+
Using the method `read_data` introduced in {doc}`Exercise 1 <pd_ex1>`, write a program to obtain year-on-year percentage change for the following indices:
466
466
467
467
```{code-block} python3
468
468
indices_list = {'^GSPC': 'S&P 500',
@@ -516,7 +516,7 @@ plt.show()
516
516
517
517
### Exercise 2
518
518
519
-
Following the work you did in Exercise 1, you can query the data using `read_data` by updating the start and end dates accordingly.
519
+
Following the work you did in {doc}`Exercise 1 <pd_ex1>`, you can query the data using `read_data` by updating the start and end dates accordingly.
Copy file name to clipboardExpand all lines: source/rst/python_essentials.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ type(x)
112
112
113
113
Python has several basic types for storing collections of (possibly heterogeneous) data.
114
114
115
-
We've already discussed lists.
115
+
We've {doc}`already discussed lists <lists_ref>`.
116
116
117
117
```{index}
118
118
single: Python; Tuples
@@ -163,7 +163,7 @@ x
163
163
y
164
164
```
165
165
166
-
You've actually seen an example of this already.
166
+
You've actually {doc}`seen an example of this <tuple_unpacking_example>` already.
167
167
168
168
Tuple unpacking is convenient and we'll use it often.
169
169
@@ -564,7 +564,7 @@ Let's talk a bit more about functions, which are all important for good programm
564
564
565
565
### The Flexibility of Python Functions
566
566
567
-
As we discussed in the previous lecture, Python functions are very flexible.
567
+
As we discussed in the {doc}`previous lecture <python_by_example>`, Python functions are very flexible.
568
568
569
569
In particular
570
570
@@ -573,7 +573,7 @@ In particular
573
573
* Any object can be passed to a function as an argument, including other functions.
574
574
* A function can return any kind of object, including functions.
575
575
576
-
We already gave an example of how straightforward it is to pass a function to
576
+
We already {doc}`gave an example <test_program_6>` of how straightforward it is to pass a function to
577
577
a function.
578
578
579
579
Note that a function can have arbitrarily many `return` statements (including zero).
@@ -688,7 +688,7 @@ Here the function created by `lambda` is said to be *anonymous* because it was n
688
688
single: Python; keyword arguments
689
689
```
690
690
691
-
In a previous lecture, you came across the statement
691
+
In a {doc}`previous lecture <python_by_example>`, you came across the statement
692
692
693
693
```{code-block} python3
694
694
plt.plot(x, 'b-', label="white noise")
@@ -778,7 +778,7 @@ p(x)
778
778
= \sum_{i=0}^n a_i x^i
779
779
```
780
780
781
-
Write a function `p` such that `p(x, coeff)` that computes the value in `polynom0` given a point `x` and a list of coefficients `coeff`.
781
+
Write a function `p` such that `p(x, coeff)` that computes the value in {doc}`polynom0 <polynom0>` given a point `x` and a list of coefficients `coeff`.
On the horizontal axis is the parameter $r$ in `quadmap2`.
669
+
On the horizontal axis is the parameter $r$ in {doc}`quadmap2 <quadmap2>`.
670
670
671
671
The vertical axis is the state space $[0, 1]$.
672
672
@@ -780,7 +780,7 @@ Aim for clarity, not efficiency.
780
780
781
781
### Exercise 2
782
782
783
-
In an earlier exercise, you wrote a function for evaluating polynomials.
783
+
In an {doc}`earlier exercise <pyess_ex2>`, you wrote a function for evaluating polynomials.
784
784
785
785
This exercise is an extension, where the task is to build a simple class called `Polynomial` for representing and manipulating polynomial functions such as
0 commit comments