Expanded docstring for _conv_value · pandas-dev/pandas@b38dc41 (original) (raw)

Original file line number Diff line number Diff line change
@@ -777,8 +777,18 @@ def _pop_header_name(row, index_col):
777 777
778 778 def _conv_value(val):
779 779 """ 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.
782 792 """
783 793 if is_integer(val):
784 794 val = int(val)