Releases: rmnldwg/lydata
0.2.3
What's New
🚀 Features
- Add
central
to short name columns
🐛 Bug Fixes
&
and|
withNone
return originalQ
. Previously,Q(...) | None
would return a query that evaluated toTrue
everywhere.
📚 Documentation
- List defined operators on
Q
(&
,|
,~
,==
) in the docstring ofCombineQMixin
.
🧪 Testing
- ensure that
&
and|
withNone
return originalQ
.
0.2.2
What's New
Another bug fix: Previously, sub- and superlevel involvement was only computed for columns not already present in the table. Now, it is by default computed and correctly replaces unknown values.
🚀 Features
- (utils) Add better update func for pandas
🐛 Bug Fixes
- Order of sub-/superlevel inference
- Don't ignore present sub-/superlvl cols
0.2.1
What's New
This release fixes a bug where completely unobserved LNLs would be reported as healthy when using the ly.combine()
method. Also, This method is now roughly 20x faster than before 🚀
🐛 Bug Fixes
- If an LNL of a patient was unobserved (i.e., all diagnoses
None
), then the methodly.combine()
returnsNone
for that patient's LNL. Fixes #13
🧪 Testing
- Change the doctest of
ly.combine()
to check whether #13 was fixed.
0.2.0
What's New
This is a clean-up update. Some stuff I thought might be useful turned out to be unnecessary, while other things got better names. Two small features have also made it.
🚀 Features
- Can now combine
Q
withNone
to yieldQ
again. - Add
contains
operator toC
,Q
objects. This calls pandas'str.contains
method.
🧪 Testing
- Fix wrong name in doctests
Change
- [breaking] Add, rename, delete several methods:
LyDatasetConfig
is now justLyDataset
- the
path
property is nowpath_on_disk
- the
get_url()
method has been removed - the
get_description()
method has been removed - added
get_content_file()
method to fetch and store remove content load()
was renamed toget_dataframe()
- the
repo
argument was changed torepo_name
- (utils) [breaking] Rename
enhance
func toinfer_and_combine_levels
.
Remove
- [breaking] Two unused funcs for markdown processing were removed
- (load) [breaking] Drop
join_datasets
, since it's not needed. All it did was runpd.concat(...)
.
0.1.2
0.1.1
0.1.0
What's New
With this release, we make the switch from rapidly evolving 0.0.X
versions to something that changes a little more slowly. However, we still consider the library experimental and breaking changes may still occur frequently.
🚀 Features
- (utils) Add often needed
enhance
function to complete sub-/superlevel involvement and infer maximum likelihood status.
🐛 Bug Fixes
- Avoid
KeyError
ininfer_superlevels
⚙️ Miscellaneous Tasks
- Add link to release 0.0.4
Change
infer_su(b|per)levels
skips inferring involvement of sub-/super LNLs that are already present- (load) Rename
skip_disk
touse_github
- (query) Rename
in_
toisin
forC
object
0.0.4
What's New
🚀 Features
- [breaking] Make several helper functions private (e.g.,
_max_likelihood()
) - (utils) Add more shortname columns, like
surgery
for("patient", "#", "neck_dissection")
- (load) Allow search for datasets at different locations on disk
- (query) Add
C
object for easierQ
creation - (query) Add
in_
toC
object - (validate) Add
transform_to_lyprox
function
🐛 Bug Fixes
- (load) Resolve circular import of
_repo
📚 Documentation
- Add intersphinx mapping to pandera
- Expand module docstrings
- Update
README.md
with library examples
🧪 Testing
- Fix failure due to changing order of items in set
Change
- (validate) Add args to renamed validation
- Import useful stuff as top-level
- Make
main()
funcs private
Remove
- (load) [breaking]
load_dataset()
not needed, one can just usenext(load_datasets())
0.0.3
What's New
🚀 Features
- Add method to infer sublevel involvement #2
- Add method to infer superlevel involvement #2
- (load) Allow loading from different repository and/or reference (tag, commit, ...) #4
🐛 Bug Fixes
- Make
align_diagnoses()
safer - Make
combine()
method work as intended - (load) Year may be equal to current year, not only smaller
📚 Documentation
- Make accessor method docstring more detailed
- Mention panda's
update()
in methods
⚙️ Miscellaneous Tasks
- Add documentation link to metadata
- Add changelog
- Remove pyright setting (where from?)
- Ignore B028 ruff rule
0.0.2
Warning
This is still very much experimental. Anything might change at any time.
What's New
🚀 Features
- Add some basic logging
- Add
percent
andinvert
to portion
📚 Documentation
- Host documentation on https://lydata.readthedocs.io
- Ensure intersphinx links work
🧪 Testing
- Add doctest to
join_datasets()
Change
- Switch to pydantic for dataset definition
- Shorten accessor name to
ly
Refac
- Make load funcs/methods clean & consistent