ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

How to change document status using python code?

Hi there I want to automate the change status of a document using python code? How can I do this? Thanks for your help.