I believe I'm using pivottable.js (in a Jupyter notebook) correctly, but please let me know if that's not the case.
In this example, I'm creating almost the simplest pandas dataframe possible:
test_data = DataFrame([['a', 'b'], ['b', 'a']], columns=['var1', 'var2'])
test_data
Dataframe:
var1 var2
0 a b
1 b a
When I display this in pivottable.js
pivot_ui(test_data)
The table shows that var1
and var2
both have 3 NULL values, and a total count of 5 records.
Is this expected behavior for my usage shown above? More than happy to be told I'm an idiot and I'm using pivottable.js incorrectly. :)
If this is unexpected behavior, I can provide further information about my system configuration.
Thanks!