Python Forum
PyCharm IDE: Method Not Showing Up Question: Bug or Feature?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyCharm IDE: Method Not Showing Up Question: Bug or Feature?
#1
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,
Reply
#2
This question would probably be better asked on the PyCharm support page: https://blog.jetbrains.com/pycharm/2015/...-solution/
Reply
#3
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pd.query method question PolskaYBZ 5 3,087 Jan-25-2019, 08:23 PM
Last Post: stullis
  Apply Method Question smw10c 4 5,545 Apr-08-2017, 12:47 PM
Last Post: smw10c
  value_counts method question smw10c 4 4,850 Mar-22-2017, 10:59 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020