Skip to content

Commit b38dc41

Browse files
committed
Expanded docstring for _conv_value
1 parent 3736f4b commit b38dc41

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Diff for: pandas/io/excel.py

+12-2
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,18 @@ def _pop_header_name(row, index_col):
777777

778778
def _conv_value(val):
779779
""" Convert numpy types to Python types for the Excel writers.
780-
:obj:`datetime` and :obj:`date` formatting must be handled in the
781-
writer. :obj:`str` representation is returned for all other types.
780+
781+
Parameters
782+
----------
783+
val : object
784+
Value to be written into cells
785+
786+
Returns
787+
-------
788+
If val is a numpy int, float, or bool, then the equivalent Python
789+
types are returned. :obj:`datetime`, :obj:`date`, and :obj:`timedelta`
790+
are passed and formatting must be handled in the writer. :obj:`str`
791+
representation is returned for all other types.
782792
"""
783793
if is_integer(val):
784794
val = int(val)

0 commit comments

Comments
 (0)