Guides
Printing in AG Environment
You can print messages in AG’s environment using theag_print
function, which works similarly to the built-in Python print
function. The below code block presents an example of how to use ag_print
to output a message.
%%ag
ag_print("hello", "world", sep=' ', end='\n')
Other parameters
As shown above, the ag_print
function has two optional parameters, sep
and end
. They allow you to customise the separator between messages and the end character.
note
ag_print
cannot print private DataFrames or Series due to privacy constraints in AG’s environment.