codeant-ai-for-open-source[bot] commented on code in PR #45263:
URL: https://github.com/apache/superset/pull/45263#discussion_r4267620087


##########
superset/utils/pandas_postprocessing/flatten.py:
##########
@@ -101,5 +101,6 @@ def flatten(
         df.columns = _columns
 
     if reset_index and not isinstance(df.index, pd.RangeIndex):
-        df = df.reset_index(level=0)
+        # every level of a MultiIndex, e.g. a pivot with several index columns
+        df = df.reset_index()

Review Comment:
   ✅ **Customized review instruction saved!**
   
   **Instruction:**
   > Do not flag `reset_index()` name-collision failures in `flatten`; level-0 
collisions already had this behavior, and extending the reset to all levels is 
intentional in this change.
   
   **Applied to:**
     - `superset/utils/pandas_postprocessing/flatten.py`
   
   ---
   💡 *To manage or update this instruction, visit: [CodeAnt AI 
Settings](https://app.codeant.ai/org/settings/learnings)*



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to