How to spawn actor from Python scripting?

You’ll probably want to enable the Editor Scripting Utilities Plugin, then call

unreal.EditorLevelLibrary.spawn_actor_from_class()

https://api.unrealengine.com/INT/PythonAPI/class/EditorLevelLibrary.html?highlight=spawn#unreal.EditorLevelLibrary.spawn_actor_from_class

That Editor Scripting plugin had been only available to Unreal Studio users in 4.19, but now is for everyone.