1. Stdlib

1.1. Pickling

Process of serialization of binary data into the file

1.2. Dump

hours = ['Tue Mar 29 23:40:17 +0000 2016', 'Tue Mar 29 23:40:19 +0000 2016']

file_store = open('/Users/kamil/daty.pickle', 'wb') # write/binary
pickle.dump(hours, file_Store)

1.3. Load

Hint

Method load instead dump

Warning

In case Linuxa there are diffrent paths format than in case of Windows.

1.4. Exercise

  1. Download following file

  1. Process dates (strings) into datetime type

Hint

In order to setup date format look on docs docs

  1. Save pickle after processing

  2. Read pickle into different variable - check