Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2025 01:18 AM
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