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
do you think it's easy? I'm a noob, so I wrote here :blush:
2017-12-22T10:21:45.000551
Harry
pythondev_help_Harry_2017-12-22T10:21:45.000551
1,513,938,105.000551
105,703
pythondev
help
I think if you already know the basics of matrices, you’re three quarters of the way there
2017-12-22T10:22:15.000159
Meg
pythondev_help_Meg_2017-12-22T10:22:15.000159
1,513,938,135.000159
105,704
pythondev
help
many thanks, I will let you know
2017-12-22T10:22:28.000528
Harry
pythondev_help_Harry_2017-12-22T10:22:28.000528
1,513,938,148.000528
105,705
pythondev
help
[1 2 3 3 3 3 3 2 1] [2 4 6 6 6 6 6 4 2] [3 6 9 9 9 9 9 6 3] [3 6 9 9 9 9 9 6 3] [3 6 9 9 9 9 9 6 3] [3 6 9 9 9 9 9 6 3] [3 6 9 9 9 9 9 6 3] [2 4 6 6 6 6 6 4 2] [1 2 3 3 3 3 3 2 1] <@Meg> :grimacing:
2017-12-22T10:44:10.000113
Harry
pythondev_help_Harry_2017-12-22T10:44:10.000113
1,513,939,450.000113
105,706
pythondev
help
I'm trying to get data from the wunderground api. I'm able to get it using requests. when i print it out after I load it I'm having trouble retrieving specific keys I want to get.
2017-12-22T11:31:08.000257
Devorah
pythondev_help_Devorah_2017-12-22T11:31:08.000257
1,513,942,268.000257
105,707
pythondev
help
are you loading the json response into a dict?
2017-12-22T11:34:41.000166
Meg
pythondev_help_Meg_2017-12-22T11:34:41.000166
1,513,942,481.000166
105,708
pythondev
help
I believe so I can call current_observation and it pulls all the pairs under that
2017-12-22T11:35:56.000246
Devorah
pythondev_help_Devorah_2017-12-22T11:35:56.000246
1,513,942,556.000246
105,709
pythondev
help
but I don't know how to call the nested ones
2017-12-22T11:36:04.000102
Devorah
pythondev_help_Devorah_2017-12-22T11:36:04.000102
1,513,942,564.000102
105,710
pythondev
help
you have a couple options
2017-12-22T11:36:33.000471
Meg
pythondev_help_Meg_2017-12-22T11:36:33.000471
1,513,942,593.000471
105,711
pythondev
help
execute the api request in a rest client like postman, then inspect the response
2017-12-22T11:36:52.000179
Meg
pythondev_help_Meg_2017-12-22T11:36:52.000179
1,513,942,612.000179
105,712
pythondev
help
or two, implement a recursive dict traversal to print out the keys in the dict
2017-12-22T11:37:13.000583
Meg
pythondev_help_Meg_2017-12-22T11:37:13.000583
1,513,942,633.000583
105,713
pythondev
help
I’d go for the first
2017-12-22T11:37:15.000235
Meg
pythondev_help_Meg_2017-12-22T11:37:15.000235
1,513,942,635.000235
105,714
pythondev
help
what's involved in the first one, never dealt with rest or postman
2017-12-22T11:39:35.000236
Devorah
pythondev_help_Devorah_2017-12-22T11:39:35.000236
1,513,942,775.000236
105,715
pythondev
help
her eyou go
2017-12-22T11:40:06.000355
Meg
pythondev_help_Meg_2017-12-22T11:40:06.000355
1,513,942,806.000355
105,716
pythondev
help
<https://www.getpostman.com/>
2017-12-22T11:40:06.000366
Meg
pythondev_help_Meg_2017-12-22T11:40:06.000366
1,513,942,806.000366
105,717
pythondev
help
you have a request url you use to query the api
2017-12-22T11:40:25.000437
Meg
pythondev_help_Meg_2017-12-22T11:40:25.000437
1,513,942,825.000437
105,718
pythondev
help
enter that in postman,
2017-12-22T11:40:35.000439
Meg
pythondev_help_Meg_2017-12-22T11:40:35.000439
1,513,942,835.000439
105,719
pythondev
help
and you’ll see the data response
2017-12-22T11:40:45.000336
Meg
pythondev_help_Meg_2017-12-22T11:40:45.000336
1,513,942,845.000336
105,720
pythondev
help
<@Devorah> if you're up for learning, the reading of the errors and parsing a bunch of dicts within a list within a dict is a great way to practice indexing and key/value iteration and searching, on the other hand, this has been solved long ago and if it doesn't interest you, can you skip for now or forever
2017-12-22T13:47:40.000090
Seema
pythondev_help_Seema_2017-12-22T13:47:40.000090
1,513,950,460.00009
105,721
pythondev
help
Hi. I am brand new to this group, so I hope I am not making any mistakes. I am not a heavy programmer, but I am trying to help my father with an issue. He is working on a camera built with a Raspberry Pi and Python for taking picture of a retina. The problem is that the code he has always saves the picture with the ...
2017-12-22T17:24:20.000118
Marco
pythondev_help_Marco_2017-12-22T17:24:20.000118
1,513,963,460.000118
105,722
pythondev
help
Multiple options. ```# Generate a temporary file location import tempfile tempfile.NamedTemporaryFile() # Use os.path to check for a unique name index import os filepath_template = '/home/pi/Desktop/image%s.jpg' index = 0 while os.path.isfile(filepath_template % index): index += 1 filepath = filepath_template % ...
2017-12-22T17:32:12.000124
Candice
pythondev_help_Candice_2017-12-22T17:32:12.000124
1,513,963,932.000124
105,723
pythondev
help
<@Marco> welcome, if you are going to paste a lot of code, please click the plus on the side of the text bar and input the code there. The `with picamera.PiCamera() as camera:` block is written to close down the `with` block when the process is complete, you could use a `while True:` block to keep the program alive th...
2017-12-22T19:07:17.000052
Seema
pythondev_help_Seema_2017-12-22T19:07:17.000052
1,513,969,637.000052
105,724
pythondev
help
<@Marco> Because the script is already importing `time`, you could just follow same convention that most other camera software use: timestamp in YYYYMMDDHHMMSS format. Change line `camera.capture('/home/pi/Desktop/image1.jpg', use_video_port=True)` To something like ``` datetime_captured = time.strftime("%Y%m%d%H%M%S"...
2017-12-23T16:16:28.000006
Deedee
pythondev_help_Deedee_2017-12-23T16:16:28.000006
1,514,045,788.000006
105,725
pythondev
help
Hi, I’m looking for a Python dev to help me create a Python app for a small project of mine. Any freelancers on here?
2017-12-24T07:24:51.000011
Homer
pythondev_help_Homer_2017-12-24T07:24:51.000011
1,514,100,291.000011
105,726
pythondev
help
<#C1DFN115F|freelance> :)
2017-12-24T07:41:25.000043
Suellen
pythondev_help_Suellen_2017-12-24T07:41:25.000043
1,514,101,285.000043
105,727
pythondev
help
there's a channel and _maybe_ you'll have better luck there
2017-12-24T07:41:43.000023
Suellen
pythondev_help_Suellen_2017-12-24T07:41:43.000023
1,514,101,303.000023
105,728
pythondev
help
Hello, please point me to the Flask Channel if you can.
2017-12-24T11:04:04.000023
Jerald
pythondev_help_Jerald_2017-12-24T11:04:04.000023
1,514,113,444.000023
105,729
pythondev
help
<#C0LN2AD7T|flask>
2017-12-24T11:18:21.000084
Johana
pythondev_help_Johana_2017-12-24T11:18:21.000084
1,514,114,301.000084
105,730
pythondev
help
Any here used Scrapy with Celery? I get can scrape just fine when I run my spider via the terminal but I get a 403 when it runs as a Celery task... Can explain further if any has worked with the combination.
2017-12-24T12:39:54.000042
Elsie
pythondev_help_Elsie_2017-12-24T12:39:54.000042
1,514,119,194.000042
105,731
pythondev
help
```t1 = 'Sun Dec 24 17:25:14 +0000 2017' t2 = 'Sun Dec 24 17:05:14 +0000 2017' fmt = '%a %b %d %H:%I:%S %z %Y' ``` I have two time strings. and format for `strptime` `t2` matches the format but not `t1`. Help me spot the difference please.
2017-12-24T12:42:32.000010
Desire
pythondev_help_Desire_2017-12-24T12:42:32.000010
1,514,119,352.00001
105,732
pythondev
help
Does it match though?
2017-12-24T12:44:48.000061
Suellen
pythondev_help_Suellen_2017-12-24T12:44:48.000061
1,514,119,488.000061
105,733
pythondev
help
`'Sun Dec 24 17:05:14 +0000 2017'` -&gt; `datetime.datetime(2017, 12, 24, 5, 0, 14)`
2017-12-24T12:45:11.000024
Suellen
pythondev_help_Suellen_2017-12-24T12:45:11.000024
1,514,119,511.000024
105,734
pythondev
help
`17:05:14` -&gt; `05:00:14`
2017-12-24T12:45:24.000035
Suellen
pythondev_help_Suellen_2017-12-24T12:45:24.000035
1,514,119,524.000035
105,735
pythondev
help
`%H:%I:%S` should be `%H:%M:%S`
2017-12-24T12:46:03.000031
Suellen
pythondev_help_Suellen_2017-12-24T12:46:03.000031
1,514,119,563.000031
105,736
pythondev
help
%I is a AM/PM hour, that's why there's a (wrong) match for t2 but not t1
2017-12-24T12:46:22.000097
Suellen
pythondev_help_Suellen_2017-12-24T12:46:22.000097
1,514,119,582.000097
105,737
pythondev
help
Thanks <@Suellen> :slightly_smiling_face:
2017-12-24T13:44:06.000063
Desire
pythondev_help_Desire_2017-12-24T13:44:06.000063
1,514,123,046.000063
105,738
pythondev
help
Why with celery? Doesn't scrapy already run with twisted?
2017-12-24T14:59:52.000004
Johana
pythondev_help_Johana_2017-12-24T14:59:52.000004
1,514,127,592.000004
105,739
pythondev
help
Merry Christmas! I am learning python and have a bug in my basic pygame game. Can anyone help me please?
2017-12-24T16:42:07.000026
Leonarda
pythondev_help_Leonarda_2017-12-24T16:42:07.000026
1,514,133,727.000026
105,740
pythondev
help
<https://pastebin.com/XF9hnMiE>
2017-12-24T16:43:02.000037
Leonarda
pythondev_help_Leonarda_2017-12-24T16:43:02.000037
1,514,133,782.000037
105,741
pythondev
help
Some reason my game resets when it matches vertical axis even if you pass monster.
2017-12-24T16:43:58.000035
Leonarda
pythondev_help_Leonarda_2017-12-24T16:43:58.000035
1,514,133,838.000035
105,742
pythondev
help
wow, looks nice
2017-12-24T16:55:58.000025
Suellen
pythondev_help_Suellen_2017-12-24T16:55:58.000025
1,514,134,558.000025
105,743
pythondev
help
It is just supposed to be a Frogger like clone. Stole the images. Devil is just going back and forward. I can pass it but when it passes me, game resets but that is only supposed to happen upon collision.
2017-12-24T17:00:34.000024
Leonarda
pythondev_help_Leonarda_2017-12-24T17:00:34.000024
1,514,134,834.000024
105,744
pythondev
help
Has anyone got some more info on anvil.works ?
2017-12-24T20:47:54.000039
Patti
pythondev_help_Patti_2017-12-24T20:47:54.000039
1,514,148,474.000039
105,745
pythondev
help
Is there anything I can do that is simple with python, to start importing methods and classes from diff files, in the src of my project?
2017-12-24T21:30:24.000045
Arlene
pythondev_help_Arlene_2017-12-24T21:30:24.000045
1,514,151,024.000045
105,746
pythondev
help
Is there a simple trick to do where I set the path to something, etc... not 100% sure
2017-12-24T21:30:43.000013
Arlene
pythondev_help_Arlene_2017-12-24T21:30:43.000013
1,514,151,043.000013
105,747
pythondev
help
i just did `export PYTHONPATH=.` worked well
2017-12-24T22:27:36.000056
Arlene
pythondev_help_Arlene_2017-12-24T22:27:36.000056
1,514,154,456.000056
105,748
pythondev
help
<@Arlene> now remove that export, write a setup.py and do `pip install -e .`
2017-12-24T23:25:12.000033
Collette
pythondev_help_Collette_2017-12-24T23:25:12.000033
1,514,157,912.000033
105,749
pythondev
help
lol
2017-12-24T23:25:44.000035
Arlene
pythondev_help_Arlene_2017-12-24T23:25:44.000035
1,514,157,944.000035
105,750
pythondev
help
What?
2017-12-24T23:26:06.000021
Collette
pythondev_help_Collette_2017-12-24T23:26:06.000021
1,514,157,966.000021
105,751
pythondev
help
<@Collette> sorry
2017-12-25T00:02:51.000039
Arlene
pythondev_help_Arlene_2017-12-25T00:02:51.000039
1,514,160,171.000039
105,752
pythondev
help
what are you suggesting?
2017-12-25T00:03:06.000095
Arlene
pythondev_help_Arlene_2017-12-25T00:03:06.000095
1,514,160,186.000095
105,753
pythondev
help
I wasnt paying attention, previously i apologize.
2017-12-25T00:03:16.000058
Arlene
pythondev_help_Arlene_2017-12-25T00:03:16.000058
1,514,160,196.000058
105,754
pythondev
help
&gt; remove that export, write a setup.py and do `pip install -e .`
2017-12-25T00:26:28.000091
Collette
pythondev_help_Collette_2017-12-25T00:26:28.000091
1,514,161,588.000091
105,755
pythondev
help
Hello guys.. what is the fastest available solution for pdf report generation in python3 i’ve tried wkhtmltopdf and reportlab
2017-12-25T00:57:19.000048
Nichole
pythondev_help_Nichole_2017-12-25T00:57:19.000048
1,514,163,439.000048
105,756
pythondev
help
can anyone help me, how can I write a regular expression to validate phone numbers of different countries like : `+91 7737986479`, `7737986479`, `<tel:202-555-0152|202-555-0152>`, `<tel:+1-202-555-0152|+1-202-555-0152>`, `(202) 555 0152`, `01632 960706`, `+44 1632 960706`, `<tel:613-555-0164|613-555-0164>`, `<tel:+1-61...
2017-12-25T06:37:57.000044
Meaghan
pythondev_help_Meaghan_2017-12-25T06:37:57.000044
1,514,183,877.000044
105,757
pythondev
help
google has an opensource library for phone number verification
2017-12-25T07:00:03.000113
Suellen
pythondev_help_Suellen_2017-12-25T07:00:03.000113
1,514,185,203.000113
105,758
pythondev
help
`libphonenumber`
2017-12-25T07:00:31.000090
Suellen
pythondev_help_Suellen_2017-12-25T07:00:31.000090
1,514,185,231.00009
105,759
pythondev
help
<@Suellen> I need it for jQuery.
2017-12-25T07:03:51.000094
Meaghan
pythondev_help_Meaghan_2017-12-25T07:03:51.000094
1,514,185,431.000094
105,760
pythondev
help
<https://github.com/catamphetamine/libphonenumber-js>
2017-12-25T07:04:18.000125
Suellen
pythondev_help_Suellen_2017-12-25T07:04:18.000125
1,514,185,458.000125
105,761
pythondev
help
Anyone know how I can remove the double quotes from the value `null` `'{"profile": {"firstName": "foo", "lastName": "bar", "mobilePhone": "<tel:555-415-1337|555-415-1337>", "secondEmail": "null", "login": "<mailto:test@gmail.com|test@gmail.com>", "email": "<mailto:test@gmail.com|test@gmail.com>"}}'` on this data type
2017-12-25T12:50:23.000037
Arlene
pythondev_help_Arlene_2017-12-25T12:50:23.000037
1,514,206,223.000037
105,762
pythondev
help
are you converting to dict or json?
2017-12-25T12:51:01.000009
Meg
pythondev_help_Meg_2017-12-25T12:51:01.000009
1,514,206,261.000009
105,763
pythondev
help
the data needs to be a string i need to pass in, so i get a dict object and i do a json.dumps(dict) which gets me this ^^, but the api wants the value of null to not have doublt quotes
2017-12-25T12:52:03.000012
Arlene
pythondev_help_Arlene_2017-12-25T12:52:03.000012
1,514,206,323.000012
105,764
pythondev
help
just be from `"null"` to `null`
2017-12-25T12:52:21.000001
Arlene
pythondev_help_Arlene_2017-12-25T12:52:21.000001
1,514,206,341.000001
105,765
pythondev
help
I wonder why...
2017-12-25T12:52:25.000045
Suellen
pythondev_help_Suellen_2017-12-25T12:52:25.000045
1,514,206,345.000045
105,766
pythondev
help
i have no clue
2017-12-25T12:52:36.000026
Arlene
pythondev_help_Arlene_2017-12-25T12:52:36.000026
1,514,206,356.000026
105,767
pythondev
help
this is in fact a first
2017-12-25T12:52:42.000002
Arlene
pythondev_help_Arlene_2017-12-25T12:52:42.000002
1,514,206,362.000002
105,768
pythondev
help
it's very strange to have a `"null"` instead of `null`
2017-12-25T12:52:42.000029
Suellen
pythondev_help_Suellen_2017-12-25T12:52:42.000029
1,514,206,362.000029
105,769
pythondev
help
ok, that’s werd
2017-12-25T12:52:43.000009
Meg
pythondev_help_Meg_2017-12-25T12:52:43.000009
1,514,206,363.000009
105,770
pythondev
help
I see this
2017-12-25T12:52:43.000055
Arlene
pythondev_help_Arlene_2017-12-25T12:52:43.000055
1,514,206,363.000055
105,771
pythondev
help
probably because the value is a string and not `None`
2017-12-25T12:52:56.000047
Meg
pythondev_help_Meg_2017-12-25T12:52:56.000047
1,514,206,376.000047
105,772
pythondev
help
i know, thats why id like to convert it to `null`
2017-12-25T12:53:01.000001
Arlene
pythondev_help_Arlene_2017-12-25T12:53:01.000001
1,514,206,381.000001
105,773
pythondev
help
in the dict, if you do `dict_variable['secondEmail']`, is it a string or `None`?
2017-12-25T12:53:19.000001
Meg
pythondev_help_Meg_2017-12-25T12:53:19.000001
1,514,206,399.000001
105,774
pythondev
help
because if its a string, then that’s your issue. you should use `None` instead
2017-12-25T12:53:57.000056
Meg
pythondev_help_Meg_2017-12-25T12:53:57.000056
1,514,206,437.000056
105,775
pythondev
help
let me check
2017-12-25T12:54:26.000034
Arlene
pythondev_help_Arlene_2017-12-25T12:54:26.000034
1,514,206,466.000034
105,776
pythondev
help
its a string
2017-12-25T12:56:19.000047
Arlene
pythondev_help_Arlene_2017-12-25T12:56:19.000047
1,514,206,579.000047
105,777
pythondev
help
that’s why
2017-12-25T12:57:13.000045
Meg
pythondev_help_Meg_2017-12-25T12:57:13.000045
1,514,206,633.000045
105,778
pythondev
help
so if you want `null` to be output in the json serialization, you should have that value be `None`
2017-12-25T12:57:33.000054
Meg
pythondev_help_Meg_2017-12-25T12:57:33.000054
1,514,206,653.000054
105,779
pythondev
help
OHHH
2017-12-25T12:57:58.000051
Arlene
pythondev_help_Arlene_2017-12-25T12:57:58.000051
1,514,206,678.000051
105,780
pythondev
help
<@Meg> thats why
2017-12-25T12:58:03.000027
Arlene
pythondev_help_Arlene_2017-12-25T12:58:03.000027
1,514,206,683.000027
105,781
pythondev
help
That makes sense,
2017-12-25T12:58:08.000076
Arlene
pythondev_help_Arlene_2017-12-25T12:58:08.000076
1,514,206,688.000076
105,782
pythondev
help
thanks a lot
2017-12-25T12:58:28.000053
Arlene
pythondev_help_Arlene_2017-12-25T12:58:28.000053
1,514,206,708.000053
105,783
pythondev
help
welcome :slightly_smiling_face:
2017-12-25T12:58:35.000053
Meg
pythondev_help_Meg_2017-12-25T12:58:35.000053
1,514,206,715.000053
105,784
pythondev
help
Also I couldn't able to understand the method any in tuple
2017-12-26T07:14:59.000108
Bette
pythondev_help_Bette_2017-12-26T07:14:59.000108
1,514,272,499.000108
105,785
pythondev
help
Python 3 does not allow that either - there are two issues - one you are trying to assign to an integer literal, and two variables cannot begin with numbers
2017-12-26T07:18:39.000008
Junita
pythondev_help_Junita_2017-12-26T07:18:39.000008
1,514,272,719.000008
105,786
pythondev
help
I don’t know what the environment is that seemed to allow it, but it’s incorrect behavior to allow it
2017-12-26T07:19:47.000059
Junita
pythondev_help_Junita_2017-12-26T07:19:47.000059
1,514,272,787.000059
105,787
pythondev
help
Hi jkelly
2017-12-26T07:21:13.000002
Bette
pythondev_help_Bette_2017-12-26T07:21:13.000002
1,514,272,873.000002
105,788
pythondev
help
I am trying it from a python 3.6 in a website
2017-12-26T07:21:42.000021
Bette
pythondev_help_Bette_2017-12-26T07:21:42.000021
1,514,272,902.000021
105,789
pythondev
help
It works there and it's not working in 2.7
2017-12-26T07:21:57.000038
Bette
pythondev_help_Bette_2017-12-26T07:21:57.000038
1,514,272,917.000038
105,790
pythondev
help
I would stop using this website then, it’s not using a true python interpreter
2017-12-26T07:22:15.000120
Junita
pythondev_help_Junita_2017-12-26T07:22:15.000120
1,514,272,935.00012
105,791
pythondev
help
what website is it?
2017-12-26T07:22:32.000118
Junita
pythondev_help_Junita_2017-12-26T07:22:32.000118
1,514,272,952.000118
105,792
pythondev
help
Python <http://tutor.com|tutor.com>
2017-12-26T07:22:42.000087
Bette
pythondev_help_Bette_2017-12-26T07:22:42.000087
1,514,272,962.000087
105,793
pythondev
help
I got your point regarding variable rule
2017-12-26T07:23:04.000006
Bette
pythondev_help_Bette_2017-12-26T07:23:04.000006
1,514,272,984.000006
105,794
pythondev
help
yeah perhaps they are doing something weird with the variables before passing them to an underlying interpreter.
2017-12-26T07:23:22.000108
Junita
pythondev_help_Junita_2017-12-26T07:23:22.000108
1,514,273,002.000108
105,795
pythondev
help
Do you know about python any method
2017-12-26T07:23:23.000039
Bette
pythondev_help_Bette_2017-12-26T07:23:23.000039
1,514,273,003.000039
105,796
pythondev
help
I'm scartaching my head to understand it
2017-12-26T07:23:42.000089
Bette
pythondev_help_Bette_2017-12-26T07:23:42.000089
1,514,273,022.000089
105,797
pythondev
help
yes, essentially it ensures that at least one value in an iterable evaluates to `True`
2017-12-26T07:23:51.000110
Junita
pythondev_help_Junita_2017-12-26T07:23:51.000110
1,514,273,031.00011
105,798
pythondev
help
a related method is `all`, which assures that all values evaluate to `True`
2017-12-26T07:24:14.000144
Junita
pythondev_help_Junita_2017-12-26T07:24:14.000144
1,514,273,054.000144
105,799
pythondev
help
Yeah. Read it but in the example
2017-12-26T07:25:34.000117
Bette
pythondev_help_Bette_2017-12-26T07:25:34.000117
1,514,273,134.000117
105,800
pythondev
help
The output is True false true false
2017-12-26T07:25:55.000086
Bette
pythondev_help_Bette_2017-12-26T07:25:55.000086
1,514,273,155.000086
105,801
pythondev
help
I'm wondering how
2017-12-26T07:26:02.000027
Bette
pythondev_help_Bette_2017-12-26T07:26:02.000027
1,514,273,162.000027
105,802