We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c39163 commit 5a1bb27Copy full SHA for 5a1bb27
pandas/core/common.py
@@ -595,6 +595,8 @@ def _make_int_format(x):
595
return _make_int_format(s)
596
else:
597
if na_rep is not None and lib.checknull(s):
598
+ if s is None:
599
+ return 'None'
600
return na_rep
601
602
# object dtype
scripts/roll_median_leak.py
@@ -15,11 +15,10 @@
15
proc = psutil.Process(pid)
16
17
lst = SparseList()
18
-lst.append([5] * 5)
+lst.append([5] * 10000)
19
lst.append(np.repeat(np.nan, 1000000))
20
21
-sdf = SparseDataFrame({'A' : lst.to_array()})
22
-
23
for _ in xrange(10000):
24
print proc.get_memory_info()
+ sdf = SparseDataFrame({'A' : lst.to_array()})
25
chunk = sdf[sdf['A'] == 5]
0 commit comments