Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13861

No "quick fix" option to add a missing import in pycharm

$
0
0

In PyCharm, I have a file containing comments and then the first line:

df = pandas.read_csv('data')

...which is invalid because pandas is undefined.

The completions/fixes menu contains Convert single-quoted string to double-quoted string and Inject language or reference, but no option to automatically add import pandas.

Screenshot showing code as described above, but no quick fix to add an import

Why there is no red bulb when the library or package not be imported? There is only yellow bulb.

I want to use the quick fix red bulb to auto import pandas.

My PyCharm version is 2023.3.2. and I run in MacBook Air.

Anyone can help me to solve this problem. Thanks a lot for your help.


Viewing all articles
Browse latest Browse all 13861

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>