MCPcopy
hub / github.com/microsoft/qlib / normalize

Method normalize

scripts/data_collector/base.py:312–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

310 df.to_csv(self._target_dir.joinpath(file_path.name), index=False)
311
312 def normalize(self):
313 logger.info("normalize data......")
314
315 with ProcessPoolExecutor(max_workers=self._max_workers) as worker:
316 file_list = list(self._source_dir.glob("*.csv"))
317 with tqdm(total=len(file_list)) as p_bar:
318 for _ in worker.map(self._executor, file_list):
319 p_bar.update()
320
321
322class BaseRun(abc.ABC):

Callers 4

normalize_dataMethod · 0.95
_executorMethod · 0.45
__call__Method · 0.45

Calls 2

infoMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected