python panda dataframe: argument 'keep' not working in drop_duplicates()/duplicated
<p>Suppose we have a dataframe <code>df</code></p>

<pre><code>df=pd.DataFrame()
df['c1']=[1,2,3,3,4]
df['c2']=["a1","a2","a2","a2","a1"]
df['c3']=[1,2,3,3,5]
</code></pre>

<p>If I use either <code>df.drop_duplicates(keep=False)</code> or <code>df.duplicated(keep=False)</code>, I get the following error:</p>

<pre><code>File "C:\Users\Kanika\Anaconda\lib\site-packages\pandas\util\decorators.py", line 88, in wrapper
return func(*args, **kwargs)

TypeError: duplicated() got an unexpected keyword argument 'keep'
</code></pre>