Skip to content

Commit

Permalink
Formatted comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
onyxfish committed Sep 14, 2011
1 parent 9b1fb2a commit 0a3fb39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions csvkit/typeinference.py
Expand Up @@ -17,9 +17,13 @@

def normalize_column_type(l, normal_type=None):
"""
Attempts to normalize a list (column) of string values to booleans, integers, floats, dates, times, datetimes, or strings. NAs and missing values are converted to empty strings. Empty strings are converted to nulls.
Attempts to normalize a list (column) of string values to booleans, integers,
floats, dates, times, datetimes, or strings. NAs and missing values are converted
to empty strings. Empty strings are converted to nulls.
Optional accepts a "normal_type" argument which specifies a type that the values must conform to (rather than inferring). Will raise InvalidValueForTypeException if a value is not coercable.
Optional accepts a "normal_type" argument which specifies a type that the values
must conform to (rather than inferring). Will raise InvalidValueForTypeException
if a value is not coercable.
Returns a tuple of (type, normal_values).
"""
Expand Down

0 comments on commit 0a3fb39

Please sign in to comment.