adamerose / adamerose/PandasGUI

Add more file type export options to GUI.py

未關閉
#158 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
3.3k
分支
239
PR 合併指標
30 天內沒有已合併 PR

描述

Since PG allows modifications and joins, I wanted to re-save the pickles.
In GUI.py at 351, I simply added more options.
```
def export_dialog(self):
dialog = QtWidgets.QFileDialog()
pgdf = self.store.selected_pgdf
path, _ = dialog.getSaveFileName(directory=pgdf.name, filter="CSV (*.csv);;Python files (*.pkl *.hdf *.sql)")
if path:
if path[-3:]== 'csv':
pgdf.df.to_csv(path, index=False)
elif path[-3:]== 'pkl':
pgdf.df.to_pickle(path)
elif path[-3:]== 'hdf':
pgdf.df.to_hdf(path)
elif path[-3:]== 'sql':
pgdf.df.to_sql(path)
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。