Created
March 22, 2024 03:20
-
-
Save sric0880/091ea5c90e14f451b0b8dc0d87ba9e2b to your computer and use it in GitHub Desktop.
open dataframe pickle file from double click!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\ProgramData\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\ProgramData\Anaconda3' " ; python D:\lzq\showdf.py %1 ; pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| #-*- coding: utf-8 | |
| import sys | |
| import pandas as pd | |
| import dtale | |
| import webbrowser | |
| file = sys.argv[1] | |
| print(file) | |
| df = pd.read_pickle(file) | |
| print(df) | |
| print(df.info()) | |
| webbrowser.open_new_tab('http://localhost:40000') | |
| # d = dtale.show(df, subprocess=False) | |
| d = dtale.show(df, subprocess=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment