Skip to content

Commit 80ede97

Browse files
committed
Doctest errors fixed online
1 parent dbee98a commit 80ede97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/arrays/sparse/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ def astype(self, dtype: AstypeArg | None = None, copy: bool = True):
12931293
[nan, nan, 1.0, 2.0]
12941294
Fill: nan
12951295
IntIndex
1296-
Indices: array([2, 3])
1296+
Indices: array([2, 3], dtype=int32)
12971297
12981298
Using a SparseDtype, you can also change the fill value as well.
12991299
@@ -1367,7 +1367,7 @@ def map(self: SparseArrayT, mapper) -> SparseArrayT:
13671367
[10, 11, 12]
13681368
Fill: 10
13691369
IntIndex
1370-
Indices: array([1, 2])
1370+
Indices: array([1, 2], dtype=int32)
13711371
"""
13721372
# this is used in apply.
13731373
# We get hit since we're an "is_extension_type" but regular extension

pandas/core/groupby/grouper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class Grouper:
219219
2000-10-01 23:52:00 27
220220
2000-10-02 00:09:00 39
221221
2000-10-02 00:26:00 24
222-
Freq: 17T, dtype: int32
222+
Freq: 17T, dtype: int64
223223
224224
>>> ts.groupby(pd.Grouper(freq='17min', origin='2000-01-01')).sum()
225225
2000-10-01 23:24:00 3

0 commit comments

Comments
 (0)