Computer Science, asked by kdev1517, 1 month ago

Write the statement to rename the Series MTseries as SeriesEmpty

Answers

Answered by saransrini03
0

import pandas as pd

 

# Creating the Series

sr = pd.Series([10, 25, 3, 11, 24, 6])

 

# Create the Index

index_ = ['Coca Cola', 'Sprite', 'Coke', 'Fanta', 'Dew', 'ThumbsUp']

 

# set the index

sr.index = index_

 

# Print the series

print(sr)

Similar questions