You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function that, given a dataframe, eliminates the correlations greater than 0.9, visualizes the correlations and returns a new dataframe with columns that meet the condition of being less than 0.9.
275
+
and returns a new dataframe with the columns that meet the condition of being less than 0.9.
276
+
Parameters
277
+
----------
278
+
- DataFrame: set of the data to which you want to apply.
279
+
Returns
280
+
-------
281
+
- dataframe
282
+
"""
283
+
284
+
# Calculate the correlation matrix
285
+
corr_matrix=dataframe.corr()
286
+
287
+
# Eliminate variables with correlation higher than 0.9
0 commit comments