You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [10]: df=pd.DataFrame({'i':[0]*10, 'b':[False]*10})
In [11]: vc_i=df.i.value_counts()
In [12]: vc_i.get(99,default='Missing')
Out[12]: 'Missing'
In [13]: vc_b=df.b.value_counts()
In [14]: vc_b
Out[14]:
False 10
dtype: int64
In [15]: vc_b.get(False,default='Missing')
Out[15]: 10
In [16]: vc_b.get(True,default='Missing')
IndexError: index out of bounds
The text was updated successfully, but these errors were encountered:
from ML: https://groups.google.com/forum/#!topic/pydata/CDnF9cNR2ho
The text was updated successfully, but these errors were encountered: