The Python module allows you to do anything you want to your table.
The code must be the body of a single function that takes one argument called table, which is a Pandas DataFrame object. It must return a new table, or None.
You can also use the Python Code module to test code for creating your own modules.
Learn more about Pandas in this short tutorial.