SHARE
TWEET

Untitled

a guest Jun 18th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. vals = [[1,2,3],[4,5,6]]
  2. column_nms = ["col1", "col2", "col3"]
  3.  
  4. pd.DataFrame(vals, columns=column_nms)
  5.      
  6. col1    col2    col3
  7. 0   1       2       3
  8. 1   4       5       6
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top