I'm new to numpy and trying to flatten a 1000,1000 array created from a pandas dataframe. the code i've used is:
lidor_array=lidor_df.values
print(lidor_array.shape)
lidor_array.flatten()
print(lidor_array.shape)
the shapes are output as (1000,1000) for both the pre and post flattened array. what am i missing?
many thanks for your help
what am i missing?" - Not assigning back.