Skip to content

Commit b03dda7

Browse files
Reword datetime type information.
1 parent 8d0ee56 commit b03dda7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ def to_records(self, index=True, convert_datetime64=True):
12471247
rec.array([(1, 0.5 ), (2, 0.75)],
12481248
dtype=[('col1', '<i8'), ('col2', '<f8')])
12491249
1250-
By default, timestamps are converted to `datetime.datetime` objects:
1250+
By default, timestamps are converted to `datetime.datetime`:
12511251
12521252
>>> df.index = pd.date_range('2018-01-01 09:00', periods=2, freq='min')
12531253
>>> df
@@ -1259,7 +1259,7 @@ def to_records(self, index=True, convert_datetime64=True):
12591259
(datetime.datetime(2018, 1, 1, 9, 1), 2, 0.75)],
12601260
dtype=[('index', 'O'), ('col1', '<i8'), ('col2', '<f8')])
12611261
1262-
The timestamp conversion can be disabled to use NumPy datetime64 objects instead:
1262+
The timestamp conversion can be disabled so NumPy's datetime64 data type is used instead:
12631263
12641264
>>> df.to_records(convert_datetime64=False)
12651265
rec.array([('2018-01-01T09:00:00.000000000', 1, 0.5 ),

0 commit comments

Comments
 (0)