Skip to content

Commit d478473

Browse files
committed
BUG: add note on creating Series from Series with dtype keyword
When creating Series from another Series `dtype` keyword is ignored. Add note to the docstring to underline this behaviour. See GH #59060.
1 parent 67a58cd commit d478473

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/series.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ class Series(base.IndexOpsMixin, NDFrame): # type: ignore[misc]
256256
Data type for the output Series. If not specified, this will be
257257
inferred from `data`.
258258
See the :ref:`user guide <basics.dtypes>` for more usages.
259+
If `data` is Series then dtype keyword is ignored.
259260
name : Hashable, default None
260261
The name to give to the Series.
261262
copy : bool, default False

0 commit comments

Comments
 (0)