Advertisement
Guest User

so-65572574-758174

a guest
Jan 4th, 2021
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.11 KB | None | 0 0
  1. vals = [
  2.     """[{"did":{"id":"1","num":1},"NId":"a1,b1,c1","Att":null,"isnull":false,"number":"M90",
  3.         "label":[{"title":"Dear","Info":{"Id":null,"id2":2,"Name":"x"}},{"title":"Dear",
  4.         "Info":{"Id":null,"id2":2,"Name":"x"}}],"codes":[],"rule":null},
  5.        {"did":{"id":"2","num":1},"NId":"a1,b1,c1","Att":null,"isnull":false,"number":"M90",
  6.         "label":[{"title":"Dear","Info":{"Id":null,"id2":2,"Name":"x"}},{"title":"Dear",
  7.         "Info":{"Id":null,"id2":2,"Name":"x"}}],"codes":[],"rule":null}
  8.       ]""",
  9.     """[{"did":{"id":"3","num":1},"NId":"a1,b1,c1","Att":null,"isnull":false,"number":"M90",
  10.         "label":[{"title":"Dear","Info":{"Id":null,"id2":2,"Name":"x"}},{"title":"Dear",
  11.         "Info":{"Id":null,"id2":2,"Name":"x"}}],"codes":[],"rule":null}
  12.       ]""",
  13. ]
  14.  
  15. df = pd.DataFrame(
  16.     [{
  17.         'id': 292,
  18.         'Number': 'C',
  19.         'Type': 1,
  20.         'Class': 2,
  21.         'Name': 'A',
  22.         'datiles': vals[0],
  23.     }, {
  24.         'id': 293,
  25.         'Number': 'C',
  26.         'Type': 1,
  27.         'Class': 2,
  28.         'Name': 'A',
  29.         'datiles': vals[1],
  30.     }])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement