TabularPredictor.disk_size_per_file#
- TabularPredictor.disk_size_per_file(*, sort_by: str = 'size', include_path_in_name: bool = False) Series [source]#
Returns the size of each file under the predictor.path directory in bytes.
- Parameters:
sort_by (str, default = "size") – If None, output files will be ordered based on order of search in os.walk(path). If “size”, output files will be ordered in descending order of file size. If “name”, output files will be ordered by name in ascending alphabetical order.
include_path_in_name (bool, default = False) –
If True, includes the full path of the file including the input path as part of the index in the output pd.Series. If False, removes the path prefix of the file path in the index of the output pd.Series.
- For example, for a file located at foo/bar/model.pkl, with path=’foo/’
If True, index will be foo/bar/model.pkl If False, index will be bar/model.pkl
- Return type:
pd.Series with index file path and value file size in bytes.