File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ The exact details of what an :class:`~pandas.api.extensions.ExtensionArray` is a
76
76
beyond the scope of this introduction. See :ref: `basics.dtypes ` for more.
77
77
78
78
If you know you need a NumPy array, use :meth: `~Series.to_numpy `
79
- or :meth: `np .asarray `.
79
+ or :meth: `numpy.ndarray .asarray `.
80
80
81
81
.. ipython :: python
82
82
@@ -88,13 +88,13 @@ an :class:`~pandas.api.extensions.ExtensionArray`, :meth:`~Series.to_numpy`
88
88
may involve copying data and coercing values. See :ref: `basics.dtypes ` for more.
89
89
90
90
:meth: `~Series.to_numpy ` gives some control over the ``dtype `` of the
91
- resulting :class: `ndarray `. For example, consider datetimes with timezones.
91
+ resulting :class: `numpy. ndarray `. For example, consider datetimes with timezones.
92
92
NumPy doesn't have a dtype to represent timezone-aware datetimes, so there
93
93
are two possibly useful representations:
94
94
95
- 1. An object-dtype :class: `np .ndarray ` with :class: `Timestamp ` objects, each
95
+ 1. An object-dtype :class: `numpy .ndarray ` with :class: `Timestamp ` objects, each
96
96
with the correct ``tz ``
97
- 2. A ``datetime64[ns] `` -dtype :class: `np .ndarray `, where the values have
97
+ 2. A ``datetime64[ns] `` -dtype :class: `numpy .ndarray `, where the values have
98
98
been converted to UTC and the timezone discarded
99
99
100
100
Timezones may be preserved with ``dtype=object ``
You can’t perform that action at this time.
0 commit comments