Skip to content

Commit c3c581a

Browse files
committed
Replace hard-coded file output with \!head
1 parent 4d06bdc commit c3c581a

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

content/save-load-arrays.md

+2-12
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,8 @@ np.savetxt("x_y-squared.csv", X=array_out, header="x, y", delimiter=",")
187187

188188
Open the file, `x_y-squared.csv`, and you'll see the following:
189189

190-
```
191-
# x, y
192-
0.000000000000000000e+00,0.000000000000000000e+00
193-
1.000000000000000000e+00,1.000000000000000000e+00
194-
2.000000000000000000e+00,4.000000000000000000e+00
195-
3.000000000000000000e+00,9.000000000000000000e+00
196-
4.000000000000000000e+00,1.600000000000000000e+01
197-
5.000000000000000000e+00,2.500000000000000000e+01
198-
6.000000000000000000e+00,3.600000000000000000e+01
199-
7.000000000000000000e+00,4.900000000000000000e+01
200-
8.000000000000000000e+00,6.400000000000000000e+01
201-
9.000000000000000000e+00,8.100000000000000000e+01
190+
```{code-cell}
191+
!head x_y-squared.csv
202192
```
203193

204194
## Our arrays as a csv file

0 commit comments

Comments
 (0)