also, in Chapter6, we create an empty
DataBlock like below.
dblock = DataBlock()
and pass a pandas
DataFrame to the
dsets = dblock.datasets(df)
then, looks like
dsets already knows how to read the
df because it prints out information included in the
However, according to the internal source code from the
datasets method (below), when
get_items is not set, it does nothing (
noop). And this is the case I guess.
def datasets(self, source, verbose=False): self.source = source items = (self.get_items or noop)(source) ......
DataBlock knows the way to read