CLN: Change implementation of maybe_make_list #44071
Labels
Clean
Duplicate Report
Duplicate issue or pull request
Internals
Related to non-user accessible pandas implementation
Master Tracker
High level tracker for similar issues
Ref: #41022 (comment)
Currently, the implementation is
pandas/pandas/core/common.py
Lines 278 to 281 in 40274ac
This means that any list-like that is not a tuple nor list will be packed as a single element list, which is likely undesirable. For example,
pd.crosstab
works with ndarrays/Series but not lists/tuples for this reason (issue to come). I propose to change this method to:I plan update this issue, listing out each part of the code that calls this function and what actions to take.
The text was updated successfully, but these errors were encountered: