czv/czv-python/examples/simple_row_count.py
rzmk ce260e9491 refactor: use czv in czv-python
- Add `file_path` for czv-python count operations
- Refactor tests based on file path instead of data
- Use thiserror in czv
- Update examples to reflect changes
2024-06-20 01:03:54 -04:00

10 lines
161 B
Python

import czv
data = """fruits,price
apple,2.50
banana,3.00
strawberry,1.50"""
output = czv.row_count(file_data=data, include_header_row=True)
print(output) # 4