python pickle exercise

technical talkiess
0

 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)
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)