adamerose / adamerose/PandasGUI
Add more file type export options to GUI.py
- Langage dominant
- Python
- Étoiles
- 3.3k
- Forks
- 239
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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)
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.