biof309_fall2018 icon indicating copy to clipboard operation
biof309_fall2018 copied to clipboard

Unused import message

Open lowalk opened this issue 6 years ago • 2 comments

So I updated to the latest version of pycharm (3.1) last evening and I’m not sure if I did something wrong or not, but each import that I now enter in my file receives an annotation stating that it is an unused import. For instance, when I import pandas as pd, the entire line of code is greyed out with the unused import statement attached. I tried googling I information regarding this, but found it to be a bit unclear. Have you ever encountered something like this?

lowalk avatar Dec 12 '18 22:12 lowalk

I’ve tried uninstalling and reinstalling pycharm multiple times along with reverting back to a previous version. I created a test file just to play around importing packages and the problem still persists.

lowalk avatar Dec 13 '18 01:12 lowalk

Do you actually use pandas in your code?

import pandas

pandas.DataFrame([[1, 2,], [3, 4]])

Try pasting this in and see if the message disappears.

marskar avatar Dec 13 '18 19:12 marskar