The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Python
 Set column values by function and set comments

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Dr.locking Posted - 01/17/2024 : 02:50:53 AM
Hi there,
I met a problem in programming using python to set column values by user-defined mathematical function. I didn't find any embedded function to fix this problem. There also can't find a originpro embedded function to set string-type values to comments of worksheets. Can anyone help me to fix these problems? If any python programming examples supported, it would be nice.

Thanks!
1   L A T E S T    R E P L I E S    (Newest First)
ChaoC Posted - 01/17/2024 : 10:38:43 AM
Hello,

You can Set Column Value formula with set_formula():
https://docs.originlab.com/originpro/classoriginpro_1_1worksheet_1_1WSheet.html#a599b3b251d3d3643fac2b2a80d177fa5

Other Python Methods for setting Formula: https://www.originlab.com/doc/python/tools/Set-Column-Values

You can set Comments with set_label():
https://docs.originlab.com/originpro/classoriginpro_1_1worksheet_1_1WSheet.html#a7d41c7449ab937ec89b237a8707d689e

Best,
Chao

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000