destinations.impl.lancedb.utils
fill_empty_source_column_values_with_placeholder
def fill_empty_source_column_values_with_placeholder(
table: pa.Table, source_columns: List[str],
placeholder: str) -> pa.Table
Replaces empty strings and null values in the specified source columns of an Arrow table with a placeholder string.
Arguments:
table
pa.Table - The input Arrow table.source_columns
List[str] - A list of column names to replace empty strings and null values in.placeholder
str - The placeholder string to use for replacement.
Returns:
pa.Table
- The modified Arrow table with empty strings and null values replaced in the specified columns.