<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote><div><br></div><div>Stephan Hoyer wrote:</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
On Tue, Jul 17, 2018 at 3:47 PM Matthew Rocklin <<a href="mailto:mrocklin@gmail.com">mrocklin@gmail.com</a>> wrote:<br>
<br>
> Has Pandas ever done a user survey?<br>
><br>
> I would be curious to know the answer to the question "do you make heavy<br>
> use of the Pandas index" among users, and how that correlates with<br>
> different domain/industry.<br>
><br>
<br>
This is a great question. I don't think we've ever done this sort of<br>
reserach.<br>
<br>
My suspicion is that most of the time users ignore the index, and find the<br>
way it is used heavily in pandas more annoying than helpful. But certainly<br>
there are some use-cases for which automatic alignment with an index is<br>
fantastic.<br></blockquote><div><br></div><div>For our team, we heavily use the MultiIndex capability for rows (but not columns). Our main use of pandas is to read in data from disparate data sources, and do data wrangling to reshape the data.  We do lots of joins/merges of different DataFrames, and placing the keys in a MultiIndex makes it easier to track the join operations.</div><div><br></div><div>From our perspective, the MultiIndex on rows is akin to the primary keys of a data table. As we explore data, being able to slice the data along various dimensions is quite valuable.  It is also quite natural that a groupby() operation returns a Series or DataFrame with a MultiIndex.</div><div><br></div><div>What I find a bit frustrating is the lack of symmetry in the API between dealing with the names of a MultiIndex and the names of a column.  It's why I created this pull request (<a href="https://github.com/pandas-dev/pandas/pull/20046">https://github.com/pandas-dev/pandas/pull/20046</a>  [ENH: Allow rename_axis to specify index and columns arguments]) and opened this issue <a href="https://github.com/pandas-dev/pandas/issues/20421">https://github.com/pandas-dev/pandas/issues/20421</a> [API: Allow MultiIndex.rename() to accept a dict as an argument]</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div>Dr-Irv</div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div></div>