Skip to content
Novus Examples
csv162 B

CSV with Mixed-Type Columns

A CSV whose 'value' column mixes integers, floats, scientific notation, dates, hex, thousands separators, and whitespace, and whose 'flag' column mixes a dozen boolean spellings. A torture test for type inference and schema detection.

Preview — first 14 linescsv
id,value,flag
1,42,true
2,3.14159,false
3,hello,TRUE
4,2026-01-15,0
5,-7,1
6,1e6,yes
7,true,no
8,0x1F,Y
9,,N
10,NaN,t
11,  12  ,f
12,"1,234.56",True

Specifications

Rows
12
Note
value mixes int, float, string, date, hex, thousands-sep, whitespace; flag mixes many boolean spellings

What is a .csv file?

CSV (Comma-Separated Values) is a plain-text tabular format where rows are lines and fields are separated by commas, with quoting rules for values that contain delimiters, quotes, or newlines. It has no formal type system and depends on encoding and dialect conventions. It is the most portable format for tabular data exchange.

How to use this file

Use an example CSV to test parsers against quoting and embedded-delimiter edge cases, header handling, encoding detection, and import pipelines into databases or spreadsheets.

Code examples

import pandas as pd

df = pd.read_csv("mixed-types.csv")
print(df.head())
print(df.dtypes)

Generated by generation/data_edgecases.py. Free for any use, no attribution required — license.