import pandas as pdpd.set_option('display.max_rows', None)pd.set_option('display.max_columns', None)df = pd.read_csv('node_concat.csv')
Take three decimal places for the two columns of x and y
df = df.round({'y': 3, 'x':3})
Take three decimal places for the two columns of x and y
df = df.round({'y': 3, 'x':3})
Valid for data with a decimal point, take all data that satisfy the decimal point to three places
df = df.round(3)
Two decimal places for y
df['y'] = df['y'].apply(lambda x: format(x, '.2f'))