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
|
<@Thomasina> Do you ever get any results? e.g. if you increase the distance to a very large number?
|
2017-07-20T10:00:29.002518
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:00:29.002518
| 1,500,544,829.002518 | 86,503 |
pythondev
|
help
|
FileNotFoundError: File b’Macintosh HD/Users/Desktop/Programming/AAPL.csv’ does not exist
|
2017-07-20T10:00:31.003611
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:00:31.003611
| 1,500,544,831.003611 | 86,504 |
pythondev
|
help
|
<@Shelly>
|
2017-07-20T10:00:43.012408
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:00:43.012408
| 1,500,544,843.012408 | 86,505 |
pythondev
|
help
|
i copied and pasted the path tho
|
2017-07-20T10:00:59.023010
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:00:59.023010
| 1,500,544,859.02301 | 86,506 |
pythondev
|
help
|
<@Gabriele> Yes, I increased the number to something huge like 57000000 and had some results - from somewhere very far away from Toronto, or North America for that matter.
|
2017-07-20T10:01:26.040247
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:01:26.040247
| 1,500,544,886.040247 | 86,507 |
pythondev
|
help
|
<@Kandis>, try adding a forward slash before "Macintosh"
|
2017-07-20T10:01:47.053089
|
Winnifred
|
pythondev_help_Winnifred_2017-07-20T10:01:47.053089
| 1,500,544,907.053089 | 86,508 |
pythondev
|
help
|
<@Winnifred> it shows me the same thing
|
2017-07-20T10:03:07.103763
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:03:07.103763
| 1,500,544,987.103763 | 86,509 |
pythondev
|
help
|
<@Thomasina> _"the source geometries must both be of the same coordinate projection"_... are you sure the data is all correct?
|
2017-07-20T10:03:48.130706
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:03:48.130706
| 1,500,545,028.130706 | 86,510 |
pythondev
|
help
|
<@Kandis> I'm not a Mac user but where are you running your script from? Is that path relative to the location of your script?
|
2017-07-20T10:03:55.135187
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:03:55.135187
| 1,500,545,035.135187 | 86,511 |
pythondev
|
help
|
I don't think you need to include the MAC HD bit in your path
|
2017-07-20T10:04:23.153215
|
Winnifred
|
pythondev_help_Winnifred_2017-07-20T10:04:23.153215
| 1,500,545,063.153215 | 86,512 |
pythondev
|
help
|
<@Thomasina> yes its exactly the location
|
2017-07-20T10:04:33.159641
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:04:33.159641
| 1,500,545,073.159641 | 86,513 |
pythondev
|
help
|
The path looks to be attempting to be absolute but is missing the initial slash
|
2017-07-20T10:04:36.161359
|
Beula
|
pythondev_help_Beula_2017-07-20T10:04:36.161359
| 1,500,545,076.161359 | 86,514 |
pythondev
|
help
|
HAHA! i got it
|
2017-07-20T10:04:52.171981
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:04:52.171981
| 1,500,545,092.171981 | 86,515 |
pythondev
|
help
|
<@Winnifred> you are right
|
2017-07-20T10:04:58.175361
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:04:58.175361
| 1,500,545,098.175361 | 86,516 |
pythondev
|
help
|
The if/main thing simply means: if executing this script directly run this code. It allows you to have a module that is runnable or importable (that code won't run on import)
|
2017-07-20T10:05:46.205710
|
Beula
|
pythondev_help_Beula_2017-07-20T10:05:46.205710
| 1,500,545,146.20571 | 86,517 |
pythondev
|
help
|
<@Gabriele> So I took a very large dataset of world cities in .csv and imported them into my database, then I added a `geog` column and used `UPDATE cities SET geog = ST_SetSRID(ST_MakePoint(longitude, latitude), 4326);` which ran without errors. Did I perhaps miss something in that command?
|
2017-07-20T10:06:03.216304
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:06:03.216304
| 1,500,545,163.216304 | 86,518 |
pythondev
|
help
|
how does one “executes this code”
|
2017-07-20T10:06:59.250968
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:06:59.250968
| 1,500,545,219.250968 | 86,519 |
pythondev
|
help
|
Probably not, but that's beyond my knowledge
|
2017-07-20T10:07:11.258664
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:07:11.258664
| 1,500,545,231.258664 | 86,520 |
pythondev
|
help
|
`python myscript.py`
|
2017-07-20T10:07:12.259019
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:07:12.259019
| 1,500,545,232.259019 | 86,521 |
pythondev
|
help
|
how does one “executes this script”***
|
2017-07-20T10:07:22.265561
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:07:22.265561
| 1,500,545,242.265561 | 86,522 |
pythondev
|
help
|
oh!
|
2017-07-20T10:07:30.271059
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:07:30.271059
| 1,500,545,250.271059 | 86,523 |
pythondev
|
help
|
<@Thomasina> :taco:
|
2017-07-20T10:07:33.272836
|
Beula
|
pythondev_help_Beula_2017-07-20T10:07:33.272836
| 1,500,545,253.272836 | 86,524 |
pythondev
|
help
|
vs. running `python myotherscript.py` - on a script containing `import myscript`
|
2017-07-20T10:07:42.278264
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:07:42.278264
| 1,500,545,262.278264 | 86,525 |
pythondev
|
help
|
<@Beula> :fork_and_knife:
|
2017-07-20T10:07:52.284461
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:07:52.284461
| 1,500,545,272.284461 | 86,526 |
pythondev
|
help
|
Although it looks like you're assigning geometry to a geography column... not sure if that's okay or not
|
2017-07-20T10:08:52.321340
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:08:52.321340
| 1,500,545,332.32134 | 86,527 |
pythondev
|
help
|
There aren't all that many times when I have enough knowledge to help around here, so I try to do it when I can.
|
2017-07-20T10:08:57.324500
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:08:57.324500
| 1,500,545,337.3245 | 86,528 |
pythondev
|
help
|
Maybe I should have ran `ST_MakePoint(longitude, latitude)::geography`?
|
2017-07-20T10:09:46.354737
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:09:46.354737
| 1,500,545,386.354737 | 86,529 |
pythondev
|
help
|
Nice!
|
2017-07-20T10:10:42.389366
|
Winnifred
|
pythondev_help_Winnifred_2017-07-20T10:10:42.389366
| 1,500,545,442.389366 | 86,530 |
pythondev
|
help
|
ST_SetSRID returns geometry
|
2017-07-20T10:11:12.407518
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:11:12.407518
| 1,500,545,472.407518 | 86,531 |
pythondev
|
help
|
Oh does it? I used the command because I think it was in a solution on StackOverflow...now I can't seem to find the page so maybe I just got mixed up. :joy:
|
2017-07-20T10:13:23.488094
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:13:23.488094
| 1,500,545,603.488094 | 86,532 |
pythondev
|
help
|
Those commands look fine - but if you try to assign a geometry to a geography column I don't know what will happen
|
2017-07-20T10:13:51.505696
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:13:51.505696
| 1,500,545,631.505696 | 86,533 |
pythondev
|
help
|
I see... Well, I'm having a lot of difficulty finding a way of populating a geography column from lat/long coordinates :confused:
|
2017-07-20T10:14:46.539421
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:14:46.539421
| 1,500,545,686.539421 | 86,534 |
pythondev
|
help
|
you probably just want a geometry column
|
2017-07-20T10:16:59.623296
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:16:59.623296
| 1,500,545,819.623296 | 86,535 |
pythondev
|
help
|
Ok so I found the StackOverflow post. I see that it was recommended to run `ST_SetSRID(ST_MakePoint(long, lat), 4326)::geography`. I omitted casting completely.
|
2017-07-20T10:17:02.625065
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:17:02.625065
| 1,500,545,822.625065 | 86,536 |
pythondev
|
help
|
After reading it doesn't sound like geometry would be a good fit as my use case involves locations on a global scale
|
2017-07-20T10:17:27.640409
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:17:27.640409
| 1,500,545,847.640409 | 86,537 |
pythondev
|
help
|
Unless I misunderstand the pros/cons which is certainly possible
|
2017-07-20T10:17:51.655682
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:17:51.655682
| 1,500,545,871.655682 | 86,538 |
pythondev
|
help
|
Usually it'll depend on what sort of distances are involved
|
2017-07-20T10:18:51.693768
|
Gabriele
|
pythondev_help_Gabriele_2017-07-20T10:18:51.693768
| 1,500,545,931.693768 | 86,539 |
pythondev
|
help
|
i am still trying to figure it out lol
|
2017-07-20T10:21:51.806482
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:21:51.806482
| 1,500,546,111.806482 | 86,540 |
pythondev
|
help
|
The if/main thing simply means: if executing this script directly run this code. It allows you to have a module that is runnable or importable (that code won’t run on import)
|
2017-07-20T10:26:38.991225
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:26:38.991225
| 1,500,546,398.991225 | 86,541 |
pythondev
|
help
|
this script here means this chuck of code?
|
2017-07-20T10:26:56.003296
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:26:56.003296
| 1,500,546,416.003296 | 86,542 |
pythondev
|
help
|
chunk*
|
2017-07-20T10:27:15.015085
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:27:15.015085
| 1,500,546,435.015085 | 86,543 |
pythondev
|
help
|
this code means:
import pandas as pd
def test_run():
df=pd.read_csv(‘/Users/elaineyang/Desktop/Programming/AAPL.csv’)
print(df)
|
2017-07-20T10:27:35.028087
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:27:35.028087
| 1,500,546,455.028087 | 86,544 |
pythondev
|
help
|
?
|
2017-07-20T10:27:36.028818
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:27:36.028818
| 1,500,546,456.028818 | 86,545 |
pythondev
|
help
|
and can i say, whenever i import something i have to have “if __name__==‘__main__‘:”
|
2017-07-20T10:28:22.058726
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:28:22.058726
| 1,500,546,502.058726 | 86,546 |
pythondev
|
help
|
or else the imported code cant be run?
|
2017-07-20T10:28:37.069169
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:28:37.069169
| 1,500,546,517.069169 | 86,547 |
pythondev
|
help
|
<@Thomasina>
|
2017-07-20T10:28:47.075388
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:28:47.075388
| 1,500,546,527.075388 | 86,548 |
pythondev
|
help
|
So for example, I have this script:
```
# cat.py
class Cat:
def say(self):
print("meow")
if __name__ == "__main__":
Cat().say()
```
I can either call it directly: `python cat.py` and it will meow.
But say I have another module that wants to use this class:
```
from cat import Cat
class ChesireCat(Cat):
def dress_up(self):
pass
```
I wouldn't want it to meow until I tell it to
|
2017-07-20T10:30:10.129885
|
Beula
|
pythondev_help_Beula_2017-07-20T10:30:10.129885
| 1,500,546,610.129885 | 86,549 |
pythondev
|
help
|
<@Kandis>
So everything...oh wait he beat me to it :joy:
|
2017-07-20T10:30:22.138388
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:30:22.138388
| 1,500,546,622.138388 | 86,550 |
pythondev
|
help
|
<@Beula> :lightning: :runner:
|
2017-07-20T10:31:02.164511
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:31:02.164511
| 1,500,546,662.164511 | 86,551 |
pythondev
|
help
|
lol
|
2017-07-20T10:31:14.172514
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:31:14.172514
| 1,500,546,674.172514 | 86,552 |
pythondev
|
help
|
The background on this is that `__name__` is a build in dunder (double underscore). It is set to the name of the module running - if the module is executed directly it's "__main__", otherwise I think it defaults to the file name (I don't recall ATM)
|
2017-07-20T10:31:35.186880
|
Beula
|
pythondev_help_Beula_2017-07-20T10:31:35.186880
| 1,500,546,695.18688 | 86,553 |
pythondev
|
help
|
Tldr you only need the if name/main if you want to be able to execute some code when the script is directly invoked
|
2017-07-20T10:32:46.234228
|
Beula
|
pythondev_help_Beula_2017-07-20T10:32:46.234228
| 1,500,546,766.234228 | 86,554 |
pythondev
|
help
|
so accordin to what you said, how do you let it say meow on the second code
|
2017-07-20T10:33:22.258095
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:33:22.258095
| 1,500,546,802.258095 | 86,555 |
pythondev
|
help
|
from cat import Cat
class ChesireCat(Cat):
def dress_up(self):
pass
|
2017-07-20T10:34:03.284780
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:34:03.284780
| 1,500,546,843.28478 | 86,556 |
pythondev
|
help
|
That class inherited the meow method, so make an instance and call say on it!
Sorry, a class may have been a bad example
|
2017-07-20T10:36:13.370100
|
Beula
|
pythondev_help_Beula_2017-07-20T10:36:13.370100
| 1,500,546,973.3701 | 86,557 |
pythondev
|
help
|
<@Beula> <@Thomasina> <@Winnifred> :taco: thanks so much!
|
2017-07-20T10:42:10.602973
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:42:10.602973
| 1,500,547,330.602973 | 86,558 |
pythondev
|
help
|
<@Kandis> :knife_fork_plate: Thanks! I was actually pretty hungry.
|
2017-07-20T10:42:52.630326
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:42:52.630326
| 1,500,547,372.630326 | 86,559 |
pythondev
|
help
|
haha you havent had breakfast
|
2017-07-20T10:43:50.669236
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:43:50.669236
| 1,500,547,430.669236 | 86,560 |
pythondev
|
help
|
we share the same time zone!
|
2017-07-20T10:44:12.683357
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:44:12.683357
| 1,500,547,452.683357 | 86,561 |
pythondev
|
help
|
oh you meant my taco
|
2017-07-20T10:44:35.698699
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:44:35.698699
| 1,500,547,475.698699 | 86,562 |
pythondev
|
help
|
lmfao
|
2017-07-20T10:44:37.699846
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:44:37.699846
| 1,500,547,477.699846 | 86,563 |
pythondev
|
help
|
Oh, cool! Didn't notice the time zone. Actually I had a small breakfast but I woke up at 1AM, so I haven't eaten in 8 or 9 hours. :dizzy_face:
|
2017-07-20T10:45:03.717338
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:45:03.717338
| 1,500,547,503.717338 | 86,564 |
pythondev
|
help
|
:fearful: hope your bed time is not usually like this lol it doesnt sound good
|
2017-07-20T10:45:50.748483
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:45:50.748483
| 1,500,547,550.748483 | 86,565 |
pythondev
|
help
|
Haha, I don't really have a bedtime. Sometimes I'm going to sleep at 10PM, other times 6AM, other times 2PM. It seems to change every day too. I can't hold a schedule. Today maybe I'll sleep around...I'm not even sure...8PM? I was a night owl but now I'm a cuckoo bird it seems. :joy:
|
2017-07-20T10:47:38.819959
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:47:38.819959
| 1,500,547,658.819959 | 86,566 |
pythondev
|
help
|
<@Kandis> By the way, if you don't mind me asking, I'm just really curious; are you learning Python for school?
|
2017-07-20T10:50:28.933554
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:50:28.933554
| 1,500,547,828.933554 | 86,567 |
pythondev
|
help
|
haha! i learn it for my career :joy: i wanna be able to build a trading program and things like that
|
2017-07-20T10:51:18.967535
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:51:18.967535
| 1,500,547,878.967535 | 86,568 |
pythondev
|
help
|
i am studying finance at school
|
2017-07-20T10:51:31.976182
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:51:31.976182
| 1,500,547,891.976182 | 86,569 |
pythondev
|
help
|
python is kinda cool. i was thinking of learning SQL or R after it, but woah, python seems deep enough for me to learn quite a while <@Thomasina>
|
2017-07-20T10:52:44.024884
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:52:44.024884
| 1,500,547,964.024884 | 86,570 |
pythondev
|
help
|
<@Kandis> Oh, niiiice! That's really cool. Yes, I'm not sure whether R would be all that helpful if you learn Python, although learning at least basic SQL could come in handy sometimes. I suppose you'll be doing a lot of data science in your field? Perhaps machine learning?
|
2017-07-20T10:54:42.103732
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:54:42.103732
| 1,500,548,082.103732 | 86,571 |
pythondev
|
help
|
I've been doing web and software dev for a long time but started learning Python more recently as it was required for a project involving machine learning.
|
2017-07-20T10:55:56.153257
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:55:56.153257
| 1,500,548,156.153257 | 86,572 |
pythondev
|
help
|
see. i found something online, here:
|
2017-07-20T10:56:04.159260
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:56:04.159260
| 1,500,548,164.15926 | 86,573 |
pythondev
|
help
|
Banks use Python for pricing, risk management and trade management platforms. More recently, they’ve been reprogramming their trading systems to run off Python rather than other, clunkier languages.
|
2017-07-20T10:56:06.160159
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:56:06.160159
| 1,500,548,166.160159 | 86,574 |
pythondev
|
help
|
I was a finance person <@Kandis> - started with python too :smile:
|
2017-07-20T10:56:08.162048
|
Beula
|
pythondev_help_Beula_2017-07-20T10:56:08.162048
| 1,500,548,168.162048 | 86,575 |
pythondev
|
help
|
<@Beula> Oh that's right! Then did you work with pandas, numpy, scikit or similar tech?
|
2017-07-20T10:57:12.205666
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:57:12.205666
| 1,500,548,232.205666 | 86,576 |
pythondev
|
help
|
I'm not sure how long ML has played a big role in finances but would be interested in knowing.
|
2017-07-20T10:57:36.221945
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T10:57:36.221945
| 1,500,548,256.221945 | 86,577 |
pythondev
|
help
|
<@Beula> so cool. was python helpful to you during work?
|
2017-07-20T10:58:33.260175
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:58:33.260175
| 1,500,548,313.260175 | 86,578 |
pythondev
|
help
|
No, I was more in the retail side (to clients directly, vs in a bank) and at the time I didn't know how much was out there!
|
2017-07-20T10:58:34.261269
|
Beula
|
pythondev_help_Beula_2017-07-20T10:58:34.261269
| 1,500,548,314.261269 | 86,579 |
pythondev
|
help
|
Yeah <@Kandis> , I wasn't doing a ton of high intensity stuff with it - but I was able to remove about 10-12hours of work/week by automating silly tasks
|
2017-07-20T10:59:03.280943
|
Beula
|
pythondev_help_Beula_2017-07-20T10:59:03.280943
| 1,500,548,343.280943 | 86,580 |
pythondev
|
help
|
so cooooooool
|
2017-07-20T10:59:14.287294
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:59:14.287294
| 1,500,548,354.287294 | 86,581 |
pythondev
|
help
|
were you in a retail bank you said?
|
2017-07-20T10:59:20.291377
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:59:20.291377
| 1,500,548,360.291377 | 86,582 |
pythondev
|
help
|
what kind of bank
|
2017-07-20T10:59:33.300552
|
Kandis
|
pythondev_help_Kandis_2017-07-20T10:59:33.300552
| 1,500,548,373.300552 | 86,583 |
pythondev
|
help
|
<@Beula>
|
2017-07-20T11:00:47.351564
|
Kandis
|
pythondev_help_Kandis_2017-07-20T11:00:47.351564
| 1,500,548,447.351564 | 86,584 |
pythondev
|
help
|
No, the retail side (not a bank). I was a financial advisor
|
2017-07-20T11:01:31.383008
|
Beula
|
pythondev_help_Beula_2017-07-20T11:01:31.383008
| 1,500,548,491.383008 | 86,585 |
pythondev
|
help
|
and stock trader for clients
|
2017-07-20T11:01:36.386505
|
Beula
|
pythondev_help_Beula_2017-07-20T11:01:36.386505
| 1,500,548,496.386505 | 86,586 |
pythondev
|
help
|
<@Kandis> I believe there's a ton of opportunity in this space, and it also allows you to branch in different directions should the economy change. Not only a lot of jobs but a lot of entrepreneurial opportunities as well. It's a smart choice.
|
2017-07-20T11:05:07.530230
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T11:05:07.530230
| 1,500,548,707.53023 | 86,587 |
pythondev
|
help
|
<@Beula> SO COOL what do you do now then
|
2017-07-20T11:05:36.550271
|
Kandis
|
pythondev_help_Kandis_2017-07-20T11:05:36.550271
| 1,500,548,736.550271 | 86,588 |
pythondev
|
help
|
<@Thomasina> :+1::skin-tone-3:
|
2017-07-20T11:05:49.558671
|
Kandis
|
pythondev_help_Kandis_2017-07-20T11:05:49.558671
| 1,500,548,749.558671 | 86,589 |
pythondev
|
help
|
I sometimes use this for simple unittests. The module is meant to be imported, but I have a few things I want to test that can be tested individually, so throw it under an if name main at the bottom and test away.
I wouldn't suggest this for a larger project though, but for something simple or just to test in development it works.
|
2017-07-20T11:24:21.296200
|
Meghan
|
pythondev_help_Meghan_2017-07-20T11:24:21.296200
| 1,500,549,861.2962 | 86,590 |
pythondev
|
help
|
That's a good idea! Do you ever use doctest too? It's excellent for simple functions <https://docs.python.org/3/library/doctest.html>
|
2017-07-20T11:30:39.548937
|
Beula
|
pythondev_help_Beula_2017-07-20T11:30:39.548937
| 1,500,550,239.548937 | 86,591 |
pythondev
|
help
|
plt.grid(True)
|
2017-07-20T11:59:32.693269
|
Kandis
|
pythondev_help_Kandis_2017-07-20T11:59:32.693269
| 1,500,551,972.693269 | 86,592 |
pythondev
|
help
|
what does this mean
|
2017-07-20T11:59:37.696431
|
Kandis
|
pythondev_help_Kandis_2017-07-20T11:59:37.696431
| 1,500,551,977.696431 | 86,593 |
pythondev
|
help
|
I want to learn python . What is the best resource to refer for object oriented python ?
|
2017-07-20T12:03:11.838040
|
Helene
|
pythondev_help_Helene_2017-07-20T12:03:11.838040
| 1,500,552,191.83804 | 86,594 |
pythondev
|
help
|
<@Kandis> I'm not entirely sure what library `plt` is referring to but if I'm correct I think it simply enables the display on a grid in any charts you generate.
|
2017-07-20T12:04:13.878101
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T12:04:13.878101
| 1,500,552,253.878101 | 86,595 |
pythondev
|
help
|
Oh ya, probably pltlib
|
2017-07-20T12:04:33.891183
|
Thomasina
|
pythondev_help_Thomasina_2017-07-20T12:04:33.891183
| 1,500,552,273.891183 | 86,596 |
pythondev
|
help
|
<@Helene> Do you know any other programming languages, or are you just starting out?
|
2017-07-20T12:04:40.895808
|
Beula
|
pythondev_help_Beula_2017-07-20T12:04:40.895808
| 1,500,552,280.895808 | 86,597 |
pythondev
|
help
|
<@Kandis> might mean the matplotlib library, since `import matplotlib.pyplot as plt` is common convention
|
2017-07-20T12:06:31.965070
|
Meg
|
pythondev_help_Meg_2017-07-20T12:06:31.965070
| 1,500,552,391.96507 | 86,598 |
pythondev
|
help
|
and for future reference, when you ask these kind of questions (what does this variable do, etc), its best to add some more information
|
2017-07-20T12:07:09.988557
|
Meg
|
pythondev_help_Meg_2017-07-20T12:07:09.988557
| 1,500,552,429.988557 | 86,599 |
pythondev
|
help
|
and in this case, if you had the code in front of you, you could search for instances of `plt` in the code
|
2017-07-20T12:07:34.003696
|
Meg
|
pythondev_help_Meg_2017-07-20T12:07:34.003696
| 1,500,552,454.003696 | 86,600 |
pythondev
|
help
|
which would have brought you to the import statement, among others
|
2017-07-20T12:07:46.011169
|
Meg
|
pythondev_help_Meg_2017-07-20T12:07:46.011169
| 1,500,552,466.011169 | 86,601 |
pythondev
|
help
|
yea i just didnt know the grid(True) part and kai_m answered me ;D
|
2017-07-20T12:08:16.029732
|
Kandis
|
pythondev_help_Kandis_2017-07-20T12:08:16.029732
| 1,500,552,496.029732 | 86,602 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.