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
because .values extracts an ndarray, and that works fine (because the column names are removed when converting to ndarray)
Expected behavior
If the scaler is Spherize and method is PCA/PCA-cor, the column names will not be the same as the original dataframe, so we should adapt this appropriately
Additional information
No response
The text was updated successfully, but these errors were encountered:
* #319
* Rewrite spherize
* revert
* black
* skip test
* comment
* docs
* Handle types
* flag zero var
* skip some conditions
* typo
* black
* typo
* checks
* Handle low rank
* fix size check
* prompt user to report bug
* change assertions to exceptions
* Use return_numpy in Spherize
* Fix typo
* handle change of column names
* add test
* test centering
* change assertions to exceptions, and explain better
* clean up error messages, remove requirement for ZCA
* Drop `create_bug_report_message`
* Update error message
* Math clarifications
* Clarify why we don't use np.linalg.inv(S)
* black missed this
Example code with output
In
normalize.normalize
, this chunk explicitly recreates apd.DataFrame
fromfeature_df
This fails when the
fitted_scaler.transform(feature_df).columns
are different fromfeature_df.columns
Issue description
For now, I have a temporary fix by doing this
because
.values
extracts anndarray
, and that works fine (because the column names are removed when converting tondarray
)Expected behavior
If the scaler is Spherize and method is
PCA
/PCA-cor
, the column names will not be the same as the original dataframe, so we should adapt this appropriatelyAdditional information
No response
The text was updated successfully, but these errors were encountered: