path ( file ) | Path with file name to store the byte string of pickled data |
compression | (Optional )Type of compression, {'infer', 'gzip', 'bz2', 'zip', 'xz', None} |
import pandas as pd
import pickle
my_data=pd.read_pickle('my_data.pkl')
print(my_data)
Output
NAME ID MATH ENGLISH
0 Ravi 1 30 20
1 Raju 2 40 30
2 Alex 3 50 40
my_data=pd.read_pickle("D:\my_data\my_data.pkl")
my_data=pd.read_pickle('my_data.pkl',compression='zip')
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.