# Convert a NumPy array into a csv file in Python # import necessary librariesimport pandas as pdimport numpy as np  # create a dummy arrayarr = np.arange(1,11).reshape(2,5)  # display the arrayprint(arr)  # convert array into dataframeDF = pd.DataFrame(arr)  # save the dataframe as a csv fileDF.to_csv("data1.csv")