Python Forum
Big chunck of memory using pandas loc
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Big chunck of memory using pandas loc
#1
Hi All,

I created a script to save information from internet into pandas dataframe and later I save it in CSV file.

First I create an empty pd using :
result = pd.DataFrame(index = df_CSV['Ticker'], columns = keyStatistics)
later in the code, I start to modify each element inside a loop using
result.loc[ticker,keyStatistics[i]]= td.string
I noticed that the program is taking more than 1G in memory and keep increasing with time.

is there any memory leaks inside the panda loc method?
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020