Hi Team ,
a="$2.39"
print(a[1:-1])
Output - 2.3
Now
import pandas as pd
rest_data = pd.read_table("rest_data.tsv.txt", sep = '\t')
for i in rest_data["item_price"]:
print(i[1:-1])
Output- 2.39
Question is in slicing operation only. I have applied the same slicing in both the case but the result varies. Can you explain why?