import databricks.koalas as ks
df = ks.DataFrame({'x': [1, 2], 'y': [3, 4], 'z': [5, 6]})
df.columns = ['x', 'y', 'z1']
df['x2'] = df.x + df.x
print(df)
Unable to get any output when ran in JupyterNotebook. Code is continuously running with a "WARNING:root:Found pyspark version "2.3.0" installed. pyspark>=2.4.0 is recommended."
Following are the libraries used.
pandas- 0.25
PySpark- 2.3
pyarrow- 0.13
matplotlib - 3.1
databricks - 0.2
koalas - 0.21