MemoryError when using `.drop_duplicates()`
#### Code Sample, a copy-pastable example if possible
Calling `.drop_duplicates()` on a large dataframe say of over 1 million rows with sufficient duplicate values should suffice
#### Problem description
I have a very large data frame object ( a little less than 10 million rows). It has 5 columns, most of which at this time are empty. However, for the non-empty columns, there are duplicate values. I have used both `drop_duplicates` and `duplicated` to attempt removing these duplicates. For every variation of these methods, I always get a `MemoryError`. I am running pandas in a jupyter notebook using Python3 on an AWS instance. The AWS instance has 16 GB of RAM.

How can I solve this issue?

#### Output of ``pd.show_versions()``

<details>
INSTALLED VERSIONS
------------------
commit           : None
python           : 3.7.4.final.0
python-bits      : 64
OS               : Linux
OS-release       : 4.14.146-120.181.amzn2.x86_64
machine          : x86_64
processor        : x86_64
byteorder        : little
LC_ALL           : None
LANG             : en_US.UTF-8
LOCALE           : en_US.UTF-8

pandas           : 0.25.1
numpy            : 1.17.2
pytz             : 2019.2
dateutil         : 2.8.0
pip              : 9.0.3
setuptools       : 38.4.0
Cython           : None
pytest           : None
hypothesis       : None
sphinx           : None
blosc            : None
feather          : None
xlsxwriter       : None
lxml.etree       : None
html5lib         : None
pymysql          : None
psycopg2         : None
jinja2           : 2.10.1
IPython          : 7.8.0
pandas_datareader: None
bs4              : None
bottleneck       : None
fastparquet      : None
gcsfs            : None
lxml.etree       : None
matplotlib       : 3.1.1
numexpr          : None
odfpy            : None
openpyxl         : None
pandas_gbq       : 0.11.0
pyarrow          : None
pytables         : None
s3fs             : None
scipy            : None
sqlalchemy       : None
tables           : None
xarray           : None
xlrd             : None
xlwt             : None
xlsxwriter       : None


</details>
