when using polars.dataframe, it sometimes displays dots instead of actual datas. i dont know what im missing.(have no problem when using pandas). can can you tell me what i should do?
import polars as pl
import pandas as pd
class new:
xyxy = '124'
a = [[[0.45372647047042847, 0.7791867852210999, 0.05796612799167633,
0.08813457936048508, 0.9122178554534912, 0, 'corn'],
[0.5337053537368774, 0.605276882648468, 0.043029140681028366, 0.06894499808549881,
0.8814031481742859, 0, 'corn'],
[0.47244399785995483, 0.5134297609329224, 0.03258286789059639, 0.054770857095718384,
0.8650641441345215, 0, 'corn'],
[0.4817340672016144, 0.42551395297050476, 0.02438574656844139, 0.04052922874689102,
0.8646907806396484, 0, 'corn'],
[0.5215370059013367, 0.4616119861602783, 0.027680961415171623, 0.04423023760318756,
0.8433780670166016, 0, 'corn'],
[0.5168840885162354, 0.4077163636684418, 0.021290680393576622, 0.034322340041399,
0.8073480129241943, 0, 'corn'],
[0.4868599772453308, 0.3901885747909546, 0.01746474765241146, 0.02876533754169941,
0.631712794303894, 0, 'corn'],
[0.5133631825447083, 0.3870452046394348, 0.014495659619569778, 0.02186509035527706,
0.6174931526184082, 0, 'corn'],
[0.5155017375946045, 0.3974197208881378, 0.01627129688858986, 0.03393130749464035,
0.4413506090641022, 0, 'corn']]]
ca = 'xmin', 'ymin', 'xmax', 'ymax', 'confidence', 'class', 'name' # xyxy columns
cb = 'xcenter', 'ycenter', 'width', 'height', 'confidence', 'class', 'name' # xywh
columns
for k, c in zip(['xyxy', 'xyxyn', 'xywh', 'xywhn'], [ca, ca, cb,
cb]):
setattr(new, k, [pl.DataFrame(x, columns=c, orient="row") for x in a])
#setattr(new, k, [pd.DataFrame(x, columns=c, orient="row") for x in a])
print (new.xyxy[0])