Logo

DSC 10 Discussion 01 (10.6.20) - Shared screen with speaker view
Kaitlyn Chan
10:48
yes
Anya Chandorkar
10:50
yes
Noah Simpson
10:51
yep
Vedan Desai
10:53
Yes
Noah Simpson
12:11
these notebooks stay up on the website until the end of the course right?
Noah Simpson
12:17
for sure
Erik Pak
12:29
Heat vs Lakers :D
Varun Dinesh
12:36
Heat with the dub
Erik Pak
12:41
^
CHANINDER RISHI
12:43
Lakers n 6
Raghav Pant
12:50
Clippers in 4
Erik Pak
12:53
bbru
Jad Makki
12:58
Lakers in 5 fam come on now
Michael Garcia-perez
13:01
Jimmy getting mvp
CHANINDER RISHI
13:32
lmao
Anya Chandorkar
24:32
Do we use lists or arrays more often
Raghav Pant
24:36
Arrays
Raghav Pant
24:40
Lists are slow.
Wu, Aleck
24:48
numpy arrays are fastest
Anya Chandorkar
24:58
Okay thanks!
Raghav Pant
25:01
Arrays also have more functionality, allowing you to make things like matrices and stuff. They're really cool!
Luke Taylor
26:40
Puts my linear algebra to use 0_0
Wu, Aleck
33:00
isn't that bad practice?
Raghav Pant
35:00
Would it be better to return and then print the function separately?
Michael Garcia-perez
36:49
A = 1/2 bh?
Chung Pan
36:50
1/2 bh
Chung Pan
36:52
huh
Wu, Aleck
36:52
bh/2
Kevin Wong
36:58
wait can I just paste my answer?
ELAINE CAI
37:02
multiply them and then divide by 2, put all of it in a sum function then divide by 5
Raghav Pant
37:06
^
Chung Pan
37:24
base height /2
Spencer Wueste
37:39
you can also do the len of either base or height instead of 5
ELAINE CAI
37:48
oh right
Noah Simpson
38:15
I took the mean manually, need to look at numpy operators more
Raghav Pant
38:21
How is your * in the middle of the line and not at the top?
Raghav Pant
38:28
Is that a Mac thing?
Olivia Yang
38:34
do we just look up the documentation of NumPy to find the functions it has? or do we have a resource given to us with this info
Noah Simpson
38:48
you can press tab for the list
Kevin Wong
38:52
There's a reference page
Luke Taylor
38:59
I think thats a Jupiter thing raghab
Luke Taylor
39:03
raghav
CHANINDER RISHI
39:11
Are we supposed to be filling this out on Jupiter? Or can we just follow along?
Raghav Pant
39:16
On Win, mine is at the top on the Jupyter, darn.
Luke Taylor
39:30
I guess its Mac then
Luke Taylor
39:31
weird
Raghav Pant
39:35
https://numpy.org/doc/stable/numpy-ref.pdfI use this for the ref sheet.
Raghav Pant
39:44
It's a little long, but Ctrl + F works wonders.
Olivia Yang
40:05
ok, thx!
Luke Taylor
40:15
Wow that is a long reference sheet
Raghav Pant
40:23
Yeah....
Chung Pan
40:30
I like your menu bar lol. what is that plugin?
CHANINDER RISHI
40:34
Word ok thx
Chung Pan
41:00
yea
Raghav Pant
41:15
I think that's just the bookmarked tabs.
Luke Taylor
41:17
oh yeah I noticed that
Wu, Aleck
41:53
this discussion notebook isn't homework, right?
Noah Simpson
42:03
no
Chung Pan
43:03
is it the right time to ask the hw questions yet ?
RIYA MHATRE
45:18
np.arange(0,55,5)
Alexander Jensen
45:28
np.arange(0,51,5)
Sruthi Papanasa
45:29
np.arange(0,51,5)
Alexander Jensen
46:08
you could even go np.arange(0,11) * 5
Vedan Desai
46:48
`2**np.arange (2, 7)
Vedan Desai
46:54
whoops apostrophe
Anjana Sriram
48:18
Why does it auto-fill with floats rather than integers?
Noah Simpson
50:26
how would you convert those ones/zeros arrays to integers just as an example
Noah Simpson
51:01
ah okay
Noah Simpson
51:24
you have to use numpy object
Noah Simpson
52:18
thanks
Kyle Choi
58:38
Can we convert that to dictionary to make it more accessible?
Noah Simpson
01:00:46
sorry can you explain what ser is a placeholder for?
Kevin Wong
01:00:59
series
Noah Simpson
01:01:06
thanks
Michael Garcia-perez
01:09:21
What time will the discussion recording be uploaded?
Kaitlyn Chan
01:09:39
will the completed discussion notebook be uploaded?
Michael Garcia-perez
01:09:39
Thank you
Anya Chandorkar
01:09:40
do you have to use underscores when naming variables or can you camel case
Yuxuan Feng
01:09:42
Thank you
Jad Makki
01:09:58
Thanks Luke!
Raghav Pant
01:10:08
I've heard camelCase is best practice for functions. verbNoun
Alexander Jensen
01:20:40
How does the dataframe get the county column?
Anya Chandorkar
01:21:45
I’m still confused on what exactly the get() function does
Eric Cherny
01:22:28
Not sure if I missed it but is there a diff between df.get(‘county’), df[‘county’] and df.county
Eric Cherny
01:25:02
Maybe I’m thinking of something else idk
Eric Cherny
01:25:08
Was using the other ones every time
Anya Chandorkar
01:25:16
Sorry another question - what does the count() function do again
Anya Chandorkar
01:25:26
yes
Anya Chandorkar
01:26:33
Wait so what’s the difference between groupby and get if both of them select a single column
Anya Chandorkar
01:28:01
okay thank you!
Kyle Choi
01:30:28
I tired this and got an error what’s the difference between this and calling a assigned value?
Kyle Choi
01:30:29
calfire.groupby('county').count().get('year').sort_values("count", ascending = False).index[0]
Kyle Choi
01:32:31
yeah
Kyle Choi
01:33:05
Oh there is no count column
Kyle Choi
01:33:25
Thank you
Kaitlyn Chan
01:33:58
will the completed discussion notebook be uploaded?
TERHO KOIVISTO
01:34:14
Yee, Thanks!
Jaeda Gantulga
01:34:22
thank you!
ALYSON YI
01:34:26
Thank you
Joshua Chuang
01:34:27
Thank you
Christine Deng
01:34:27
Thank you so much! :)
Kaitlyn Chan
01:34:28
ty