Python Forum

Full Version: PyCharm IDE: Method Not Showing Up Question: Bug or Feature?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've noticed that PyCharm sometimes fails to drill down to give me method pop-ups when I'm typing. As this problem never occurs using Intellij (Java), I'm thus wondering if the PyCharm "missing methods" are a bug in PyCharm or perhaps a consequence of how Python works.

Here's an example:

import pandas as pd

sports = { 'Archery''' : 'Bhutan' ,
'Golf' : 'Scotland',
'Sumo' : 'Japan',
'Taekwondo' : 'South Korea'}

s = pd.Series(sports)

Now, at this point, if I type "s." I should see a list of _all_ available methods, correct?

Yet, the method I needed, "iloc()" was not shown.

I can still manually (given that I know the method name), type this in and it works:

print(s.iloc[3])

---

So, my question is, should PyCharm have given me the iloc() method/function in the list of available items when I typed "s.__" or is Python somehow a different thing where some methods are not discover-able or something else?

I've noticed this missing method "issue" (assuming it's a bug) in many places using PyCharm.

Look forward to anyone's thoughts on this.

Thanks,
This question would probably be better asked on the PyCharm support page: https://blog.jetbrains.com/pycharm/2015/...-solution/
(Dec-04-2017, 12:18 AM)Larz60+ Wrote: [ -> ]This question would probably be better asked on the PyCharm support page: https://blog.jetbrains.com/pycharm/2015/...-solution/

I turns out that iloc and loc are not actually methods, but instead (non-encapsulated) properties. Thus, whether PyCharm should show those is still a question, but I feel better that PyCharm is failing to show methods here.