ramjet.analysis.convert_column_name_to_display_name¶
Code for converting a column name to a display name.
Module Contents¶
Functions¶
convert_column_name_to_display_name(column_name: str) → str |
Add method to convert from column style names to human readable display names. Column style names should be |
-
convert_column_name_to_display_name(column_name: str) → str[source]¶ Add method to convert from column style names to human readable display names. Column style names should be snake_case with a double underscore before the units (if units are relevant). The display name will have the first letter capitalized, spaces between words, and the units in parentheses at the end. Example: transit_duration__days -> Transit duration (days)
Parameters: column_name – The column whose name should be converted. Returns: The display version of the name.