Electron microscopy
 
Pickling and Unpickling of Pandas DataFrame (.pkl)
- Python for Integrated Circuits -
- An Online Book -
Python for Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

=================================================================================

         ◆ Pickling is the process of serialising an object into a disk file or buffer.
         ◆ Any object can be pickled and unpickled through the dump(), load() mechanisms of the Python's pickle module.
         ◆ The pandas DataFrame class provides the method to_pickle() to easily deal with the process of pickling.
         ◆ Unpickling recreates an object from a file, network or a buffer and introduces it to the namespace of a program.
         ◆ Unpickling is enabled through the read_pickle() method of the pandas module.

============================================

Pickle a pandas DataFrame object. code:          
          Move the active window to make space for other apps    
Output:             
         Move the active window to make space for other apps

============================================

Pickle a pandas DataFrame object. code:          
          Move the active window to make space for other apps    
Output:             
         Move the active window to make space for other apps

============================================

Unpickle a pandas DataFrame object. code:          
          Move the active window to make space for other apps    
Output:             
         Move the active window to make space for other apps

============================================

(AAA) Store images in pandas dataframe column and then pickle DataFrame data. code:          
          Move the active window to make space for other apps    
Output:             
         Move the active window to make space for other apps
         Move the active window to make space for other apps

============================================

Unpickle a pandas DataFrame object. code:          
          Move the active window to make space for other apps    
Output:             
         Move the active window to make space for other apps

============================================

Store images in pandas dataframe column and then pickle DataFrame data. code:          
          Move the active window to make space for other apps    
Input:             
         Move the active window to make space for other apps for image "4274Loc.png"
         Move the active window to make space for other apps
         Move the active window to make space for other apps
Output:             
         Move the active window to make space for other apps
         Move the active window to make space for other apps

========================

Unpickle a pandas DataFrame object to save as images. code:          
          Move the active window to make space for other apps    
Input:             
         The pkl file generated above, namely "CombinedImage.pkl".                    
Output (only one image has been output with the script above):             
         Move the active window to make space for other apps
         Move the active window to make space for other apps

============================================

Unpickle a pandas DataFrame object to save as images. code:          
          Move the active window to make space for other apps    
Input:             
          Move the active window to make space for other apps                   
Output:             
         Move the active window to make space for other apps
         Move the active window to make space for other apps
         Move the active window to make space for other apps
         Move the active window to make space for other apps
Note: The three images above was pickled from the three images below by a script (code) in page4208.
         Move the active window to make space for other apps
         Move the active window to make space for other apps
         Move the active window to make space for other apps

 

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 



















































 

 

 

 

 

=================================================================================