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

12 lines
228 B
Python
Raw Permalink Normal View History

2020-08-18 09:16:49 +00:00
# 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()