Python Forum
loc / iloc / ix used with () or []
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
loc / iloc / ix used with () or []
#1
Hello all

I was wondering if anyone knew whether there was ever a case where if your using a data frame and are using either:-
1) loc
2) iloc
3) ix

Would you use them in round brackets () or are they ALWAYS used with square brackets []?

Just from playing about with them i would say that they are always used with square brackets but i wanted the communities input.

Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  printing maxd = sr.iloc[:1, 1:2] gehrenfeld 3 2,247 Feb-04-2019, 12:28 PM
Last Post: gehrenfeld

Forum Jump:

User Panel Messages

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