Convert a NumPy array to a Pandas series Last Updated : 18 Aug, 2020 Improve Improve Like Article Like Save Share Report Let us see how to convert a NumPy array to a Pandas series. A NumPy array can be converted into a Pandas series by passing it in the pandas.Series() function. Example 1 : # importing the modules import numpy as np import pandas as pd # creating an NumPy array array = np.array([10, 20, 1, 2, 3, 4, 5, 6, 7]) # displaying the NumPy array print("Numpy array is :") display(array) # converting the NumPy array # to a Pandas series series = pd.Series(array) # displaying the Pandas series print("Pandas Series : ") display(series) Output : Example 2 : # importing the modules import numpy as np import pandas as pd # creating an NumPy array array = np.random.rand(5) # displaying the NumPy array print("Numpy array is :") display(array) # converting the NumPy array # to a Pandas series series = pd.Series(array) # displaying the Pandas series print("Pandas Series : ") display(series) Output : Like Article Suggest improvement Previous Python | Pandas series.cumprod() to find Cumulative product of a Series Next Plot Candlestick Chart using mplfinance module in Python Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads Add a Pandas series to another Pandas series Pandas Series dt.weekofyear Method | Get Week of Year in Pandas Series Pandas Series dt.minute | Extract Minute from DateTime Series in Pandas Pandas Series dt.dayofweek | Get Day of Week from DateTime Series in Pandas Pandas Series dt.freq | Retrieve Frequency of Pandas Time Series Pandas Series dt.daysinmonth | Get Number of Days in Month in Pandas Series Pandas Series dt.normalize() | Normalize Time in Pandas Series Python | Pandas Series.astype() to convert Data type of series Convert a series of date strings to a time series in Pandas Dataframe Convert Series of lists to one Series in Pandas Like A Akashkumar17 Follow Article Tags : Python pandas-series Python-pandas Python Practice Tags : python