[docs]defdummy_streaming_dataframe(n,chunksize=10,asfloat=False,**cols):""" Returns a dummy streaming dataframe mostly for unit test purposes. :param n: number of rows :param chunksize: chunk size :param asfloat: use random float and not random int :param cols: additional columns :return: a @see cl StreamingDataFrame """ifasfloat:df=DataFrame(dict(cfloat=[_+0.1for_inrange(n)],cstr=[f"s{i}"foriinrange(n)],))else:df=DataFrame(dict(cint=list(range(n)),cstr=[f"s{i}"foriinrange(n)]))fork,vincols.items():df[k]=vreturnStreamingDataFrame.read_df(df,chunksize=chunksize)