Skip to main content

Posts

Showing posts with the label pickle

Exploring The File Import- Continue

Another post starts with you beautiful people! I hope you have enjoyed my previous post about  Exploring The File Import   where we learned about flat file import. But there are a number of datatypes that cannot be saved easily to flat files, such as lists and dictionaries. In this exercise we will deal with Pickle,Excel,SAS and HDF5 files. First we will see how to import the pickle file - In this exercise, we'll import the pickle package, open a previously pickled data structure from a file and load it.You can find more details about pickle here- what is pickle? Run the above code snippet in your notebook and discover what Python datatype it yields. Second we see how to load a excel file- Whether you like it or not, any working data scientist will need to deal with Excel spreadsheets at some point in time. You won't always want to do so in Excel, however! Here, we'll learn how to use pandas to import Excel spreadsheets and how to list the names of the...