Skip to content

Commit

Permalink
disable stringify index values (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
shouples authored Aug 22, 2022
1 parent bc6454e commit fb5dafa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
All notable changes will be documented here.

---
## Unreleased

### Changed
- `STRINGIFY_INDEX_VALUES` is `False` by default (index `.name` will still be a string, but values will keep their original type)

## `1.2.0`
_2022-08-21_

Expand Down
2 changes: 1 addition & 1 deletion dx/formatters/dataresource.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DataResourceSettings(BaseSettings):

DATARESOURCE_FLATTEN_INDEX_VALUES: bool = False
DATARESOURCE_FLATTEN_COLUMN_VALUES: bool = True
DATARESOURCE_STRINGIFY_INDEX_VALUES: bool = True
DATARESOURCE_STRINGIFY_INDEX_VALUES: bool = False
DATARESOURCE_STRINGIFY_COLUMN_VALUES: bool = True

class Config:
Expand Down
2 changes: 1 addition & 1 deletion dx/formatters/dx.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DXSettings(BaseSettings):

DX_FLATTEN_INDEX_VALUES: bool = False
DX_FLATTEN_COLUMN_VALUES: bool = True
DX_STRINGIFY_INDEX_VALUES: bool = True
DX_STRINGIFY_INDEX_VALUES: bool = False
DX_STRINGIFY_COLUMN_VALUES: bool = True

class Config:
Expand Down

0 comments on commit fb5dafa

Please sign in to comment.