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

Method apply

qlib/utils/index_data.py:459–462  ·  view source on GitHub ↗

apply a function to data.

(self, func: Callable)

Source from the content-addressed store, hash-verified

457 return self.__class__(tmp_data, *self.indices)
458
459 def apply(self, func: Callable):
460 """apply a function to data."""
461 tmp_data = func(self.data)
462 return self.__class__(tmp_data, *self.indices)
463
464 def __len__(self):
465 """the length of the data.

Callers 15

save_instrumentsMethod · 0.45
calc_adjusted_priceFunction · 0.45
calc_paused_numFunction · 0.45
parse_instrumentsMethod · 0.45
format_datetimeMethod · 0.45
format_datetimeMethod · 0.45
filter_dfMethod · 0.45
get_changesMethod · 0.45
format_datetimeMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_CSZFillnaMethod · 0.36
test_CSZScoreNormMethod · 0.36