cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Which MLlib library am I supposed to use - pyspark.mllib or pyspark.ml?

User16826992666
Valued Contributor

Both of these libraries seem to be available and they are both for MLlib, how do I know which one to use?

1 REPLY 1

User16826992666
Valued Contributor

The pyspark.mllib library is built for RDD's, and the pyspark.ml library is built for Dataframes. The RDD-based mllib library is currently in maintenance mode, while the Dataframe library will continue to receive updates and active development. For that reason, plus the fact that Dataframes are more common and are generally recommended to use, you will usually want to use the pyspark.ml library.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.