|
@@ -55,9 +55,10 @@ def parse_hippocampal_volume_file_path(volume_file_path: str) -> dict:
|
|
|
|
|
|
|
|
|
def read_hippocampal_volume_file_dataframe(volume_file_path: str) -> pandas.DataFrame:
|
|
|
- volumes_frame = pandas.DataFrame(
|
|
|
- read_hippocampal_volumes_mm3(volume_file_path).items(),
|
|
|
- columns=['subfield', 'volume_mm^3'])
|
|
|
+ volumes_frame = pandas.DataFrame([
|
|
|
+ {'subfield': s, 'volume_mm^3': v}
|
|
|
+ for s, v in read_hippocampal_volumes_mm3(volume_file_path).items()
|
|
|
+ ])
|
|
|
for key, value in parse_hippocampal_volume_file_path(volume_file_path).items():
|
|
|
volumes_frame[key] = value
|
|
|
# volumes_frame['hemisphere'] = volumes_frame['hemisphere'].astype('category')
|