r/IPython • • Feb 21 '23
print function being too verbal
Hi, I'm a new python/Jupyter user. I have the following code in a cell: print(round(unkConc, 2), 'ppm Fe.') Instead of getting '1.44 ppm Fe' as I intend, I get: 0 1.44 Name: unkInt, dtype: float64 ppm Fe.
I've scoured web resources for clues to fix this, but I'm hitting a dead end. I'd appreciate any suggestions. Thank you.
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Feb 22 '23
I like this solution since I can leave off the index after the attribute. Feels more like R. Thanks.