Closed tesla-cat closed 3 years ago
By default it expects columns named “close” containing numeric inputs for whatever function you are calling.
On Sep 2, 2021, at 8:23 AM, 丁瑞奇 @.***> wrote:
I am trying to make my own DataFrame class since I find pandas too slow
class Indexer: def init(s, df): s.df = df def getitem(s, k): return s.df[k[1]][k[0]] def setitem(s, k, v): s.df[k[1]][k[0]] = v class MyDataFrame(dict): def init(s, arr, columns): s.d = {} for i,c in enumerate(columns): s.d[c] = arr[:,i] def getitem(s, k): return s.d[k] def setitem(s, k, v): s.d[k] = v @property def loc(s): return Indexer(s) but this gives error:
Exception: input_arrays parameter missing required data key: close how to fix this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
I am trying to make my own DataFrame class since I find pandas too slow
but this gives error:
how to fix this?