Pickle exercise :-
from ucimlrepo import fetch_ucirepo
import pickle
# fetch dataset
# iris = fetch_ucirepo(id=53)
# # data (as pandas dataframes)
# X = iris.data
# file = "pickle.pkl"
# fileObj = open(file,'wb')
# pickle.dump(X,fileObj)
# fileObj.close()
file = "pickle.pkl"
data = open(file,'rb')
data1 = pickle.load(data)
print(data1)
Thanks you for commenting your questions. I will see question and respond you.