pyspark - Accessing dataframe derived using LabeledPoint -


i have created dataframe , have 2 column names derived using labeledpoint object. problem facing whenever trying access dataframe using 'label' or 'features' column names says column object not callable

i have used selectexpr object followed min(label)

df.selectexpr("max(label) max_value","min(label) min_value")) 

any suggestion of handling such dataframe appreciated

the data types of dataframe follows -

[('features', 'vector'), ('label', 'double')] 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

c# SetCompatibleTextRenderingDefault must be called before the first -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -