PSLmodels / microdf

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

Micro{Series,DataFrame}.drop() returns {Series,DataFrame} #210

Open MaxGhenis opened 3 years ago

MaxGhenis commented 3 years ago
In [2]: d = mdf.MicroDataFrame(dict(x=[1, 2], y=[3, 4]), weights=[5, 6])

In [3]: d.drop("x", axis=1).__class__
Out[3]: pandas.core.frame.DataFrame

In [4]: d.drop(0).__class__
Out[4]: pandas.core.frame.DataFrame

In [5]: d.x.drop(0).__class__
Out[5]: pandas.core.series.Series