PolicyEngine / microdf

Analysis tools for working with survey microdata as DataFrames.
http://pslmodels.github.io/microdf
MIT License
12 stars 10 forks source link

pd.concat([MicroDataFrame, MicroDataFrame]) -> pd.DataFrame #181

Closed MaxGhenis closed 3 years ago

MaxGhenis commented 3 years ago
d = mdf.MicroDataFrame(dict(x=[1, 2, 3]), weights=[4, 5, 6])
pd.concat([d, d]).__class__

pandas.core.frame.DataFrame

Should be MicroDataFrame

MaxGhenis commented 3 years ago

This probably isn't possible since we can't modify pd.concat, so I'll try implementing mdf.concat instead.