-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 ipydatagrid>=1.3
doesn't support integer pandas column names
#512
Comments
feels like a weird jupyter related bug so I just tried with jupyterlab=4.2 looks like that is slated for this week so I'll just hang tight until its out and try again |
just tried with the if I make the col names strings not numbers the bad behaviour stops, i.e. it seems as though on the JS side of looking through the js side of things: ipydatagrid/js/core/viewbasedjsonmodel.ts Lines 564 to 573 in 23b6287
ipydatagrid/js/core/viewbasedjsonmodel.ts Lines 205 to 219 in 23b6287
it appears from the above that there is a requirement to use a string for the name (though this wasn't previously enforced). Does ipydatagrid require the pandas DataFrame to have string col names? should it? |
set_cell_value
ipydatagrid>=1.3
doesn't support integer pandas column names
... as unwanted column created with string name matching the integer on
set_cell_value
I'm just trying to update
ipyautoui
toipydatagrid>1.3.1
and came across this tricky little issue:Describe the bug
a new column with the string name of the edited column is created. This only happens when retrieving the data in a new cell.
To Reproduce
Expected behavior
Behaves as expected for non-integer column names
Environment (please complete the following information):
@martinRenou - maybe you could help?
The text was updated successfully, but these errors were encountered: