-
Notifications
You must be signed in to change notification settings - Fork 62
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing bulk data to a range - Unnecessary Parameter #62
Comments
That being said, if you do want to use an implicit end parameter specifically for your use case, you could use |
I would expect functionality to be the same as excel ie range pasted to active cell writes to a range of cells - clearly implicit. Same in VBA with copy-paste. I agree merge needs two parameters. Paste array to a cell would be unusual and reasonable to require special parameter. |
PyExcelerate isn't a replacement for Excel and we don't aim to have the same API as it. Setting the value of a range is not identical to pasting, and it was an intentional decision to not allow ranges to exceed their specified bounds. Ranges require an end parameter and I think it would be dangerous to allow the end parameter to be |
Certainly not the case in excel or VBA so why would it be with PyExcelerate? |
Because they are fundamentally different. PyExcelerate is not Excel nor VBA, you can't shoot yourself in the foot and overwrite data in Excel because you can see the overwriting ocurring and undo it. PyExcelerate is completely opaque in comparison. I have proposed a solution above, if it does not work then we can investigate further, but "make PyExcelerate more like VBA" is not a reasonable feature request. |
ws.range("B2", "C3").value = [[1, 2], [3, 4]]
Desirable not to include "C3" unless it is intended to truncate the array range. Default should be paste entire xy array at initial cell.
The text was updated successfully, but these errors were encountered: