Skip to content

Commit ac790d7

Browse files
committed
Modify .values docs to process issue #10364.
1 parent 2104948 commit ac790d7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/core/generic.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -2887,7 +2887,8 @@ def as_matrix(self, columns=None):
28872887
28882888
e.g. If the dtypes are float16 and float32, dtype will be upcast to
28892889
float32. If dtypes are int32 and uint8, dtype will be upcase to
2890-
int32.
2890+
int32. By numpy.find_common_type convention, mixing int64 and uint64
2891+
will result in a flot64 dtype.
28912892
28922893
This method is provided for backwards compatibility. Generally,
28932894
it is recommended to use '.values'.
@@ -2913,8 +2914,9 @@ def values(self):
29132914
with care if you are not dealing with the blocks.
29142915
29152916
e.g. If the dtypes are float16 and float32, dtype will be upcast to
2916-
float32. If dtypes are int32 and uint8, dtype will be upcase to
2917-
int32.
2917+
float32. If dtypes are int32 and uint8, dtype will be upcast to
2918+
int32. By numpy.find_common_type convention, mixing int64 and uint64
2919+
will result in a flot64 dtype.
29182920
"""
29192921
return self.as_matrix()
29202922

0 commit comments

Comments
 (0)