I am aware of append() function to append all rows of one SFrame to another. But I want to insert a specific row from one SFrame to anaother. Is there a way to pick say only 2nd row from Sframe1 and append it to SFrame2?
Structure of Promocodes sheet:
Column 1:Item_Code
Column 2: Item_Name
import graphlab
import pandas as pd
tc = graphlab.SFrame('Totalcodes.csv')
pc = graphlab.SFrame('Promocodes.csv')
for row in tc:
me = graphlab.SFrame({'Item_Code': [row['Item_Code']],'Item_Name': [row['Item_Name']]})
pc = pc.append(me)
I want to pick single row from tc and append it to pc
https://turi.com/products/create/docs/generated/graphlab.SFrame.append.html