Код: Выделить всё
df = spark.read
.format("com.crealytics.spark.excel")
.option("dataAddress", f"'{file_sheet_name}'!A{file_header_position if file_header_position is not None else 1}"
.option("inferSchema", "true")
.option("header", "true")
.option("maxRowsInMemory", 10000)
.option("encoding", source_encoding if source_encoding else "utf-8")
.load(S3_RAW_DIR)
Подробнее здесь: https://stackoverflow.com/questions/793 ... -sometimes
Мобильная версия