Python Forum
Research work - help with binary data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Research work - help with binary data
#1
Hello everyone,

I would like to use python to analyze this table (example). But I don't know which technique would be the best for my problem.

Each line corresponds to an observation (450 k lines). Each one has a date, a step, and one or two events (0=No, 1=Yes). I have 7 steps that repeat each year (like seasons) over 4 years, and 8 different events.

My problem : I would like to know a method to calculate the distribution/hierarcy of each event by steps, then per year.

I don't know how to do it. What kind of algorithms would be interesting?

My dependent variable would be "steps".

My independent variables are the events.

I hope to have been clear enough on my problem, it is for my research paper, thank you

Attached Files

Thumbnail(s)
   
Reply
#2
Not sure I fully understand where you are going (I would have thought the independent variable would be date, but looks like you are more interested in grouping). Recommend using Pandas, and recommend looking at the GroupBy series of functions. See HERE
Reply


Forum Jump:

User Panel Messages

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