Learning to do a Group By on a csv with Python Using Cubode - Group By Mean Template

preview_player
Показать описание
How to do a group by on a csv in phython quickly, learning with implementable templates using Cubode.
Рекомендации по теме
Комментарии
Автор

Hello Sir,

Pls I have a question that has been bugging me for a while now.

How do I group different dataframes that have almost similar data together.

For example: first_data = pd.Series([0.884375, 0.0618056, 0.0203125, 0.0236111])
second_data = pd.Series([0.897266, 0.0729167, 0.0257812, 0.0291667])

The 2 values are actually co-ordinates from a yolov7 model that descibes the movement of an object (the same object).

I am just curious as to how I could use pandas to group the two co-ordinates as the same. They have almost similar numbers with a tolerance of +0.01.

Pls how do I use pandas to group these dataframes as the same.

Thank you and hope to hear from you soon

mosesdaudu