Loc indexer can return a series or a data frame depending on arguments

.loc returning Series or DataFrames depending on selection

0 0 vote
Article Rating

Leave a Reply

1 Comment
Inline Feedbacks
View all comments
doug seaman
1 month ago

I’m currently working through some Pandas tutorials and was wondering what is the benefit of returning a series rather than a dataframe?

Would love your thoughts, please comment.x