223bce2eb5903bf58a12250f3ea5585c33a7778e,niftynet/contrib/csv_reader/csv_reader.py,CSVReader,initialise,#CSVReader#Any#Any#Any#,23
Before Change
self.dims_by_task[name] = _dims
self._indexable_output[name] = _indexable_output
// Converts Dictionary of Lists to List of Dictionaries
self._indexable_output = pd.DataFrame(self._indexable_output).to_dict("records")
assert file_list is not None
return self
def _parse_csv(self, path_to_csv, to_ohe):
After Change
self.df_by_task[name] = df
self.dims_by_task[name] = _dims
self._indexable_output[name] = _indexable_output
if df.shape[0] > len(set(self.subject_ids)):
self.type_by_task[name] = "multi"
else:
self.type_by_task[name] = "mono"
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: NifTK/NiftyNet
Commit Name: 223bce2eb5903bf58a12250f3ea5585c33a7778e
Time: 2019-06-05
Author: carole.sudre@kcl.ac.uk
File Name: niftynet/contrib/csv_reader/csv_reader.py
Class Name: CSVReader
Method Name: initialise
Project Name: ericmjl/pyjanitor
Commit Name: f33ab1719a747ab121cb4fb57d752efb1dea0287
Time: 2021-02-25
Author: samueloranyeli@gmail.com
File Name: tests/functions/test_expand_grid.py
Class Name:
Method Name:
Project Name: nilmtk/nilmtk
Commit Name: 72f3f5bf50ed2d91cdcfbe2cf47120a2df8883cd
Time: 2014-11-26
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: _get_stat_from_cache_or_compute