Answers for "python numpy array to pandas series"

0

python numpy array to pandas series

import numpy as np
import pandas as pd

np_array = np.array([10, 20, 30, 40, 50])

new_series = pd.Series(np_array)

print("Converted Pandas series: ", new_series)
# Output:
Converted Pandas series:
0    10
1    20
2    30
3    40
4    50
Posted by: Guest on August-24-2021

Code answers related to "python numpy array to pandas series"

Python Answers by Framework

Browse Popular Code Answers by Language