Python Forum

Full Version: loc / iloc / ix used with () or []
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.