spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yavuz Nuzumlalı <manuya...@gmail.com>
Subject Plot DataFrame with matplotlib
Date Wed, 23 Mar 2016 07:30:20 GMT
Hi all,

I'm trying to plot the result of a simple PCA operation, but couldn't find
a clear documentation about plotting data frames.

Here is the output of my data frame:

+----------------------------------------------------------------+
|pca_features                                                    |
+----------------------------------------------------------------+
|[-255.4681508918886,2.9340031372956155,-0.5357914079267039]     |
|[-477.03566189308367,-6.170290817861212,-5.280827588464785]     |
|[-163.13388125540507,-4.571443623272966,-1.2349427928939671]    |
|[-53.721252166903255,0.6162589419996329,-0.39569546286098245]   |
[-27.97717473880869,0.30883567826481106,-0.11159555340377557]   |
|[-118.27508063853554,1.3484584740407748,-0.8088790388907207]    |

Values of `pca_features` column is DenseVector s created using
VectorAssembler.

How can I draw a simple 3d scatter plot from this data frame?

Thanks

Mime
View raw message