Summary
Keywords
Full Transcript
Session 10 - File Handling + Serialization & Deserialization | DSMP 2022 - 23 ---------------------------------------------------------------------------------------------------------------------------------------------- Enroll in this Programme from our Website - https://learnwith.campusx.in/ Course Website Link - https://campusx1040.graphy.com/s/preview/courses/CampusX-Data-Science-Mentorship-Program#6376dbd8e4b065a4cadac4db ---------------------------------------------------------------------------------------------------------------------------------------------- Code - https://colab.research.google.com/drive/1TP7ks1pnEzJwwzHtswkSYvMWwo2HeRxM?usp=sharing Task for Session 10 - https://colab.research.google.com/drive/1r18Ai7g2YqqZM1FTg_ca0uTklUaAC2Vg?usp=sharing New website - https://learnwith.campusx.in/ ⏲️ Timestamp -------------------- 0:00 Streaming Start 2:40 Info About New Website 3:45 Plan of Session and whole week 10:00 Session Start 11:55 Types of Data in Input Output 13:53 How File I/O is done in most programming languages 14:50 Writing to a file - TXT file. New file 19:22 Writing multiple lines 20:45 Writing to a file - TXT file. Existing file 22:45 How open() works? 24:42 Problems with 'w' mode. Append mode is solution' 26:55 Writing many lines 32:02 Saving files at any location 33:30 Reading from Files read() 36:20 Reading from Files readline() 39:00 Reading big file line by line 45:25 Using Context Manager (With) 50:10 reading 10 char at a time till end file 52:28 Reading big file in chunks 1:01:37 Seek and Tell 1:09:38 Problems with text file 1:12:31 Working with binary file 1:16:08 Working with other data types in file handling 1:23:11 Serialization and Deserialization 1:26:00 serialization using JSON module .dump() 1:28:52 Deserialization using JSON .load() 1:32:40 Serialization and Deserialization of tuple 1:34:41 Serialization and Deserialization of nested dict 1:36:25 Serialization and Deserialization of custom object 1:46:19 Pickling 1:52:52 Pickle vs JSON 1:54:00 Doubt Clearance
