Answer the question
In order to leave comments, you need to log in
How to work with pandas module?
I'm just getting acquainted, so the questions are stupid.
1) why .loc or .iloc and not .loc([]) or .iloc([]) ?
2) I accidentally wrote .loc[index], and got only the value (variable), without the index (I just find it similar to a dictionary)
so, is it just like that or in different tasks you sometimes need an index-value, and sometimes only a value?
Answer the question
In order to leave comments, you need to log in
because loc is not a function, but an object of the DataFrame class.
loc - presumably an array
iloc - an iterator
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question