Jun-22-2021, 12:57 PM
(Jun-22-2021, 10:44 AM)snippsat Wrote: Something like this.
import pandas as pd items = pd.DataFrame([ ["Item Type","Item Name","Price AED"], ["laptops", "HP", 2400], ["laptops", "DELL", 3400], ["laptops", "ACER", 1400] ])>>> new_row = {0: '', 1: '', 2: ''} >>> df = items.append(new_row, ignore_index=True) >>> df 0 1 2 0 Item Type Item Name Price AED 1 laptops HP 2400 2 laptops DELL 3400 3 laptops ACER 1400 4
Thanks,
Is it possible not to show the row and column headings (0,1,2,3)?