mistral-io-datasets/scripts/r_visual_jobs#pickle_reader.py

12 lines
228 B
Python
Executable File

# Required for job visualization
# job_visualization_r.ipynb
import pandas as pd
def read_pickle_file(file):
pickle_data = pd.read_pickle(file)
start, stop, data, metadata = pickle_data
return data.reset_index()