
In this series, we take a look at common formats for saving, reading, and shuffling data around such as Comma Separated Values (CSV), JavaScript Object Notation (JSON), YAML Ain't Markup Language (YAML), and eXtensible Markup Language (XML). If you want to know more about these data formats as well as how to interact with these different data representation using Python, then we will see you there!
In this episode, Justin and Aubri discuss what a constitutes a csv file.
In this episode, Justin and Aubri expand on CSV files by creating some CSV files manually to represent some common situations. Moreover, Justin demonstrates the difference between typing CSV files versus using tools like spreadsheet software to create those data files.
In this episode, Justin and Aubri take a look at the standard library csv module to read and write CSV files. Justin expands on the differences between using a standard reader or writer from the module versus using the dictreader or dictwriter from the csv module.
In this episode, Justin and Aubri take a look at the standard library csv module to read and write CSV files utilizing the DictReader and DictWriter objects. Justin expands on some nicer uses when reading and writing CSV files that need to be cleaned up.
In this episode, Justin and Aubri install and use the pandas community package for reading and writing CSV files. Additionally, Justin demonstrates how pandas provide easier interfaces for reading, writing, and cleaning of data.
In this episode, Justin and Aubri utilize the tablib package to create and convert data into the CSV format. Justin expands that tablib provides more control than just the csv module for converting between data representations for the same data, as well as adding data to a CSV collection.
In this episode, Justin and Aubri discuss what the JSON data format is as well as when it is used. Justin takes a look at information that may be delivered in a JSON format as well as how that is related to the structure of the data.
In this episode, Justin and Aubri construct a JSON file in order to explore the thought processes behind the arrangement of the data. Justin also emphasizes formatting requirements for the JSON data type.
In this episode, Justin and Aubri explore how to use the Standard Library json module to read and write json.
In this episode, Justin and Aubri revisit the pandas package as a means of reading and writing JSON. Justin further demonstrates how the outputs can differ based on aspects of the pandas structures that are being used to create the JSON.
In this episode, Justin and Aubri explore the simplejson and ujson packages for reading and writing JSON. Justin discusses the similarities among the ujson package, simplejson package, and the standard library json module as well as discusses the reasons for picking a tool like ujson or simplejson.
In this episode, Justin and Aubri revisit the tablib package with JSON instead of CSV data.
In this episode, Justin and Aubri explore the use of YAML as a way to represent data. Justin dives further into the relationship between JSON and YAML as well as what can be represented.
In this episode, Justin and Aubri construct a YAML file as a means of understanding how the format is utilized and created from scratch.
In this episode, Justin and Aubri utilize the PyYAML package to read and write YAML. Justin highlights some security considerations when using PyYAML as well.
In this episode, Justin and Aubri explore changing CSV and JSON to YAML files using the tablib package.
In this episode, Justin and Aubri discuss what XML or eXtensible Markup Language and how it is utilized.
In this episode, Justin and Aubri create an XML document from scratch to explore the thought process for organizing and representing data.
In this episode, Justin and Wes discuss the relationship between HTML and XML for representing data. Moreover, Justin takes a look at sample HTML pages to see how varied those pages can be.
In this episode, Justin and Wes build an HTML document for a simple website to demonstrate the difference between the representation of a visual arrangement versus the non-visual part of XML.
In this episode, Justin and Wes explore the use of the xml module from the Python standard library for reading and writing XML data. Moreover, Justin speaks to security issues and how to alleviate those issues that can arise from using the xml module.
In this episode, Justin and Aubri explore the external package lxml that allows for the reading of XML, but adds some additional functionality. Moreover, Justin discusses why one would choose lxml versus the xml module from the Python standard library.
In this episode, Justin and Aubri explore a simplified interface for reading XML data into a Python dictionary.
In this episode, Justin and Aubri utilize the BeautifulSoup package to read HTML data and query the document for elements of interest.
Data Representation and Serialization
In this series, we take a look at common formats for saving, reading, and shuffling data around such as Comma Separated Values (CSV), JavaScript Object Notation (JSON), YAML Ain't Markup Language (YAML), and eXtensible Markup Language (XML). If you want to know more about these data formats as well as how to interact with these different data representation using Python, then we will see you there!
Course Format
• Binge-worthy TV shows! Watch comprehensive, in-depth episodes that use a talk show-like format to keep you engaged while learning.
• You can pick and choose episodes or you can watch as a complete series.
• A little humor, anecdotes, and real-world examples.
Other Courses
Ready to become a DevPro? Get more DevProTV training with a variety of topics. Join Justin and DevProTV to level up your programming prowess!
Updates and Versions
The programming world updates at a break neck pace. As a result, there are times that certain tools, editors, libraries have changed. While syntax or names may change, the foundations remain the same. Though we hope to keep things updated, there may be time before that can occur. I recommend seeing if you can translate between changes and if all fails, ask questions!