Concept Flow - flatten() and ravel() for 1D conversion
Start with 2D array
Choose method: flatten() or ravel()
flatten()
returns a copy→1D array copy
ravel()
returns a view if possible→1D array view or copy
Use 1D array for further processing
Start with a 2D array, then use flatten() to get a copy as 1D, or ravel() to get a view or copy as 1D, then use the 1D array.