dmnfarrell / pandastable

Table analysis in Tkinter using pandas DataFrames.
Other
636 stars 124 forks source link

issue there is no function for import pickle #239

Open Adarsh-365 opened 1 year ago

Adarsh-365 commented 1 year ago

so i created in core.py `` def importPICKLE(self,filename=None, dialog=False,**kwargs): ftype = os.path.splitext(filename)[0]

print(ftype)

    if dialog == True:
        impdialog = ImportDialog(self, filename=filename)
        df = impdialog.df
        if df is None:
            return
    else:
        df = pd.read_pickle(filename, **kwargs)
        df.name=ftype
        self.tosave_name=df
    model = TableModel(dataframe=df)
    self.updateModel(model)
    self.redraw()
    self.importpath = os.path.dirname(filename) ``