Python code can be stored in a graphical object placed on a graph, worksheet or matrixsheet. The code gets executed if certain event of the object is triggered which is same as running Labtalk Script behind an object.
In order for the script to be recognized as Python, it should begin with either of the following: #,''' (triple single-quote), """ (triple double-quote), import.
import pandas as pd import originpro as op data = {'Name':['Tom', 'Jack', 'Mike', 'Alice'], 'Grade':[99, 98, 95, 90]} df = pd.DataFrame(data) wks = op.find_sheet() wks.from_df(df)