apply#

PathPartitionFilter.apply(path: str) → bool[source]#

Decide whether to read a file, based on the partitions in its path.

Parameters:

path (str) – The file path to parse partition keys and values from.

Returns:

True if the filter function keeps the file, False to skip it.

Return type:

bool