mmyjh86

[러닝-인강] dictionary to dataframe

Oct 9th, 2020
764
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from pandas import DataFrame
  2.  
  3. data = [
  4.         {"A": 10, "B": 100},
  5.         {"A": 20, "B": 200},
  6.         {"A": 30, "B": 300}
  7. ]
  8.  
  9. df = DataFrame(data)
  10. print(df)
RAW Paste Data