Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [1.0.1] - 2025-09-10

### Bug Fixes

- Convert dtypes during joining using lydata's `cast_dtypes()`.

## [1.0.0] - 2025-09-04

### Bug Fixes
Expand Down Expand Up @@ -909,6 +915,7 @@ returns `None` instead. Fixes [#11]
## [0.5.3] - 2022-08-22

<!-- markdownlint-disable-file MD024 -->
[1.0.1]: https://github.com/lycosystem/lyscripts/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/lycosystem/lyscripts/compare/1.0.0rc3...1.0.0
[1.0.0rc3]: https://github.com/lycosystem/lyscripts/compare/1.0.0rc2...1.0.0rc3
[1.0.0rc2]: https://github.com/lycosystem/lyscripts/compare/1.0.0rc1...1.0.0rc2
Expand Down
4 changes: 4 additions & 0 deletions src/lyscripts/data/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path

import pandas as pd
from lydata.validator import cast_dtypes
from pydantic import Field

from lyscripts.cli import assemble_main
Expand Down Expand Up @@ -61,6 +62,9 @@ def cli_cmd(self) -> None:

for data_config in self.inputs:
data = data_config.load()
# `cast_dtypes()` ensures that e.g. boolean values are not suddenly
# converted to strings when a dataset with missing values is concatenated.
data = cast_dtypes(data)
if joined is None:
joined = data
else:
Expand Down
Loading