Yes I am using python environment and not spark.

These operations are of python.

The last line.. prs.save() is giving an error.

When I do normal prs.save(file name) without the path it works and save the file in current workspace. But that is of no use. I want the file to be saved on Blob storage