Need Help, getting an error when executing my code in inbuilt Jupyter Notebook

Hi Dataquest,io,

Here:
https://app.dataquest.io/m/310/guided-project%3A-finding-the-best-markets-to-advertise-in/2/understanding-the-data

I am getting this error
/dataquest/system/env/python3/lib/python3.4/site-packages/IPython/core/interactiveshell.py:2723: DtypeWarning: Columns (17,62) have mixed types. Specify dtype option on import or set low_memory=False. interactivity=interactivity, compiler=compiler, result=result)

Please kindly help, how to get rid from this error. Though my code is giving the output perfectly.

Thanks

hey @NisrinDhoondia

I googled the error and found this on stack overflow: https://stackoverflow.com/questions/24251219/pandas-read-csv-low-memory-and-dtype-options

I did a df.info() and instead of showing me column structure it showed me memory usage, so most likely not related to the dataset but the size of it. Let us know what your research says. Thanks.

1 Like

Hi @Rucha,

Thank you very much for the information.

Yes I too got the same output for info() and I did realized it but I just wanted to get rid of that error anyhow since I will be uploading it on my Github account as part of my job searching process.

I was able to resolve this through sample solution provided by Dataquest.io for the project.
So I copy-paste this as argument in pd.read_csv(‘https://raw.githubusercontent.com/freeCodeCamp/2017-new-coder-survey/master/clean-data/2017-fCC-New-Coders-Survey-Data.csv’) and the error vanish. Yes for info() method I am still getting the same output only.

Thanks

1 Like