Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Display precision doesn't affect complex float numbers #25514
import numpy as np import pandas as pd pd.set_option("display.precision", 3) A = np.random.rand(3,3) df_A = pd.DataFrame(A) B = np.random.rand(3,3)+1j*np.random.rand(3,3) df_B = pd.DataFrame(B) print(df_A) print(df_B)
Display precision (
I'm relatively new to the project but here is what I found:
I think this would be perfectly fine, after all the complex numbers is still a float (in this case) and when you have the dot zero format you immediately know that it is a float and not an integer complex number. Its the same reason why you have the dot zero format for plain float numbers.