python - Insert selected rows from one Sframe to another Sframe -


i aware of append() function append rows of 1 sframe another. want insert specific row 1 sframe anaother. there way pick 2nd row sframe1 , append sframe2?

structure of promocodes sheet: column 1:item_code column 2: item_name    import graphlab import pandas pd tc = graphlab.sframe('totalcodes.csv') pc = graphlab.sframe('promocodes.csv')  row in tc:   me = graphlab.sframe({'item_code': [row['item_code']],'item_name': [row['item_name']]})   pc = pc.append(me) 

i want pick single row tc , append pc

https://turi.com/products/create/docs/generated/graphlab.sframe.append.html

sf = graphlab.sframe({'id': [4, 6, 8], 'val': ['d', 'f', 'h']}) sf2 = graphlab.sframe({'id': [1, 2, 3], 'val': ['a', 'b', 'c']}) sf = sf.append(sf2) sf 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -