-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Memory consumption #53793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you share more about the structure of your loop? Does deleting Also, something else to note:
|
@psulski: Can you provide a fully reproducible example? We need an example |
The issue will be closed unless we get a reproducible example, sorry. |
Closing since there is no reproducible example. I also tried the code below - the memory usage when back down to its original level between iterations.
|
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Above lines consume memory and do not release memory even if I del lA, lB, df pattern, df_groupbyA and df_groupbyB
I call also gc.collect() after delete.
This lines work in loop.
df - are data from file.
I am reading a files one by one and i make some operation on data frame.
But after 3- 5 files RAM is over.
Expected Behavior
release ram.
Installed Versions
pandas : 1.5.0
numpy : 1.23.5
pytz : 2022.7
dateutil : 2.8.2
setuptools : 67.1.0
pip : 23.0
Cython : 0.29.32
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
brotli : None
fastparquet : None
fsspec : 2022.11.0
gcsfs : None
matplotlib : 3.6.3
numba : 0.56.4
numexpr : 2.8.4
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 9.0.0
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.10.0
snappy : None
sqlalchemy : None
tables : 3.8.0
tabulate : None
xarray : None
xlrd : None
xlwt : None
zstandard : None
tzdata : 2022.7
The text was updated successfully, but these errors were encountered: