Alok0903
New Contributor II

Load it using PySpark and create a pandas data frame. Here is how you do it after uploading the data

file_path = "/FileStore/tables/your_file_name.csv"

# Load CSV as Spark DataFrame
df_spark = spark.read.option("header", "true").option("inferSchema", "true").csv(file_path)

# Convert to pandas DataFrame
df_pandas = df_spark.toPandas()

Alok K Pandey