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

saving hotspot result (hs and module) #33

Open
parkjooyoung99 opened this issue Jul 4, 2023 · 1 comment
Open

saving hotspot result (hs and module) #33

parkjooyoung99 opened this issue Jul 4, 2023 · 1 comment

Comments

@parkjooyoung99
Copy link

Dear developer,

I am trying to save the hotspot objects but have no idea how to do this.
I have tried converting it to df and save as csv, and saving it as h5f file which i thought is a standard way to save file.
However, converting it to csv seems to change the structure where i cannot draw correlation plot,
and saving as hdf file gives me the error as inappropriate file type.

Are there any way to save the objects?
Thank you1

@yangqianq
Copy link

hi, you can saving the objects by using "pickle" packages
#save the objects where hs is a hotspot objects
with open('./hotspots_test.pkl', 'wb') as f:
pickle.dump(hs, f)
#open the objects
with open('./hotspots_test.pkl', 'rb') as f:
hs = pickle.load(f)

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