Python
Python is a computer language used to conduct data analysis (learn more here). In Teragrep, Python is a standalone interpreter.
Python and PySpark are two separate interpreters, even though they both use the same language. You can use PySpark to access Spark features. |
To use Python in Teragrep’s editor, write %python
at the start.
%python
import sys
import datetime
import socket
import getpass
import numpy
print(sys.version)
print(numpy)
print(socket.gethostname())
print(getpass.getuser())
print(datetime.datetime.now())