No video

Factor Analysis with Pandas and FactorAnalyzer - Real World Example

  Рет қаралды 1,670

Adam Gaweda

Adam Gaweda

Күн бұрын

Пікірлер: 6
@sumihan5036
@sumihan5036 9 ай бұрын
Thank you so much for the step-by-step procedure on performing factor analysis. I came across several python codes on it but yours is the best! For the function 'print_factor_loadings()', a value error occurs perhaps due to the version of pandas. Some suggest upgrading the version, but I solved it as follows instead of using mask(): temp_df_pos = loadings[loadings[i] >= 0.5][[i, 'variable']] Change those similar ones like it.
@AMGaweda
@AMGaweda 9 ай бұрын
Thanks for the tip! It's been a moment since I've worked on this dataset, but since I've always been annoyed with the nested braces we need to do, it may also be the custom mask function I built up not accounting for a specific edge case. Either way, since it's one of the first things I copy into any notebook I'll have to give it a little more tinkering
@sumihan5036
@sumihan5036 9 ай бұрын
@@AMGaweda Great! Thank you again for sharing. :)
@chriszzz5798
@chriszzz5798 Жыл бұрын
this helps a lot, thank you for sharing
@angiez2925
@angiez2925 Жыл бұрын
May I ask where dose the 25 come from? fa.fit=(df_fa,25) Thank you!
@AMGaweda
@AMGaweda Жыл бұрын
I will apologize as that's definitely a random number! The .fit() function is looking for the DataFrame (fa_df) and and the number of factors you are choosing to fit for. In this line's case, I gave it 25 (even though my data only had 11 columns). You'll notice in the "Performing Factor Analysis" section, .fit() is used more properly by saying n_factors (or 4). For your own dataset, you'd want to make this the number of features (columns) in your dataset to serve as a baseline for the 1.0 or 0.7 eigenvalue thresholds.
36. Factor Analysis in Python || Dr. Dhaval Maheta
15:24
Dhaval Maheta (DM)
Рет қаралды 1,6 М.
Python factor analysis with FactorAnalyzer
10:40
Statistics Ninja
Рет қаралды 8 М.
Ik Heb Aardbeien Gemaakt Van Kip🍓🐔😋
00:41
Cool Tool SHORTS Netherlands
Рет қаралды 9 МЛН
Please Help Barry Choose His Real Son
00:23
Garri Creative
Рет қаралды 23 МЛН
Principal Component Analysis (PCA)
13:46
Steve Brunton
Рет қаралды 376 М.
Simulated Annealing
17:45
Adam Gaweda
Рет қаралды 12 М.
EFA vs. CFA - Exploratory vs. Confirmatory Factor Analysis
7:30
Meerkat Statistics
Рет қаралды 12 М.
Factor Analysis and Probabilistic PCA
17:46
Mutual Information
Рет қаралды 19 М.
Solving real world data science tasks with Python Pandas!
1:26:07
Keith Galli
Рет қаралды 1,5 МЛН
Principal Component Analysis with Python
16:28
Educational Research Techniques
Рет қаралды 5 М.
Exploratory Factor Analysis (conceptual)
9:50
James Gaskin
Рет қаралды 166 М.