A
A
Anton Toropov2021-04-20 10:58:01
Python
Anton Toropov, 2021-04-20 10:58:01

How to turn off unnecessary information in the output in PyCharm?

Hello! Tell me how to disable unnecessary information in the PyCharm settings when outputting via print to the console in python?

0 14586.0
dtype: float64

This is what is output, but only the number 14586.0 should be output, without its type and zero in front of it(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Tikhonov, 2021-04-20
@tumbler

you have a piece of numpy displayed, its representation looks something like this

D
Defyx1, 2022-04-13
@Defyx1

I do not know how to do this in the settings, but I can offer another option.
print(x[0]), if you put [0] after what you need to print, it will be output without extra information

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question