boutrosrg / Predictive-Maintenance-In-PySpark

29 stars 10 forks source link

Possible missing function definition #1

Open iholas opened 5 years ago

iholas commented 5 years ago

In cell C6 (PCA) line 75 ... I am getting NameError: name 'reduce' is not defined It does not seem that this function is imported or declared anywhere in the notebook.

boutrosrg commented 5 years ago

@iholas reduce() is a native python function for quick list computations, and does not need to be imported (see http://book.pythontips.com/en/latest/map_filter.html)