Closed gsheni closed 2 months ago
get_cardinality_plot
test_visualization.py
real_data['child']['parent_id'] = pd.Series([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, nan, nan, nan]) synthetic_data['child']['parent_id'] = pd.Series([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, nan, nan, nan]) get_cardinality_plot(data, synthetic_data, child_table_name='child', parent_table_name='parent', child_foreign_key='parent_id', metadata=metadata)
Problem Description
get_cardinality_plot
function, NaNs in the child column are not properly accounted for.Expected behavior
get_cardinality_plot
to do the following:test_visualization.py
Current plot Example with NaN foreign Keys