workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
18
2019-03-22T10:48:26.376300
Juliana
pythondev_help_Juliana_2019-03-22T10:48:26.376300
1,553,251,706.3763
14,521
pythondev
help
never mind - I see what is happening
2019-03-22T10:48:31.376500
Clemmie
pythondev_help_Clemmie_2019-03-22T10:48:31.376500
1,553,251,711.3765
14,522
pythondev
help
I think
2019-03-22T10:48:37.376700
Clemmie
pythondev_help_Clemmie_2019-03-22T10:48:37.376700
1,553,251,717.3767
14,523
pythondev
help
are you still calling `even_teams` twice in `main` (once naked, and once inside a `print` statement)?
2019-03-22T10:49:20.376900
Clemmie
pythondev_help_Clemmie_2019-03-22T10:49:20.376900
1,553,251,760.3769
14,524
pythondev
help
None
2019-03-22T10:50:30.377100
Juliana
pythondev_help_Juliana_2019-03-22T10:50:30.377100
1,553,251,830.3771
14,525
pythondev
help
hmmm
2019-03-22T10:51:27.377900
Juliana
pythondev_help_Juliana_2019-03-22T10:51:27.377900
1,553,251,887.3779
14,526
pythondev
help
Yeah, so you need to be careful calling methods multiple times. dicts are mutable, and like I said earlier son’t _have_ to be returned, so you are adding players to the rosters twice, once with each method call
2019-03-22T10:51:44.378100
Clemmie
pythondev_help_Clemmie_2019-03-22T10:51:44.378100
1,553,251,904.3781
14,527
pythondev
help
you need to capture the return of the method call the first time in a var (`teams_with_player_rosters` can be reused) and print that
2019-03-22T10:52:19.378300
Clemmie
pythondev_help_Clemmie_2019-03-22T10:52:19.378300
1,553,251,939.3783
14,528
pythondev
help
Still with me?
2019-03-22T10:56:03.378500
Clemmie
pythondev_help_Clemmie_2019-03-22T10:56:03.378500
1,553,252,163.3785
14,529
pythondev
help
nope haha im trying to figure it out
2019-03-22T10:56:21.378700
Juliana
pythondev_help_Juliana_2019-03-22T10:56:21.378700
1,553,252,181.3787
14,530
pythondev
help
k
2019-03-22T10:56:26.378900
Clemmie
pythondev_help_Clemmie_2019-03-22T10:56:26.378900
1,553,252,186.3789
14,531
pythondev
help
Understanding it, or getting it to work?
2019-03-22T10:57:03.379100
Clemmie
pythondev_help_Clemmie_2019-03-22T10:57:03.379100
1,553,252,223.3791
14,532
pythondev
help
both
2019-03-22T10:57:14.379300
Juliana
pythondev_help_Juliana_2019-03-22T10:57:14.379300
1,553,252,234.3793
14,533
pythondev
help
like what part are you looking at when saying that in the dunder main?
2019-03-22T10:57:41.379500
Juliana
pythondev_help_Juliana_2019-03-22T10:57:41.379500
1,553,252,261.3795
14,534
pythondev
help
in snippet that you posted you call `even_teams()` in lines 97 and 100
2019-03-22T10:58:22.379800
Clemmie
pythondev_help_Clemmie_2019-03-22T10:58:22.379800
1,553,252,302.3798
14,535
pythondev
help
that causes the rosters to be populated twice
2019-03-22T10:58:37.380000
Clemmie
pythondev_help_Clemmie_2019-03-22T10:58:37.380000
1,553,252,317.38
14,536
pythondev
help
but you are appending to lists, so it basically just duplicates the roster
2019-03-22T10:59:07.380200
Clemmie
pythondev_help_Clemmie_2019-03-22T10:59:07.380200
1,553,252,347.3802
14,537
pythondev
help
if instead you make line 97 do `teams_with_player_rosters = even_teams(teams_with_player_rosters, sorted_players)` then line 100 can be `print(teams_with_player_rosters)` and the duplication should go away
2019-03-22T11:00:04.380400
Clemmie
pythondev_help_Clemmie_2019-03-22T11:00:04.380400
1,553,252,404.3804
14,538
pythondev
help
I think you are not refering to the right line numbers so im posting the full app. so i need to change line 90 to that teams = and the line 91 i need to print <@Clemmie>
2019-03-22T11:02:04.380600
Juliana
pythondev_help_Juliana_2019-03-22T11:02:04.380600
1,553,252,524.3806
14,539
pythondev
help
line numbers changed from what you posted before, but yes, 90 and 91
2019-03-22T11:03:18.381000
Clemmie
pythondev_help_Clemmie_2019-03-22T11:03:18.381000
1,553,252,598.381
14,540
pythondev
help
what about line 89?
2019-03-22T11:03:39.381200
Juliana
pythondev_help_Juliana_2019-03-22T11:03:39.381200
1,553,252,619.3812
14,541
pythondev
help
well it worked!
2019-03-22T11:04:37.381400
Juliana
pythondev_help_Juliana_2019-03-22T11:04:37.381400
1,553,252,677.3814
14,542
pythondev
help
it is fine. You could do away with it by changing line 90 to `teams_with_player_rosters = even_teams(creating_teams_open_list() , sorted_players)1 if you wanted
2019-03-22T11:05:01.381600
Clemmie
pythondev_help_Clemmie_2019-03-22T11:05:01.381600
1,553,252,701.3816
14,543
pythondev
help
hang on one sec let me digest this and explain in english what is going on
2019-03-22T11:05:04.381800
Juliana
pythondev_help_Juliana_2019-03-22T11:05:04.381800
1,553,252,704.3818
14,544
pythondev
help
Great
2019-03-22T11:05:09.382000
Clemmie
pythondev_help_Clemmie_2019-03-22T11:05:09.382000
1,553,252,709.382
14,545
pythondev
help
exactly - don’t worry about the stuff in `main` just tell what `even_teams` is doing
2019-03-22T11:05:35.382300
Clemmie
pythondev_help_Clemmie_2019-03-22T11:05:35.382300
1,553,252,735.3823
14,546
pythondev
help
I don't know what pyspark is yet (Googling next), but you can do this in plain Python easily: ```&gt;&gt;&gt; [[x, x + 30] for x in range(0, 360, 30)] [[0, 30], [30, 60], [60, 90], [90, 120], [120, 150], [150, 180], [180, 210], [210, 240], [240, 270], [270, 300], [300, 330], [330, 360]]```
2019-03-22T11:12:35.385800
Melynda
pythondev_help_Melynda_2019-03-22T11:12:35.385800
1,553,253,155.3858
14,547
pythondev
help
Ok so <@Clemmie>, line 62 is taking the ` sorted_players ` from a previous function and is parsing through that list of ` sorted_players ` with ` enumerate() ` after that it is then assigning those players with a for loop into teams with open lists from ` teams_with_player_rosters `. It takes the number of teams and `appends ` the players name by grabbing it using the `get()` function.
2019-03-22T11:14:16.386900
Juliana
pythondev_help_Juliana_2019-03-22T11:14:16.386900
1,553,253,256.3869
14,548
pythondev
help
and how does it determine which team to put a player on?
2019-03-22T11:14:49.387700
Clemmie
pythondev_help_Clemmie_2019-03-22T11:14:49.387700
1,553,253,289.3877
14,549
pythondev
help
Although the one thing i feel like im not understanding completely is the use of the ` idx `
2019-03-22T11:15:15.388100
Juliana
pythondev_help_Juliana_2019-03-22T11:15:15.388100
1,553,253,315.3881
14,550
pythondev
help
I feel like i would be using that to answer the question but im not sure how that part fits in
2019-03-22T11:15:42.388900
Juliana
pythondev_help_Juliana_2019-03-22T11:15:42.388900
1,553,253,342.3889
14,551
pythondev
help
so `enumerate(&lt;list&gt;)` spits out a tuple for each iteration - the enumeration (position in the list) and the element from the list. so `idx` is the current position in the list (0,1,2,3,4….)
2019-03-22T11:16:28.389800
Clemmie
pythondev_help_Clemmie_2019-03-22T11:16:28.389800
1,553,253,388.3898
14,552
pythondev
help
If this helps, `idx` is an abbreviation of “index”
2019-03-22T11:21:57.390100
Mora
pythondev_help_Mora_2019-03-22T11:21:57.390100
1,553,253,717.3901
14,553
pythondev
help
^
2019-03-22T11:22:11.390300
Clemmie
pythondev_help_Clemmie_2019-03-22T11:22:11.390300
1,553,253,731.3903
14,554
pythondev
help
i know that lol but thanks
2019-03-22T11:22:18.390500
Juliana
pythondev_help_Juliana_2019-03-22T11:22:18.390500
1,553,253,738.3905
14,555
pythondev
help
i feel like all python is is ` if ` and ` for loops ` to get things you need to happen
2019-03-22T11:25:59.391400
Juliana
pythondev_help_Juliana_2019-03-22T11:25:59.391400
1,553,253,959.3914
14,556
pythondev
help
Is that a fair assumption?
2019-03-22T11:26:17.391700
Juliana
pythondev_help_Juliana_2019-03-22T11:26:17.391700
1,553,253,977.3917
14,557
pythondev
help
"Oh, my sweet summer child..."
2019-03-22T11:27:18.392200
Sasha
pythondev_help_Sasha_2019-03-22T11:27:18.392200
1,553,254,038.3922
14,558
pythondev
help
<@Juliana>....naaah bruh
2019-03-22T11:27:24.392400
Merilyn
pythondev_help_Merilyn_2019-03-22T11:27:24.392400
1,553,254,044.3924
14,559
pythondev
help
bruh or sister?? idk :smile:
2019-03-22T11:28:01.393500
Merilyn
pythondev_help_Merilyn_2019-03-22T11:28:01.393500
1,553,254,081.3935
14,560
pythondev
help
bruh :laughing:
2019-03-22T11:28:29.393900
Juliana
pythondev_help_Juliana_2019-03-22T11:28:29.393900
1,553,254,109.3939
14,561
pythondev
help
Wait for `dict.get`!
2019-03-22T11:28:31.394100
Chester
pythondev_help_Chester_2019-03-22T11:28:31.394100
1,553,254,111.3941
14,562
pythondev
help
<@Juliana> Still waiting on how the correct team gets selected….
2019-03-22T11:30:19.394500
Clemmie
pythondev_help_Clemmie_2019-03-22T11:30:19.394500
1,553,254,219.3945
14,563
pythondev
help
ok, hang on <@Clemmie>
2019-03-22T11:34:29.395200
Juliana
pythondev_help_Juliana_2019-03-22T11:34:29.395200
1,553,254,469.3952
14,564
pythondev
help
OOHHHH That part where it has the '%' it is a modulo operator and it is dealing out the players into the teams in the second line <@Clemmie>
2019-03-22T11:38:19.395500
Juliana
pythondev_help_Juliana_2019-03-22T11:38:19.395500
1,553,254,699.3955
14,565
pythondev
help
by using the number of teams that can change and it still work
2019-03-22T11:38:45.395800
Juliana
pythondev_help_Juliana_2019-03-22T11:38:45.395800
1,553,254,725.3958
14,566
pythondev
help
bingo
2019-03-22T11:38:45.396000
Clemmie
pythondev_help_Clemmie_2019-03-22T11:38:45.396000
1,553,254,725.396
14,567
pythondev
help
Looping over stuff, doing stuff based on conditions…
2019-03-22T11:39:08.396400
Melynda
pythondev_help_Melynda_2019-03-22T11:39:08.396400
1,553,254,748.3964
14,568
pythondev
help
very basic programming, IMO. very much like building a shed and expecting the same things to extrapolate to a two story house
2019-03-22T11:39:59.398100
Hiroko
pythondev_help_Hiroko_2019-03-22T11:39:59.398100
1,553,254,799.3981
14,569
pythondev
help
So much more of python comes from structuring code and object relations
2019-03-22T11:40:03.398300
Clemmie
pythondev_help_Clemmie_2019-03-22T11:40:03.398300
1,553,254,803.3983
14,570
pythondev
help
classes ...functions ...loops....if's.... methods...Attributes
2019-03-22T11:40:38.399700
Merilyn
pythondev_help_Merilyn_2019-03-22T11:40:38.399700
1,553,254,838.3997
14,571
pythondev
help
then you can get into mro, metaprogramming, dependency injection, monkey patching…..
2019-03-22T11:40:43.399900
Clemmie
pythondev_help_Clemmie_2019-03-22T11:40:43.399900
1,553,254,843.3999
14,572
pythondev
help
<@Juliana> I’m glad you got it working and seem to understand it. If you wanted to take the next step it would make great sense to go the OO route `League, Team, Player` classes etc.
2019-03-22T11:44:03.401500
Clemmie
pythondev_help_Clemmie_2019-03-22T11:44:03.401500
1,553,255,043.4015
14,573
pythondev
help
<@Hiroko> more like foundations – which works for sheds, houses, apartment buildings… you need to know and use the basics in all cases.
2019-03-22T11:58:21.403000
Melynda
pythondev_help_Melynda_2019-03-22T11:58:21.403000
1,553,255,901.403
14,574
pythondev
help
Right
2019-03-22T11:59:18.403400
Merilyn
pythondev_help_Merilyn_2019-03-22T11:59:18.403400
1,553,255,958.4034
14,575
pythondev
help
sure
2019-03-22T11:59:19.403700
Hiroko
pythondev_help_Hiroko_2019-03-22T11:59:19.403700
1,553,255,959.4037
14,576
pythondev
help
but &gt;i feel like all python is…
2019-03-22T11:59:31.404100
Hiroko
pythondev_help_Hiroko_2019-03-22T11:59:31.404100
1,553,255,971.4041
14,577
pythondev
help
I was basing my statement on the wording of the question
2019-03-22T11:59:52.404600
Hiroko
pythondev_help_Hiroko_2019-03-22T11:59:52.404600
1,553,255,992.4046
14,578
pythondev
help
Hi all, anyone in here have experience with Wagtail CMS that might be able to help answer this question: <https://www.reddit.com/r/djangolearning/comments/b46kqx/wagtail_site_structure_help_tags_specifically/> ?
2019-03-22T12:06:12.406000
Frankie
pythondev_help_Frankie_2019-03-22T12:06:12.406000
1,553,256,372.406
14,579
pythondev
help
I was looking for the Djangolearning channel but all I could find was django, which I will ask in also but figured I'd post in here just in case
2019-03-22T12:06:42.406700
Frankie
pythondev_help_Frankie_2019-03-22T12:06:42.406700
1,553,256,402.4067
14,580
pythondev
help
You people showing off building sheds and stuff and I'm over here struggling to build a dog house :slightly_smiling_face:
2019-03-22T12:06:51.406800
Marth
pythondev_help_Marth_2019-03-22T12:06:51.406800
1,553,256,411.4068
14,581
pythondev
help
lol
2019-03-22T12:07:30.407300
Bethany
pythondev_help_Bethany_2019-03-22T12:07:30.407300
1,553,256,450.4073
14,582
pythondev
help
:joy::joy:
2019-03-22T12:07:33.407500
Merilyn
pythondev_help_Merilyn_2019-03-22T12:07:33.407500
1,553,256,453.4075
14,583
pythondev
help
I think the dog ran away
2019-03-22T12:18:36.407800
Joette
pythondev_help_Joette_2019-03-22T12:18:36.407800
1,553,257,116.4078
14,584
pythondev
help
and I don't blame him one bit :smile:
2019-03-22T12:22:54.408200
Marth
pythondev_help_Marth_2019-03-22T12:22:54.408200
1,553,257,374.4082
14,585
pythondev
help
Hello
2019-03-22T12:36:51.408600
Lyn
pythondev_help_Lyn_2019-03-22T12:36:51.408600
1,553,258,211.4086
14,586
pythondev
help
Anyone has written unittests for django-channel?
2019-03-22T12:37:38.409300
Lyn
pythondev_help_Lyn_2019-03-22T12:37:38.409300
1,553,258,258.4093
14,587
pythondev
help
If you have a question, please just ask it. Please do not ask for topic experts; do not DM or ping random users. We cannot begin to answer a question until we actually get a question. <http://sol.gfxile.net/dontask.html|*Asking Questions*>
2019-03-22T12:39:07.409400
Leana
pythondev_help_Leana_2019-03-22T12:39:07.409400
1,553,258,347.4094
14,588
pythondev
help
Guys what is the name of algorithm that calculate some kind of score based on probability of B being similar to A?
2019-03-22T12:52:37.410800
Jolanda
pythondev_help_Jolanda_2019-03-22T12:52:37.410800
1,553,259,157.4108
14,589
pythondev
help
I want these score tho predict if B 0.9000 similar to A (Example)
2019-03-22T12:53:42.411800
Jolanda
pythondev_help_Jolanda_2019-03-22T12:53:42.411800
1,553,259,222.4118
14,590
pythondev
help
Edit Distance?
2019-03-22T12:54:15.412000
Clemmie
pythondev_help_Clemmie_2019-03-22T12:54:15.412000
1,553,259,255.412
14,591
pythondev
help
aka Levenshtein Distance
2019-03-22T12:54:31.412400
Clemmie
pythondev_help_Clemmie_2019-03-22T12:54:31.412400
1,553,259,271.4124
14,592
pythondev
help
What kind of thing are A and B?
2019-03-22T12:57:06.412800
Sasha
pythondev_help_Sasha_2019-03-22T12:57:06.412800
1,553,259,426.4128
14,593
pythondev
help
A and B have attributes like color, size, and shape so I would use these attributes to be able to predict how much % A and B are similar
2019-03-22T12:58:38.414200
Jolanda
pythondev_help_Jolanda_2019-03-22T12:58:38.414200
1,553,259,518.4142
14,594
pythondev
help
<@Clemmie> Isn't Edit Distance
2019-03-22T12:59:09.414800
Jolanda
pythondev_help_Jolanda_2019-03-22T12:59:09.414800
1,553,259,549.4148
14,595
pythondev
help
Do you know for sure there is an algorithm to do what you want?
2019-03-22T12:59:36.415400
Clemmie
pythondev_help_Clemmie_2019-03-22T12:59:36.415400
1,553,259,576.4154
14,596
pythondev
help
I read a post where a guy used ML to predict if a element is a nav or not, using a score
2019-03-22T13:00:58.416900
Jolanda
pythondev_help_Jolanda_2019-03-22T13:00:58.416900
1,553,259,658.4169
14,597
pythondev
help
Nav?
2019-03-22T13:01:29.417800
Ashley
pythondev_help_Ashley_2019-03-22T13:01:29.417800
1,553,259,689.4178
14,598
pythondev
help
They probably built an ML classifier - it generated the algorithm you are looking for
2019-03-22T13:01:44.418200
Clemmie
pythondev_help_Clemmie_2019-03-22T13:01:44.418200
1,553,259,704.4182
14,599
pythondev
help
with training sets
2019-03-22T13:01:53.418500
Clemmie
pythondev_help_Clemmie_2019-03-22T13:01:53.418500
1,553,259,713.4185
14,600
pythondev
help
and how they wanted the scoring mapping to look
2019-03-22T13:02:02.418800
Clemmie
pythondev_help_Clemmie_2019-03-22T13:02:02.418800
1,553,259,722.4188
14,601
pythondev
help
“similarity metric” might be what you’re looking for (metric there is in the math jargon sense, roughly speaking a “distance formula” but with more rigor)
2019-03-22T13:09:55.420100
Letty
pythondev_help_Letty_2019-03-22T13:09:55.420100
1,553,260,195.4201
14,602
pythondev
help
but misthop is right, the “algorithm” is going to be an ML model. Not as scary as it sounds, you could probably follow a `sklearn` tutorial and build a random-forrest classifier quickly (granted, without understanding what’s going on under the hood)
2019-03-22T13:10:59.421200
Letty
pythondev_help_Letty_2019-03-22T13:10:59.421200
1,553,260,259.4212
14,603
pythondev
help
if you’re trying to measure the distance between a set of attributes, that’s not ML.
2019-03-22T13:11:45.421900
Letty
pythondev_help_Letty_2019-03-22T13:11:45.421900
1,553,260,305.4219
14,604
pythondev
help
if you’re trying to _guess_ at the probability that some underlying item is similar, based on some known attributes. That’s ML.
2019-03-22T13:12:07.422600
Letty
pythondev_help_Letty_2019-03-22T13:12:07.422600
1,553,260,327.4226
14,605
pythondev
help
Exactly <@Clemmie> a Classifier, I have not any experience with ML or Sklearn, but I'll give a try. <@Letty> If a have a tree and a updated tree(the same tree with some changes) with Edit distance I could generate a third tree similar to the update tree using the first?
2019-03-22T13:15:31.425000
Jolanda
pythondev_help_Jolanda_2019-03-22T13:15:31.425000
1,553,260,531.425
14,606
pythondev
help
Anyway <@Clemmie> <@Letty> Thank you guys
2019-03-22T13:15:52.425500
Jolanda
pythondev_help_Jolanda_2019-03-22T13:15:52.425500
1,553,260,552.4255
14,607
pythondev
help
<@Letty> :taco:
2019-03-22T13:16:12.425900
Clemmie
pythondev_help_Clemmie_2019-03-22T13:16:12.425900
1,553,260,572.4259
14,608
pythondev
help
I’m not quite sure I follow. Edit distance is just going to be a number, telling you how far apart the trees are. What concrete problem are you actually trying to solve?
2019-03-22T13:19:09.426100
Letty
pythondev_help_Letty_2019-03-22T13:19:09.426100
1,553,260,749.4261
14,609
pythondev
help
This sounds much closer to tree-diffing and/or merging, like when you have two people make conflicting changes to a structured document, which can get complex. Stuff like this: <http://thume.ca/2017/06/17/tree-diffing/>
2019-03-22T13:20:18.426300
Letty
pythondev_help_Letty_2019-03-22T13:20:18.426300
1,553,260,818.4263
14,610
pythondev
help
is there a style guide i can use to figure out when to use *`"`* vs *`'`*?
2019-03-22T13:50:21.428300
Jorge
pythondev_help_Jorge_2019-03-22T13:50:21.428300
1,553,262,621.4283
14,611
pythondev
help
`pep8` or a linter
2019-03-22T13:51:09.429200
Clemmie
pythondev_help_Clemmie_2019-03-22T13:51:09.429200
1,553,262,669.4292
14,612
pythondev
help
the `black` linter for instance only allows `"`
2019-03-22T13:51:52.430000
Clemmie
pythondev_help_Clemmie_2019-03-22T13:51:52.430000
1,553,262,712.43
14,613
pythondev
help
i'm using flake8, but maybe i've got it misconfigured. its never once given me a notice about using single vs double quotes
2019-03-22T13:52:24.430700
Jorge
pythondev_help_Jorge_2019-03-22T13:52:24.430700
1,553,262,744.4307
14,614
pythondev
help
generally it won’t. i think pep8 has some suggestions, but overall it is opinion/preference
2019-03-22T13:52:56.431300
Clemmie
pythondev_help_Clemmie_2019-03-22T13:52:56.431300
1,553,262,776.4313
14,615
pythondev
help
just be consistent, really
2019-03-22T13:53:13.431600
Joette
pythondev_help_Joette_2019-03-22T13:53:13.431600
1,553,262,793.4316
14,616
pythondev
help
most people's preferences seem to be aesthetic
2019-03-22T13:53:31.432100
Joette
pythondev_help_Joette_2019-03-22T13:53:31.432100
1,553,262,811.4321
14,617
pythondev
help
I would use black if it supported single quotes
2019-03-22T13:53:45.432700
Jonas
pythondev_help_Jonas_2019-03-22T13:53:45.432700
1,553,262,825.4327
14,618
pythondev
help
Double quotes are... urgh
2019-03-22T13:53:59.433200
Jonas
pythondev_help_Jonas_2019-03-22T13:53:59.433200
1,553,262,839.4332
14,619
pythondev
help
I like `"` because I'm used to double quotes indicating strings and single quotes indicating individual characters
2019-03-22T13:54:04.433400
Joette
pythondev_help_Joette_2019-03-22T13:54:04.433400
1,553,262,844.4334
14,620