Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instances #590

Closed
ewhwjm opened this issue Oct 25, 2021 · 4 comments
Closed

Instances #590

ewhwjm opened this issue Oct 25, 2021 · 4 comments

Comments

@ewhwjm
Copy link

ewhwjm commented Oct 25, 2021

How do I save a specific instance that I can then re use few days later? Right now, after a certain of time, when I run dtale.show(df) it will override all my instances with the original data

@aschonfeld
Copy link
Collaborator

aschonfeld commented Oct 26, 2021

So currently the only way to do what you're suggesting would be to export your data to CSV or TSV using the button shown here:
image

Then the next time you open the tool you have a few options:

  • click the upload button and selected the file you exported previously
  • open the tool with no data loaded using dtale.show() and then select the file for upload from the UI
  • programmatically load the file using dtale.show_csv(path=path_to_export) or dtale.show_tsv(path=path_to_file)

I've recently had a request to support parquet files. I already support loading them programmatically dtale.show_parquet but not from the "Load Data" popup in the UI. I will add that and I will also add the ability to export your data to parquet.

The last thing I wanted to let you know about is that if you are working with D-Tale from a notebook or python console and you have access to your instance you can do things like the following:

import dtale
import pandas as pd

d = dtale.show(pd.Dataframe([1,2,3,4,5]))
# display you instance in a jupyter cell and perform some operations
# d.data is the current underlying pandas dataframe being displayed in your D-Tale instance with all edits included
d.data.to_csv...
d.data.to_excel...

@ewhwjm
Copy link
Author

ewhwjm commented Oct 26, 2021 via email

@aschonfeld
Copy link
Collaborator

@ewhwjm It's definitely better going through github since others can view the thread if they have a similar issue, but if it's unfeasible then feel free to email me directly.

Also, if you haven't already, please toss your ⭐ on the repo! Thanks 🙏

aschonfeld added a commit that referenced this issue Oct 31, 2021
aschonfeld added a commit that referenced this issue Oct 31, 2021
@aschonfeld
Copy link
Collaborator

@ewhwjm I added loading parquet files from the UI in v1.60.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants