Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when records are dropped from block_cdist because they don't have the same values of blocked variables #11

Open
MaxGhenis opened this issue Dec 19, 2018 · 1 comment

Comments

@MaxGhenis
Copy link
Collaborator

In the mpg example:

b2 = si.block_cdist(synth, mpg, ['cylinders', 'model_year'], metric='euclidean')

/home/maxghenis/miniconda3/lib/python3.6/site-packages/pandas/core/reshape/merge.py:963: UserWarning: You are merging on int and float columns where the float values are not equal to their int representation
  'representation', UserWarning)

This is probably due to rf_synth synthesizing model_year as a float (that's the dtype) where it's an int in the original data. This should then go away if warning when records are dropped because they're not part of a block.

@MaxGhenis
Copy link
Collaborator Author

Renaming this issue to get at the root problem

@MaxGhenis MaxGhenis changed the title block_cdist throws merge warning with multiple columns Warn when records are dropped from block_cdist because they don't have the same values of blocked variables Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant