I am trying to find out the python version I am using in Databricks.
To find out I tried
import sys
print(sys.version)
And I got the output as 3.7.3
However when I went to Cluster --> SparkUI --> Environment
I see that the cluster Python version is 2.
Which version does this refer to ?
When I tried running
%sh python --version
I still get Python 3.7.3
Can there be a different python version for each worker / driver node ?
Note: I am using a setup where there is 1 worker node and 1 driver node (2 nodes in total with the same spec) and Databricks Runtime Version is 6.5 ML