Import NA strings in Pandas the right way

TL, DR Pandas has great parsing tools to let you import data from multiple file formats (CSV, Excel, etc…). Sometimes in your data you have “NA” strings that are valid values. However, Pandas default will consider those strings as markers for missing values. Below some option you can use to prevent this default and import… Continue reading Import NA strings in Pandas the right way

Visualize and export full Pandas DataFrames as images

TL, DR Columns or fields truncation when visualizing Pandas DataFrames can be annoying. Exporting data views for use in other contexts (such as a blog post) may also not be immediate. Using Pandas options and the dataframe-image package we can easily visualize DataFrames in their full extent (without columns of fields truncation) and save this… Continue reading Visualize and export full Pandas DataFrames as images