Skip to content

Instantly share code, notes, and snippets.

@sric0880
Created March 22, 2024 03:20
Show Gist options
  • Select an option

  • Save sric0880/091ea5c90e14f451b0b8dc0d87ba9e2b to your computer and use it in GitHub Desktop.

Select an option

Save sric0880/091ea5c90e14f451b0b8dc0d87ba9e2b to your computer and use it in GitHub Desktop.
open dataframe pickle file from double click!
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
#!/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