cid-harvard / py-ecomplexity

Python package to compute economic complexity and associated variables
MIT License
63 stars 24 forks source link

Explicitly specify "name" in MultiIndex.from_product #12

Closed complexly closed 4 years ago

complexly commented 4 years ago

In line 69 of proximity.py, better to specify names explicitly https://github.com/cid-harvard/py-ecomplexity/blob/05076fb21b4789c8468f3b21a9b95ffd192cd5c4/ecomplexity/proximity.py#L69

After upgrading to pandas 1.0+, pd.MultiIndex.from_product tries to infer names, which seems to cause error when running reset_index later.

shreyasgm commented 4 years ago

Thanks, Yang! Do you want to open a PR for this?