Conversation
Codecov Report
@@ Coverage Diff @@
## golden #257 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 39 41 +2
Lines 2448 2535 +87
Branches 513 523 +10
=========================================
+ Hits 2448 2535 +87
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
|
|
||
|
|
||
| @pandas_type_system.register_adapter | ||
| class DataFrameAdapter(TypeAdapter): |
There was a problem hiding this comment.
How does this handle a series of objects?
There was a problem hiding this comment.
That part is handled in the SeriesAdapter; dtype("O") strings will be handled alright, but other types currently raise an error:
artigraph/src/arti/types/pandas.py
Lines 32 to 41 in fef1e99
I think for complex cell values, we may want to try to convert into a python type annotation (eg: list[str] or list[dict[str, str]]) and pass off to the python_type_system. I'm not quite sure whether that "value -> type annotation" logic should live here or in the python_type_system though (probably leaning towards the latter with some sort of "infer_type" logic?).
There was a problem hiding this comment.
FYI: I added a (failing) test and #258 for this.
Signed-off-by: Jacob Hayes <[email protected]>
Signed-off-by: Jacob Hayes <[email protected]>
Signed-off-by: Jacob Hayes <[email protected]>
a51050b to
fef1e99
Compare
Signed-off-by: Jacob Hayes <[email protected]>
Description
Adds
TypeSystems fornumpyandpandas. There are things missing (eg: pandas (multi)indexes), but this will be a good start from which we can refine.The packages are marked as optional dependencies.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
New tests were added to maintain 100% coverage.
Checklist: