Convert a DataFrame into an array or array to DataFrame
Jan 18, 2023
# DataFrame to array
ndarray = df.to_numpy()
# Converting an array to a DataFrame:
df = pd.DataFrame( X, columns = [‘col1’] )
# DataFrame to array
ndarray = df.to_numpy()
# Converting an array to a DataFrame:
df = pd.DataFrame( X, columns = [‘col1’] )
Women in AI: Agribusiness winner - 2022 Superstar of STEM 2022-2023 Scopus Sustainability Researcher of the Year - 2019