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
This commit is contained in:
rzmk 2024-06-20 01:03:54 -04:00
parent 9799ab694b
commit ce260e9491
14 changed files with 79 additions and 55 deletions

View file

@ -5,6 +5,6 @@ apple,2.50
banana,3.00
strawberry,1.50"""
output = czv.row_count(data, False)
output = czv.row_count(file_data=data, include_header_row=True)
print(output)
print(output) # 4