« first day (1956 days earlier)      last day (1622 days later) » 

06:35
0
Q: Associative group in python

phoenixAfter preprocessing i have a final dataframe with columns 'timestamp', 'group', 'person1', 'person2'. I am trying to figure out how to code my requirement or want to know is it possible using python. What I am trying to extract is groups within each group. for example: in group G0, A is meeting w...

 
4 hours later…
10:33
1 message moved from Python
 
5 hours later…
user12867493
15:30
class Solution:
    def longestSubarray(self, nums: List[int]) -> int:
        if nums.count(1) == len(nums) and nums: return len(nums)-1
        count=0
        countBefore=0
        zeroRemoved=0
        for i in range (len(nums)):
            print(count)
            print('Zeros'+str(zeroRemoved))
            print('countBefore'+str(countBefore))
            if nums[i]==1:
                count+=1
            elif nums[i]==0 and count>=1:
                if zeroRemoved==0:
                    zeroRemoved=1
1 message moved from Python
 
7 hours later…
22:01
heyyyy
question: If kinda major website refuses/doesn't have in plans creating the API... can I just scrape the HELL out of them and create my own?!
or is this illegal?
cause I'm doing it and I'm drunk
4 messages moved from Python
For real, guys... It's a chat. If everyone was kicked out for not asking language-specific questions and/or writing statements - admins would be kicked out on a regular basis ;)
1 message moved from Python

« first day (1956 days earlier)      last day (1622 days later) »