Finally, we have all the data we wanted, in a more-or-less good condition. Let's store it in CSV format. We can always use other formats instead. For example, the pickle format, by definition, preserves all the data types and properties of the dataframe (we won't need to convert dates from strings again), but can't be read manually (it also has a number of security risks). CSV, on the other hand, can be opened manually or with something like Excel, edited, and then stored again if you observed that there are factual errors in the data or something that is easier to correct manually.
In the following code block, we export our CSV file into a dataframe just to specify a relative path to the file we want it to be. The index=None argument is optional—this ensures that the index (a generic range of numbers in our case) won't be written:
new_dataset...