erdogant / pca

pca: A Python Package for Principal Component Analysis.
https://erdogant.github.io/pca
MIT License
284 stars 42 forks source link

Fix dataframe creation from dic.items() #21

Closed tgy closed 2 years ago

tgy commented 2 years ago

On newer versions of Python, dict.items returns a dict_items that some versions of pandas cannot use to construct a DataFrame, raising an exception.

This fixes this issue by forcing the construction of a list from the dictionary's (key, value) pairs contained in the dict_items object.

erdogant commented 2 years ago

Thank you!