[Spark By Example] Read CSV – Array Type

The following sample code (by Python and C#) shows how to read CSV file with a column of array.

CSV does not support complex objects such as an array. To make it work, you need to pass a JSON array in CSV and parse it. You will learn this trick here.

JSON array format is like this.

["Ford", "Toyota", "BMW", "Fiat"]
Continue reading “[Spark By Example] Read CSV – Array Type”

[Tutorial] Python Basics

Python is one of the most popular general programming languages nowadays.

  • It is easy to start! Python is the choice of language for new programmers.
  • You can start with functional programming and then move on to object-oriented programming with Python.
  • You can do many things with Python – general algorithm, gaming, web, and even machine learning.
Continue reading “[Tutorial] Python Basics”