We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b89ffb3 commit bce5ab1Copy full SHA for bce5ab1
pandas/core/algorithms.py
@@ -918,7 +918,11 @@ def value_counts_internal(
918
result = result / counts.sum()
919
elif normalize == "keep":
920
# Add normlized values to counts.
921
- result = result.astype(str)+'('+(result/counts.sum()).apply(lambda x: round(x, 6)).astype(str)+')'
+ result = result.astype(str) + "(" + (
922
+ (result / counts.sum()).apply(lambda x: round(x, 6))
923
+ .astype(str)
924
+ ) + ")"
925
+
926
return result
927
928
# Called once from SparseArray, otherwise could be private
0 commit comments