The package name to import should be changed to pyspark.pandas from databricks.koalas.
pyspark.pandas
databricks.koalas
# import databricks.koalas as ks import pyspark.pandas as ps
DataFrame.koalas in Koalas DataFrame was renamed to DataFrame.pandas_on_spark in pandas-on-Spark DataFrame. DataFrame.koalas was kept for compatibility reason but deprecated as of Spark 3.2. DataFrame.koalas will be removed in the future releases.
DataFrame.koalas
DataFrame.pandas_on_spark
Monkey-patched DataFrame.to_koalas in PySpark DataFrame was renamed to DataFrame.to_pandas_on_spark in PySpark DataFrame. DataFrame.to_koalas was kept for compatibility reason but deprecated as of Spark 3.2. DataFrame.to_koalas will be removed in the future releases.
DataFrame.to_koalas
DataFrame.to_pandas_on_spark
databricks.koalas.__version__ was removed. pyspark.__version__ should be used instead.
databricks.koalas.__version__
pyspark.__version__