daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Jun 21st, 2018 102 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. Name,ICO,Max,USD_ROI
  2. Bitcoin,0.0,19535.7,N/A
  3. Ethereum,0.0,1389.18,N/A
  4. Ripple,0.0,3.6491,N/A
  5. Bitcoin Cash,0.0,4091.7,N/A
  6. EOS,0.99,21.4637,2068.05%
  7.    
  8. BTC_ROI,ETH_ROI
  9. N/A,N/A
  10. N/A,N/A
  11. N/A,N/A
  12. N/A,N/A
  13. N/A,N/A
  14. -260.77%,-130.75%
  15.    
  16. import pandas as pd
  17.  
  18. f = open("pt1.txt","w+")
  19. df = pd.read_csv("pt2.txt")
  20. f.write(df["BTC_ROI"])
  21. f.write(df["ETH_ROI"])
  22.    
  23. TypeError: write() argument must be str, not Series
  24.    
  25. Name,ICO,Max,USD_ROI,BTC_ROI,ETH_ROI
  26. Bitcoin,0.0,19535.7,N/A,N/A,N/A
  27. Ethereum,0.0,1389.18,N/A,N/A,N/A
  28. Ripple,0.0,3.6491,N/A,N/A,N/A
  29. Bitcoin Cash,0.0,4091.7,N/A,N/A,N/A
  30. EOS,0.99,21.4637,2068.05%,-260.77%,-130.75%
  31.    
  32. df1 = pd.read_csv('pt1.txt')
  33. df2 = pd.read_csv('pt2.txt')
  34.  
  35. (pd.concat([df1, df2], axis=1, ignore_index=True)
  36.   .to_csv('pt2.txt', index=False, na_rep='N/A')
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
 
Top