Reputation: 185
I recently worked on a pandas dataframe and I wanted to change the indexes just for fun. This is the code:
price_of_items = pd.DataFrame({
"Wired Keyboard":["$7","4.3","12000"],"Wireless Keyboard":["$13","4.6","14000"]})
pd.RangeIndex(price_of_items,start=0,end=4,step=2)
This is the output without the pd.RangeIndex class:
But when I use the pd.RangeIndex, it is showing me an error. Thanks for all the help!!
Upvotes: 1
Views: 252