Когда я запускаю следующий код, отображается содержимое файла .csv. :
Код: Выделить всё
file_location = "/FileStore/tables/ge_selection.csv"
file_type = "csv"
# CSV options
infer_schema = "false"
first_row_is_header = "false"
delimiter = ","
# The applied options are for CSV files. For other file types, these will be ignored.
df = spark.read.format(file_type) \
.option("inferSchema", infer_schema) \
.option("header", first_row_is_header) \
.option("sep", delimiter) \
.load(file_location)
display(df)
Код: Выделить всё
FileNotFoundError: [Errno 2] No such file or directory: '/FileStore/tables/ge_selection.csv'
Код: Выделить всё
import pandas as pd
df_ge = pd.read_csv(file_location)
df_ge = pd.read_csv("/FileStore/tables/ge_selection.csv")
Подробнее здесь: https://stackoverflow.com/questions/792 ... rror-errno