Profile.write_spec¶
write_spec ¶
write_spec(path: str | Path) -> Path
Save a JSON recipe; file paths are relative to the spec directory.
Example¶
p = ps.profile('cohort.parquet')
p.write_spec('cohort.json')
Research note¶
Recipes refer to data files and recompute statistics; they do not preserve a frozen data snapshot.