Open bskinn opened 6 years ago
Changed to 'maybe' since it may or may not be general enough a need to be worth implementing here. May be sensible to leave most (all?) post-processing to the user.
OTOH, helper functions for very common situations would probably be appreciated.
E.g., upper- or lower-triangular matrices.
Find the max row width, then pad either side (
pad.extend(data)
ordata.extend(pad)
) with an appropriate fill value. Probably default to''
for any/str types, and to0
for numeric types, with afill_value=
argument available to override.More pythonic construction for right-pad is probably:
Mirror-image for left-pad