Pickling Data With Python!

  Рет қаралды 48,897

Mark Jay

Mark Jay

Күн бұрын

Пікірлер: 54
@ashfaqrahman2795
@ashfaqrahman2795 6 жыл бұрын
I know about pickle. I'm just here for Pickle-Rick thumbnail.
@bonbonpony
@bonbonpony 5 жыл бұрын
Looks like Rick used Python to pickle himself that day :J
@81munir
@81munir 3 жыл бұрын
Ran through other too long explanation videos about pickle. Got lost. Found my way back with your simple and practical explanation. Thanks Mark.
@samphillips1893
@samphillips1893 4 жыл бұрын
Sweet, simple explanation and good example. Thank you!
@perorbem
@perorbem Жыл бұрын
Thank you for this straightforward and very well-explained video, it helped a ton!
@sajjangamer
@sajjangamer 4 жыл бұрын
I was stuck on this for like an hour, thanks!
@jimmywang6177
@jimmywang6177 5 жыл бұрын
I've never used pickle before. Thank you!
@ryanmcconkey6134
@ryanmcconkey6134 7 жыл бұрын
Never knew about the pickle module ! Thanks for the video! :D can't wait for the pandas module coverage ! :p (I hope you mean the panda module that deals with big data and such xD)
@MarkJay
@MarkJay 7 жыл бұрын
Ryan Mcconkey glad you like it! Yes will be covering pandas in the next few videos. Pandas has its own pickle function so you can save dataframes directly to a pickle file
@イゴイスト
@イゴイスト 3 жыл бұрын
Hey, here is a helpful tip (I hope), If you have got a pickle file from an unauthenticated source or untrusted site and you are on a Windows Laptop/PC, I suggest Windows Sandbox Windows Sandbox is a safe application which runs a simulation of a windows laptop/PC in your device and then you can unpickle the file there. It shows what could happen once you unpickle the file and nothing will happen to your real PC/Laptop, I hope this tip was helpful!. (I am sorry if I worded it badly, I don't really know how to put it-) (Edit: At the time this comment was made I didn't know whether or not he/they/she stated this tip previously.) Keep in mind, you can also do this with other file types!
@diansukma_hani
@diansukma_hani 3 жыл бұрын
thank you mark jay , ur explanation can open my mind :)))
@mrsdhuha
@mrsdhuha 4 жыл бұрын
Thank you Mark - that was quick and informative!
@sahandsoltanieh5186
@sahandsoltanieh5186 4 жыл бұрын
nice tip about the "with" statement. tnx :)
@heshankumarasinghe3159
@heshankumarasinghe3159 4 жыл бұрын
Thank you.... This video has been helpful....
@Raja-tt4ll
@Raja-tt4ll 5 жыл бұрын
Very nice video
@westronic
@westronic 2 жыл бұрын
Super helpful! I hope all my code is as "Pythonic" as possible.
@xingnanzhou8628
@xingnanzhou8628 5 жыл бұрын
wonderful explanation. great.
@senalariyarathna4827
@senalariyarathna4827 2 жыл бұрын
How did you added the project directory to colab
@robertradford4707
@robertradford4707 4 жыл бұрын
I don't know if you'll see this since the video is two years old but one thing I'm kind of caught up on is how to get this to specify a file path. I see you're naming it and saving it with a specific name, and then loading that name, but how does it find the file?, I'm assuming it default saves it to the same file path as the code and then when it pulls it checks that filepath for a matching name as well but is that the case ?
@Munkie
@Munkie 2 жыл бұрын
Thanks!
@shrishtychandra2003
@shrishtychandra2003 7 жыл бұрын
Awesome
@denisvoronov6571
@denisvoronov6571 5 жыл бұрын
Why do we need binary form? Can we save it in some other form like csv?
@SriRam-yq4id
@SriRam-yq4id 3 жыл бұрын
Excellent video Mark. When I upgrade the pandas library version or let us say, upgrade the Python version itself, do I need to unpickle and then re-pickle OR are the pkl files compatible with the newer versions?
@Glueckspilz6267
@Glueckspilz6267 6 жыл бұрын
Do you know if it is possible to pickle Keras Lambda layers or Lambda expressions in general? im getting the Error: "TypeError: can't pickle _thread.RLock objects" trying to pickle a MaskRCNN. :C
@BiancaAguglia
@BiancaAguglia 5 жыл бұрын
To serialize (i.e. save or pickle) lambda expressions you'll need an extra module like dill. I've never used so I'm not sure how well it works or how easy it is to use.
@waleyeldeen
@waleyeldeen 6 жыл бұрын
very helpful
@Casper-bs2qz
@Casper-bs2qz Жыл бұрын
can we pickle a csv file?
@abeshudug5207
@abeshudug5207 6 жыл бұрын
hey, where it says " In[14]: " is that something about memory array allocation on a stack? i mean im pretty sure python have a virtual machine stack. and it seems that even though you cleared some lines that the memory maybe did not get deallocated? not sure why else that would happen unless there is something to do with a heap.
@abeshudug5207
@abeshudug5207 6 жыл бұрын
or is this some kind of instance or increment counter?
@ibrahimdayan4705
@ibrahimdayan4705 2 жыл бұрын
How can we append to saved .pkl file? Thank you.
@shahzebmaqsood5936
@shahzebmaqsood5936 2 жыл бұрын
Hi, i tried your code on a file, and when i apply it on an array it returns me only the last line of it. Can someone help me plz ??
@zeinabkassir9637
@zeinabkassir9637 3 жыл бұрын
how to update a pikeled list?
@user-he4ef9br7z
@user-he4ef9br7z 4 жыл бұрын
why not use shelve?
@DragonRazor9283
@DragonRazor9283 3 жыл бұрын
Why use this instead of JSON?
@sairajdas6692
@sairajdas6692 6 жыл бұрын
Can we append objects?
@shadmilkgod7115
@shadmilkgod7115 4 жыл бұрын
why use curly brackets?? what do they do
@MarkJay
@MarkJay 4 жыл бұрын
Dictionary
@TylerTraverse
@TylerTraverse 5 жыл бұрын
I see so many python guides using jupyter. They act like it's a normal thing that doesn't need to be explained, it's so strange.
@raven-vr5yz
@raven-vr5yz 4 жыл бұрын
i love uuuuu
@ajaykumark107
@ajaykumark107 4 жыл бұрын
What is the editor he is using?
@MarkJay
@MarkJay 4 жыл бұрын
Jupyter
@KM_1947
@KM_1947 3 жыл бұрын
CODE: with open(training_file, mode='rb') as f: train = pickle.load(f) ERROR: UnpicklingError: pickle data was truncated. Can you help solve this error,thanks.
@exbyte-dev
@exbyte-dev 4 жыл бұрын
line 10, in pickle.dump((data_dict, pickle_file)) TypeError: dump() missing required argument 'file' (pos 2) not running
@alexander6011
@alexander6011 4 жыл бұрын
hey, im not the creator of this video, but what you have done is passed a tuple "(data_dict, pickle_file)" which counts as one object, into your function. what you mean to do is use single parentheses when calling your function, like so: pickle.dump(data_dict, pickle_file) which counts data_dict and pickle_file as two separate arguments to the function, as opposed to the single tuple that you passed in before. hope this helps and sorry that i am a little late to reply :)
@varung9127
@varung9127 4 жыл бұрын
which IDE is it?
@MarkJay
@MarkJay 4 жыл бұрын
Jupyter
@SurinamElephant
@SurinamElephant 6 жыл бұрын
I get an Error saying "No module named 'SemanticDataset' " I though i was using pickle :D dafuq ?
@MarkJay
@MarkJay 6 жыл бұрын
uuuummmm, I'm not sure what that is.
@maxxime4138
@maxxime4138 5 жыл бұрын
Whatever it says, just go to Ur terminal and run pip(3) install semanticdataset
@LimboPurgatory
@LimboPurgatory Жыл бұрын
2:53
@oespinafre
@oespinafre 2 жыл бұрын
tipickly 3:00
@pegleggiraffe8238
@pegleggiraffe8238 4 жыл бұрын
Your keyboard is way too loud, mechanical keyboards are fine for videos but yours is way too loud / the mic is too close
@SugamMaheshwari
@SugamMaheshwari 6 жыл бұрын
need more explanation !
@boriscrisp518
@boriscrisp518 5 жыл бұрын
5 minutes of yap... skip to the end... "ooh thats what it does"
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 815 М.
Python Tutorial 14: Saving and Reading Data Files With Pickle
22:57
Paul McWhorter
Рет қаралды 31 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 45 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 28 МЛН
This INCREDIBLE trick will speed up your data processes.
12:54
Rob Mulla
Рет қаралды 268 М.
Serialize Python Objects With Pickle
11:36
NeuralNine
Рет қаралды 32 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,2 МЛН
Python dataclasses will save you HOURS, also featuring attrs
8:50
Storing and retrieving Python objects with "pickle"
9:26
Python and Pandas with Reuven Lerner
Рет қаралды 10 М.
Python Tutorial: Working with JSON Data using the json Module
20:34
Corey Schafer
Рет қаралды 1,1 МЛН
Python Data Classes Are AMAZING! Here's Why
16:11
Tech With Tim
Рет қаралды 84 М.
Solving real world data science tasks with Python Pandas!
1:26:07
Keith Galli
Рет қаралды 1,5 МЛН
Using the Python pickle Module
5:43
Real Python
Рет қаралды 52 М.
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН