BPt.Dataset.update_data_file_paths#

Dataset.update_data_file_paths(old, new)[source]#

Go through and update saved file paths within the Datasets file mapping attribute. This function can be used when the underlying location of the data files has changed, or perhaps when loading a saved dataset on a different device.

Note the old and new parameters work the same as those in the base python string.replace method.

Parameters
oldstr

The substring in which to replace every instance found in every saved file path with new.

newstr

The substring in which to replace old with in every substring found.

See also

to_data_file

Convert existing column to data file.

add_data_files

Method for adding new data files