pd.DataFrame
) and numpy arrays
(np.array
).
Here you can find additional information on ...
NumPy
-functions can be useful:
np.pi
(for the value of "pi"), and
np.arange
(for generating a vector).dictionary
,
with keys
['time', 'x', 'y']
, and the
values
from the corresponding generated data (i.e.
'x' for the sine, and 'y' for the cosine).values
-method of that data-frame, extract
the data from the 5th row up to and including the 10th row, from the "x"
and "y" columns, using the numpy
syntax for
"slicing" (e.g. selecting data from a matrix).
WARNING: Python starts indexing with "0"!numpy
and
pandas
confuses most newcomers!!)out.txt
.