Formats (datascience.formats
)¶
String formatting for table entries.
- class datascience.formats.CurrencyFormatter(symbol='$', *args, **vargs)[source]¶
Format currency and convert to float.
- class datascience.formats.DateFormatter(format='%Y-%m-%d %H:%M:%S.%f', *args, **vargs)[source]¶
Format date & time and convert to UNIX timestamp.
- class datascience.formats.DistributionFormatter(decimals=2, *args, **vargs)[source]¶
Normalize a column and format as percentages.
- class datascience.formats.Formatter(min_width=None, max_width=None, etc=None)[source]¶
String formatter that truncates long values.
- property converts_values¶
Whether this Formatter also converts values.
- etc = ' ...'¶
- max_width = 60¶
- min_width = 4¶