PolicyEngine / synthimpute

Python package for data synthesis and imputation using parametric and nonparametric methods, and evaluation of these methods.
MIT License
11 stars 6 forks source link

Indexing error in nearest_synth_train_test_record #12

Closed MaxGhenis closed 5 years ago

MaxGhenis commented 5 years ago

TypeError: cannot do positional indexing on <class 'pandas.core.indexes.range.RangeIndex'> with these indexers [9.0] of <class 'numpy.float64'>

Probably need to cast row values to int.

MaxGhenis commented 5 years ago

Fixed in https://github.com/MaxGhenis/synthimpute/commit/09ee82a36d8bee5ea7e80f80d6ab20ba2d1fad87