Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
kindly committed Jul 6, 2024
1 parent d86fd9a commit 751ea7d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "flatterer"
version = "0.19.18"
version = "0.19.19"
authors = ["David Raznick <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -14,9 +14,9 @@ serde_json = { version = "1.0.83", features = ["preserve_order"] }
pyo3 = { version = "0.18.3", features = ["extension-module", "eyre"] }
eyre = "0.6.8"
#libflatterer={path = "../libflatterer"}
libflatterer = "0.19.17"
libflatterer = "0.19.18"

flatterer-web = "0.19.17"
flatterer-web = "0.19.18"
#flatterer-web={path = "../flatterer-web"}

env_logger = "0.10.1"
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.19.19] - 2024-07-07

### Fixed
- Parquet headings now from fields.csv
- text fields are kept as text in dataframe

## [0.19.18] - 2024-06-22

### Fixed
Expand Down
12 changes: 8 additions & 4 deletions flatterer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,16 @@ def flatten(
)

if csv:
for table in output['tables']['table_title']:
csv_path = os.path.join(output_dir, 'csv', str(table) + '.csv')
for name, title in output['tables'].values:
csv_path = os.path.join(output_dir, 'csv', str(title) + '.csv')
if dataframe:
output['data'][table] = pandas.read_csv(csv_path)
types = {}
for table_name, field_name, field_type, field_title, count in output['fields'].values:
if table_name == name and field_type == 'text':
types[field_title] = str
output['data'][title] = pandas.read_csv(csv_path, dtype=types)
else:
output['data'][table] = csv_path
output['data'][title] = csv_path

if sqlite:
output['sqlite'] = os.path.join(output_dir, 'sqlite.db')
Expand Down

0 comments on commit 751ea7d

Please sign in to comment.