Quantcast
Channel: Active questions tagged row - Stack Overflow
Viewing all articles
Browse latest Browse all 447

Difference between using iloc[-1] versus last_valid_index() to access the last row of a df

$
0
0

tried some simple tests and it seems to me they produce the same value, so what is the difference between the two, if any?

Tried .loc[].last_valid_index and also df[].iloc[-1]


Viewing all articles
Browse latest Browse all 447

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>