File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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
7676beyond the scope of this introduction. See :ref: `basics.dtypes ` for more.
7777
7878If you know you need a NumPy array, use :meth: `~Series.to_numpy `
79- or :meth: `np .asarray `.
79+ or :meth: `numpy.ndarray .asarray `.
8080
8181.. ipython :: python 
8282
@@ -88,13 +88,13 @@ an :class:`~pandas.api.extensions.ExtensionArray`, :meth:`~Series.to_numpy`
8888may involve copying data and coercing values. See :ref: `basics.dtypes ` for more.
8989
9090: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.
9292NumPy doesn't have a dtype to represent timezone-aware datetimes, so there
9393are two possibly useful representations:
9494
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
9696   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
9898   been converted to UTC and the timezone discarded
9999
100100Timezones may be preserved with ``dtype=object ``
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments