bluethundr12

Untitled

May 31st, 2020
41
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. code
  2. ----
  3.  
  4. # Create the memory dataframe
  5. memory_df = pd.DataFrame()
  6. memory_df.astype('int32').dtypes
  7. temp_df = pd.DataFrame()
  8. temp_df.astype('int32').dtypes
  9. print(f"Reading text files into the Memory DF")
  10. for filename in filelist:
  11. print(f"Adding filename: {filename}")
  12. filename = text_path + filename
  13. temp_df = pd.read_csv(filename, delim_whitespace=True, header=None)
  14. temp_df.columns = ['Memory']
  15. temp_df.astype('int32').dtypes
  16. memory_df = memory_df.append(temp_df)
  17. memory_df.columns = ['Memory']
  18.  
  19.  
  20. ---
  21. output
  22. ---
  23.  
  24. ***Memory Data Frame:
  25. Memory
  26. 0 1843260
  27. 0 7706164
  28. 0 7904828
  29. 0 7706164
  30. 0 7706172
  31. 0 7648524
  32. 0 7648524
  33. 0 7706172
  34. 0 7706164
  35. 0 7904828
  36. 0 7706172
  37. 0 7648524
  38. 0 7706172
  39. 0 16075888
  40. 0 7904672
  41. 0 7904680
  42. 0 7904672
  43. 0 7904680
  44. 0 16075880
  45. 0 7904672
  46. ***
RAW Paste Data