Skip to content

Commit bc2378c

Browse files
committed
add line
1 parent d40849b commit bc2378c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ def value_counts(
10601060
since ``a`` doesn't have the same categories.
10611061
10621062
>>> df = pd.DataFrame({"a": [1], "b": ["2"], "c": [3], "d": [3]})
1063-
.astype({'a': 'category', 'c': 'category', 'd': 'category'})
1063+
>>> df = df.astype({"a": "category", "c": "category", "d": "category"})
10641064
>>> df
10651065
a b c d
10661066
0 1 2 3 3

0 commit comments

Comments
 (0)