Exporting Data to CSV and Excel
Explore how to export data to CSV and Excel formats.
We'll cover the following...
We'll cover the following...
Dirty Devil data
We’ll revisit the Dirty Devil data. Let’s load the flow and gauge height data:
Reading and writing
There are a bunch of functions in pandas that deal with ingesting data. They all begin with read_. Similarly, there are analagous exporting methods on the DataFrame object. These exporting methods start with to_. We’ll talk about the common methods for exporting.
Creating CSV files
The Comma-Separated Value (CSV) file is ubiquitous. It’s been around since the early 1970s. This format has the benefit of being human-readable, and that’s about where the benefits end. There was no standard for CSV files for a long time. In 2005, a standard was released, but ...