Closed themrmax closed 7 years ago
Hey there,
So this will work:
from dfply import *
from dfply.base import X as DF
diamonds >> select(DF.price) >> head(3)
price
0 326
1 326
2 327
Basically you import everything and then reimport X as whatever you want it to be called. The first import will import X
, but you can overwrite that one with something else. Hope that helps!
Cool, yeah that makes sense, different people might have difference preferences, this way you can do whatever you want!
Hey, not sure if this is an issue for anyone else, but one of my favourite features of dfply is the
X
symbol, but it's annoying because of the scikit-learn convention to useX
for the array of predictors ... would it make sense to changeX
to something else? maybeD
orDF
?