Skip to content

Commit

Permalink
Expanded docstring for _conv_value
Browse files Browse the repository at this point in the history
  • Loading branch information
cbertinato committed Jan 24, 2018
1 parent 3736f4b commit b38dc41
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pandas/io/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,18 @@ def _pop_header_name(row, index_col):

def _conv_value(val):
""" Convert numpy types to Python types for the Excel writers.
:obj:`datetime` and :obj:`date` formatting must be handled in the
writer. :obj:`str` representation is returned for all other types.
Parameters
----------
val : object
Value to be written into cells
Returns
-------
If val is a numpy int, float, or bool, then the equivalent Python
types are returned. :obj:`datetime`, :obj:`date`, and :obj:`timedelta`
are passed and formatting must be handled in the writer. :obj:`str`
representation is returned for all other types.
"""
if is_integer(val):
val = int(val)
Expand Down

0 comments on commit b38dc41

Please sign in to comment.