Skip to content Skip to sidebar Skip to footer
Showing posts with the label Apache Spark

Loading Json Dataset Into Spark, Then Use Filter, Map, Etc

I'm new to Apache Spark, and would like to take a dataset saved in JSON (a list of dictionaries… Read more Loading Json Dataset Into Spark, Then Use Filter, Map, Etc

How To Read Csv File With Additional Comma In Quotes Using Pyspark?

I am having some troubles reading the following CSV data in UTF-16: FullName, FullLabel, Type TEST.… Read more How To Read Csv File With Additional Comma In Quotes Using Pyspark?

No Module Named 'resource' Installing Apache Spark On Windows

I am trying to install apache spark to run locally on my windows machine. I have followed all instr… Read more No Module Named 'resource' Installing Apache Spark On Windows

Replace Column Values In Spark Dataframe Based On Dictionary Similar To Np.where

My data frame looks like - no city amount 1 Kenora 56% 2 … Read more Replace Column Values In Spark Dataframe Based On Dictionary Similar To Np.where

Unable To Open Pyspark In Mac Os

I have installed pyspark through pip but unable to open it. It shows following error . Users/sonv… Read more Unable To Open Pyspark In Mac Os

What Is The Right Way To Save\load Models In Spark\pyspark

I'm working with Spark 1.3.0 using PySpark and MLlib and I need to save and load my models. I u… Read more What Is The Right Way To Save\load Models In Spark\pyspark

How To Optimize This Code On Spark?

How to make this code more efficient in Spark? I need to calculate minimum, maximum, count, mean fr… Read more How To Optimize This Code On Spark?

Pyspark Import User Defined Module Or .py Files

I built a python module and I want to import it in my pyspark application. My package directory str… Read more Pyspark Import User Defined Module Or .py Files