Created
February 25, 2019 04:50
-
-
Save akhilanandbv003/f9cbbda7ad3abeb09b8c47d91b6f6c2b to your computer and use it in GitHub Desktop.
Customer dataframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> val customer = sc.parallelize(Seq((101,"Jon") , (102,"Aron") ,(103,"Sam"))).toDF("customerId", "name") | |
customer: org.apache.spark.sql.DataFrame = [customerId: int, name: string] | |
scala> customer.show | |
+----------+----+ | |
|customerId|name| | |
+----------+----+ | |
| 101| Jon| | |
| 102|Aron| | |
| 103| Sam| | |
+----------+----+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment