Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clusters
#1
Hello, please can you help me with creating clusters. I have one column x with number(1,2,6,8,4,7,5,9,8,2,4,9,3). I would like to create three clusters (0-3,4-6,7-9). Can you help me. How can I create these clusters in python. And i would like to create new column with these clusters.

for example

x y
1 0-3
2 0-3
6 4-6


Thank you so much for yours answers.
Reply


Messages In This Thread
Clusters - by dawid294 - Sep-17-2020, 06:37 AM
RE: Clusters - by Larz60+ - Sep-17-2020, 08:29 AM
RE: Clusters - by dawid294 - Sep-17-2020, 09:01 AM
RE: Clusters - by ndc85430 - Sep-17-2020, 10:32 AM
RE: Clusters - by dawid294 - Sep-17-2020, 11:29 AM
RE: Clusters - by ndc85430 - Sep-17-2020, 12:53 PM
RE: Clusters - by Larz60+ - Sep-17-2020, 02:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  seeking simple|clean|pythonic way to capture {1,} numeric clusters NetPCDoc 6 3,337 Jun-10-2021, 05:14 PM
Last Post: NetPCDoc
  Exotic stats problem ; mode, fuzzy clusters, etc amyvaulhausen 5 4,055 Aug-06-2018, 04:10 PM
Last Post: Vysero

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020