koalas_img = ks.read_spark_io(path="/mnt/databricks/demo/CarClassification/cars_train/009*.jpg", format="binaryfile")
koalas_img.shape
Out[16]: (100, 4)
type(koalas_img)
Out[17]: databricks.koalas.frame.DataFrame
koalas_img.columns
Out[18]: Index(['path', 'modificationTime', 'length', 'content'], dtype='object')
koalas_img.iloc[0]
SparkPandasNotImplementedError: .iloc requires numeric slice or conditional boolean Index, got [0] You are trying to use pandas function .iloc[..., ...], use spark function select, where
As per the documentation in https://databricks.com/notebooks/cnn-car-class/koalas-augmentation.html iloc function can be used with koalas dataframe.