Skip to content

To write a Python program to convert a NumPy array and series to dataframe.

Notifications You must be signed in to change notification settings

DeepikaA2004/NUMPY_ARRAY_INTO-PANDAS_DATAFRAME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

NUMPY_ARRAY_INTO-PANDAS_DATAFRAME

To write a Python program to convert a NumPy array and series to a data frame.

ALGORITHM

STEP 1:Import the NumPy and Pandas libraries.

STEP 2:Using the NumPy library generates the array of the required size.

STEP 3:Print the random array generated by the NumPy library.

STEP 4:Convert the array to a data frame using the Pandas library pd.DataFrame(array,column heads)

STEP 5:Print the data frame generated from the array.

STEP 6:Convert the array to series using the pandas library pd.Series(array), then convert it into the data frame using pd.DataFrame(series,columns head)

STEP 7:Print the data frame generated from the series.

About

To write a Python program to convert a NumPy array and series to dataframe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages