Comments (2)
How can you set a value to a cell - this is the very primitive function; the example given shows input and complicated way to set the value of a cell.
The following is too messy;
```
xl_model.calculate(
inputs={
"'[EXCEL.XLSX]DATA'!A2": 3, # To overwrite the default value.
"'[EXCEL.XLSX]DATA'!B3": 2 # To impose a value to B3 cell.
},
outputs=[
"'[EXCEL.XLSX]DATA'!C2", "'[EXCEL.XLSX]DATA'!C6"
] # To define the outputs that you want to calculate.
)
How can I just a value of cell something like:
`xl_model['A1'] = 30 `
from formulas.
You have to specify the excel filename and sheet name ("'[<filename>]<sheetname>'!<coord>") as follows:
>>> xl_model.calculate({"'[EXCEL.XLSX]DATA'!A1": 30})
If you want just to set the cell's values without executing the formulas, I suggest using another library like openpyxl
.
from formulas.
Related Issues (20)
- Get one liner formula from graph node HOT 5
- General info HOT 1
- Slow Response in Excel Calculate Function with Entire Column Formulas HOT 1
- get_unused_node_id support removed for schedula package HOT 1
- Looking for an example of how to use the compile and dispatch pipe functionality
- Optimizing Excel Model Efficiency with Pre-Calculation
- INDEX function discrepancy
- How to have an exception when a formula is not supported
- add topic tags in About section
- excel cell names/alias are identified as loops HOT 1
- possibility to extract sugbraphs from complex models HOT 2
- discrepancy between visualized value in excel and value read-in the model HOT 2
- AttributeError: 'DataTableFormula' object has no attribute 'text' HOT 1
- Regarding the import of the model with from_dict after to_dict, the default value defined by the override is not the same as the normal result HOT 2
- I want to run excel without an excel file, and I think the to_dict and from_dict for this project are great HOT 4
- possibility to init excelModel from a function HOT 2
- how to show transfered formula?
- Calculation fails on dates HOT 1
- In excel, I want to implement define lists and then get the results via "formulas"
- Find recursively "pure input" cells HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formulas.