Skip to main content

Printing in AG Environment with ag_print

ag_print functions similarly to the built-in Python print function, with the capability to print messages in the AG environment.

Using ag_print

Here's an example of using ag_print to output a message:

ag_print("hello", "world", sep=' ', end='\n')

The ag_print function supports the optional sep and end parameters, allowing you to customize the separator between messages and the end character, respectively.

Limitations of ag_print

While ag_print is versatile, it is important to note that it cannot print private DataFrames or Series due to privacy constraints in the AG environment.