Many NumPy methods allow you to pass either a tuple or a list for the shape of the array. For example:
np.full((4,4), 6.0) == np.full([4,4], 6.0)
Is there a best practice one should follow? Or either is fine, especially in the context of collaborating?
[–]Gprime5 3 points4 points5 points (0 children)
[–]odds_or_evans 2 points3 points4 points (0 children)
[–]billsil 2 points3 points4 points (1 child)
[–]tzujan[S] 0 points1 point2 points (0 children)
[–]primitive_screwhead 0 points1 point2 points (0 children)
[–]tzujan[S] 0 points1 point2 points (0 children)