Due to the recent use of 32-bit system, there are various problems in installing and running python
Most of the answers to this question on the Internet are: Python 32bit can only use 2G of memory at most. If it exceeds 2G, it will report an error memorierror. The solution is to use 64bit python
The situation I face is that the operating system cannot be replaced, so I can only explore the solution by myself
First, I checked that the amount of data is not small, but there should be no problem running
The sentence I reported wrong is
1 df_group = df.groupby(['col_name1','col_name1']).apply(def_name)
It is speculated that the memory occupied by the apply method is too large
solution
The problem is solved by using the for loop statement and splicing dataframe data with the merge or concat method, but the running speed is slow and the code is redundant
No better way has been found
Similar Posts:
- [Solved] Error running ‘index’: Cannot run program “C:\Users\testgu\AppData\Local\Programs\Python\Python39\python.exe” (in directory “D:\PYWorkspace\ycyzharry”): CreateProcess error=2, the system cannot find the specified file.
- How to Solve Error Permission denied when running brew cleanup
- Eclipse prompts that unhandled event loop exception is stuck
- Flink Project Start Error: java.lang.OutOfMemoryError: unable to create new native thread [How to Solve]
- [Solved] Hive export MYSQL Error: Container [pid=3962,containerID=container_1632883011739_0002_01_000002] is running 270113280B beyond the ‘VIRTUAL’ memory limit.
- tensorboard [Fatal error in launcher: Unable to create process using]
- Message: failed to decode response from marionette
- tf.data.Dataset.from_tensor_slices: How to Use shuffle(), repeat(), batch()
- org.apache.http.ConnectionClosedException: Premature end of Content-Length delimited message body