File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1918,7 +1918,7 @@ def keys(self) -> Index:
1918
1918
b 2 4
1919
1919
c 3 8
1920
1920
>>> d.keys()
1921
- Index(['A', 'B'], dtype='object ')
1921
+ Index(['A', 'B'], dtype='str ')
1922
1922
"""
1923
1923
return self ._info_axis
1924
1924
@@ -6276,7 +6276,7 @@ def dtypes(self):
6276
6276
float float64
6277
6277
int int64
6278
6278
datetime datetime64[s]
6279
- string object
6279
+ string str
6280
6280
dtype: object
6281
6281
"""
6282
6282
data = self ._mgr .get_dtypes ()
@@ -6838,7 +6838,7 @@ def convert_dtypes(
6838
6838
0 a
6839
6839
1 b
6840
6840
2 NaN
6841
- dtype: object
6841
+ dtype: str
6842
6842
6843
6843
Obtain a Series with dtype ``StringDtype``.
6844
6844
@@ -8138,7 +8138,7 @@ def isna(self) -> Self:
8138
8138
... )
8139
8139
>>> df
8140
8140
age born name toy
8141
- 0 5.0 NaT Alfred None
8141
+ 0 5.0 NaT Alfred NaN
8142
8142
1 6.0 1939-05-27 Batman Batmobile
8143
8143
2 NaN 1940-04-25 Joker
8144
8144
@@ -8211,7 +8211,7 @@ def notna(self) -> Self:
8211
8211
... )
8212
8212
>>> df
8213
8213
age born name toy
8214
- 0 5.0 NaT Alfred None
8214
+ 0 5.0 NaT Alfred NaN
8215
8215
1 6.0 1939-05-27 Batman Batmobile
8216
8216
2 NaN 1940-04-25 Joker
8217
8217
@@ -10401,7 +10401,7 @@ def truncate(
10401
10401
2 b
10402
10402
3 c
10403
10403
4 d
10404
- Name: A, dtype: object
10404
+ Name: A, dtype: str
10405
10405
10406
10406
The index values in ``truncate`` can be datetimes or string
10407
10407
dates.
You can’t perform that action at this time.
0 commit comments