dbdicom.Record.export_as_csv#

Record.export_as_csv(path: str)[source]#

Export record in CSV format to an external directory.

Parameters:

path (str) – path to export directory.

Example

Create a 4D series and export as CSV:

>>> series = db.ones((128, 128, 10, 5))
>>> path = 'path\to\empty\folder'
>>> series.export_as_csv(path)

This should create a single folder in the directory, populated with 50 CSV files.