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

MicroDataFrame.merge() returns a DataFrame #194

Open
MaxGhenis opened this issue Feb 27, 2021 · 0 comments
Open

MicroDataFrame.merge() returns a DataFrame #194

MaxGhenis opened this issue Feb 27, 2021 · 0 comments

Comments

@MaxGhenis
Copy link
Collaborator

Example:

d = mdf.MicroDataFrame(dict(g=["a", "a", "b"], y=[1, 2, 3]), weights=[4, 5, 6])
d2 = mdf.MicroDataFrame(dict(g=["a", "b"], z=[1, 2]), weights=[4, 5])
merged = d.merge(d2, on="g")
merged.__class__

pandas.core.frame.DataFrame

merged
	g	y	__tmp_weights	z
0	a	1	4.0	1
1	a	2	5.0	1
2	b	3	6.0	2

I think mdf1.merge(mdf2) should return a MicroDataFrame that preserves mdf1's weights.

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