From the course: Complete Guide to Python for Data Engineering: From Beginner to Advanced

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Export data as a TXT file

Export data as a TXT file

- [Instructor] Now it's time to store all our analysis for extraction which we have done from the webpages into a text file. This is crucial for data engineering. The reason is you generate this data export it into the text files and you share it with the data analytics team so that they can do the further analysis on it, right? So let's dive in and see how we can export the data in text format. Now, the first question come into mind is, why we are exporting the data to text file? The reason is the text file are simple, it's human-readable, and it widely supported across various platforms and the programming languages. They're also easy to parse and manipulate. This makes them one of the best choice for the data storage. Now let's go back to our Google Colab and see how we can extract the data into the text file. So in the previous file, we have got the list of all the items. Now, let me put that into a variable. So I…

Contents