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
That's also invalid python you posted - so already it suggests that you aren't really showing what you have tried :confused:
2017-06-21T15:29:16.160053
Beula
pythondev_help_Beula_2017-06-21T15:29:16.160053
1,498,058,956.160053
82,703
pythondev
help
makes it easier to format code for readability compared to regular text
2017-06-21T15:29:16.160152
Meg
pythondev_help_Meg_2017-06-21T15:29:16.160152
1,498,058,956.160152
82,704
pythondev
help
so, `datetime.date` requires three inputs
2017-06-21T15:30:10.179938
Meg
pythondev_help_Meg_2017-06-21T15:30:10.179938
1,498,059,010.179938
82,705
pythondev
help
`year`, `month`, `day`
2017-06-21T15:30:18.182906
Meg
pythondev_help_Meg_2017-06-21T15:30:18.182906
1,498,059,018.182906
82,706
pythondev
help
all have to be integers
2017-06-21T15:30:23.185037
Meg
pythondev_help_Meg_2017-06-21T15:30:23.185037
1,498,059,023.185037
82,707
pythondev
help
eg, `datetime.date(2017, 05, 17)`
2017-06-21T15:30:37.190304
Meg
pythondev_help_Meg_2017-06-21T15:30:37.190304
1,498,059,037.190304
82,708
pythondev
help
the thing is that i get this format from jquery date time picker
2017-06-21T15:30:45.192869
Norris
pythondev_help_Norris_2017-06-21T15:30:45.192869
1,498,059,045.192869
82,709
pythondev
help
<@Norris> <https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime>
2017-06-21T15:31:57.218384
Beula
pythondev_help_Beula_2017-06-21T15:31:57.218384
1,498,059,117.218384
82,710
pythondev
help
is there any way i can manage the format i posted because all my data is saved like that and i have to do the queries in that format to get the correct detail
2017-06-21T15:32:48.236670
Norris
pythondev_help_Norris_2017-06-21T15:32:48.236670
1,498,059,168.23667
82,711
pythondev
help
from the database
2017-06-21T15:32:56.239287
Norris
pythondev_help_Norris_2017-06-21T15:32:56.239287
1,498,059,176.239287
82,712
pythondev
help
my queries have to with date and time values because in the database are saved in this format
2017-06-21T15:33:56.260948
Norris
pythondev_help_Norris_2017-06-21T15:33:56.260948
1,498,059,236.260948
82,713
pythondev
help
You mean they are not saved as datetimes?
2017-06-21T15:34:10.265766
Beula
pythondev_help_Beula_2017-06-21T15:34:10.265766
1,498,059,250.265766
82,714
pythondev
help
Anyone here used dreamfactory? Trying to insert a list of rows using a stored procedure. Hoping not to have to do thousands of calls to the sp.
2017-06-21T15:34:21.269969
Meghan
pythondev_help_Meghan_2017-06-21T15:34:21.269969
1,498,059,261.269969
82,715
pythondev
help
date and time
2017-06-21T15:34:31.273566
Norris
pythondev_help_Norris_2017-06-21T15:34:31.273566
1,498,059,271.273566
82,716
pythondev
help
2017-06-14 00:00:00
2017-06-21T15:34:32.273848
Norris
pythondev_help_Norris_2017-06-21T15:34:32.273848
1,498,059,272.273848
82,717
pythondev
help
2017-06-14 23:59:59
2017-06-21T15:34:46.279171
Norris
pythondev_help_Norris_2017-06-21T15:34:46.279171
1,498,059,286.279171
82,718
pythondev
help
As what column type?
2017-06-21T15:34:58.282849
Beula
pythondev_help_Beula_2017-06-21T15:34:58.282849
1,498,059,298.282849
82,719
pythondev
help
How are you querying?
2017-06-21T15:35:05.285524
Beula
pythondev_help_Beula_2017-06-21T15:35:05.285524
1,498,059,305.285524
82,720
pythondev
help
Please give more relevant info, you can see <https://stackoverflow.com/help/how-to-ask> for tips on how to ask good questions
2017-06-21T15:35:24.292261
Beula
pythondev_help_Beula_2017-06-21T15:35:24.292261
1,498,059,324.292261
82,721
pythondev
help
i think you are been an ass
2017-06-21T15:36:46.320926
Norris
pythondev_help_Norris_2017-06-21T15:36:46.320926
1,498,059,406.320926
82,722
pythondev
help
if you dont know
2017-06-21T15:36:52.323120
Norris
pythondev_help_Norris_2017-06-21T15:36:52.323120
1,498,059,412.32312
82,723
pythondev
help
dont say anything
2017-06-21T15:36:58.324978
Norris
pythondev_help_Norris_2017-06-21T15:36:58.324978
1,498,059,418.324978
82,724
pythondev
help
<@Beula>
2017-06-21T15:37:28.335497
Norris
pythondev_help_Norris_2017-06-21T15:37:28.335497
1,498,059,448.335497
82,725
pythondev
help
You realize I am asking more questions to better understand your question to actually solve it right?
2017-06-21T15:37:47.342059
Beula
pythondev_help_Beula_2017-06-21T15:37:47.342059
1,498,059,467.342059
82,726
pythondev
help
Calling people names is not something we tolerate here.
2017-06-21T15:38:01.346948
Beula
pythondev_help_Beula_2017-06-21T15:38:01.346948
1,498,059,481.346948
82,727
pythondev
help
:smile:
2017-06-21T15:40:35.401052
Suellen
pythondev_help_Suellen_2017-06-21T15:40:35.401052
1,498,059,635.401052
82,728
pythondev
help
yea, stop being a poo poo head.
2017-06-21T15:43:22.458920
Johana
pythondev_help_Johana_2017-06-21T15:43:22.458920
1,498,059,802.45892
82,729
pythondev
help
#Banned
2017-06-21T15:43:36.463860
Beula
pythondev_help_Beula_2017-06-21T15:43:36.463860
1,498,059,816.46386
82,730
pythondev
help
Was about to drop some spanglish to let her know what was up... but yeah, account deactivated
2017-06-21T15:44:46.488372
Deedee
pythondev_help_Deedee_2017-06-21T15:44:46.488372
1,498,059,886.488372
82,731
pythondev
help
<@Johana> poo poo head... them's is fightin' words ...
2017-06-21T15:44:53.490869
Bruno
pythondev_help_Bruno_2017-06-21T15:44:53.490869
1,498,059,893.490869
82,732
pythondev
help
<@Norris> there are ways to format datetimes. depending on what you are using to query the database some of this can be done for you. we don't really know if questions aren't posted with example code that replicates what you are trying to do or code that shows what you have tried.
2017-06-21T15:45:00.493168
Johana
pythondev_help_Johana_2017-06-21T15:45:00.493168
1,498,059,900.493168
82,733
pythondev
help
hence, the reason you are being directed to a SO guide.
2017-06-21T15:45:11.497253
Johana
pythondev_help_Johana_2017-06-21T15:45:11.497253
1,498,059,911.497253
82,734
pythondev
help
I think that person is go bye bye.
2017-06-21T15:45:17.499324
Meghan
pythondev_help_Meghan_2017-06-21T15:45:17.499324
1,498,059,917.499324
82,735
pythondev
help
why isn’t “poo poo head” in the list of profanity for <@Hung> ?
2017-06-21T15:45:18.499760
Patty
pythondev_help_Patty_2017-06-21T15:45:18.499760
1,498,059,918.49976
82,736
pythondev
help
Do you find the language to be obscene?
2017-06-21T15:45:54.512460
Cleo
pythondev_help_Cleo_2017-06-21T15:45:54.512460
1,498,059,954.51246
82,737
pythondev
help
Or silly?
2017-06-21T15:45:58.514157
Cleo
pythondev_help_Cleo_2017-06-21T15:45:58.514157
1,498,059,958.514157
82,738
pythondev
help
Hate to repeat myself, but I think it may have been missed in that fun.
2017-06-21T15:46:01.515149
Meghan
pythondev_help_Meghan_2017-06-21T15:46:01.515149
1,498,059,961.515149
82,739
pythondev
help
Anyone here used dreamfactory? Trying to insert a list of rows using a stored procedure. Hoping not to have to do thousands of calls to the sp.
2017-06-21T15:46:12.518838
Meghan
pythondev_help_Meghan_2017-06-21T15:46:12.518838
1,498,059,972.518838
82,740
pythondev
help
no, never heard of dreamfactory.
2017-06-21T15:46:33.526636
Johana
pythondev_help_Johana_2017-06-21T15:46:33.526636
1,498,059,993.526636
82,741
pythondev
help
lol <@Meghan>
2017-06-21T15:46:37.528008
Deedee
pythondev_help_Deedee_2017-06-21T15:46:37.528008
1,498,059,997.528008
82,742
pythondev
help
sounds pleasant.
2017-06-21T15:46:42.529906
Johana
pythondev_help_Johana_2017-06-21T15:46:42.529906
1,498,060,002.529906
82,743
pythondev
help
you can fire off stored procedures with sqlalchemy.
2017-06-21T15:47:02.536844
Johana
pythondev_help_Johana_2017-06-21T15:47:02.536844
1,498,060,022.536844
82,744
pythondev
help
sounds like a dream ~
2017-06-21T15:47:07.538630
Patty
pythondev_help_Patty_2017-06-21T15:47:07.538630
1,498,060,027.53863
82,745
pythondev
help
that's about all i know.
2017-06-21T15:47:08.539087
Johana
pythondev_help_Johana_2017-06-21T15:47:08.539087
1,498,060,028.539087
82,746
pythondev
help
I thought about it <@Patty>, but didn't want to go there.... lol
2017-06-21T15:47:33.548144
Deedee
pythondev_help_Deedee_2017-06-21T15:47:33.548144
1,498,060,053.548144
82,747
pythondev
help
dreamfactory is a php application that provides a rest api for many databases. It's really nice in ways, can be frustrating.
2017-06-21T15:48:06.559845
Meghan
pythondev_help_Meghan_2017-06-21T15:48:06.559845
1,498,060,086.559845
82,748
pythondev
help
sounds like the opposite of a dream.
2017-06-21T15:48:33.569728
Johana
pythondev_help_Johana_2017-06-21T15:48:33.569728
1,498,060,113.569728
82,749
pythondev
help
php
2017-06-21T15:48:35.570551
Johana
pythondev_help_Johana_2017-06-21T15:48:35.570551
1,498,060,115.570551
82,750
pythondev
help
comatose
2017-06-21T15:48:49.575497
Johana
pythondev_help_Johana_2017-06-21T15:48:49.575497
1,498,060,129.575497
82,751
pythondev
help
Well, learning how to do deal with it is fun, and the documentation is lacking and somewhat outdated.
2017-06-21T15:48:54.576942
Meghan
pythondev_help_Meghan_2017-06-21T15:48:54.576942
1,498,060,134.576942
82,752
pythondev
help
mummification
2017-06-21T15:49:06.581992
Johana
pythondev_help_Johana_2017-06-21T15:49:06.581992
1,498,060,146.581992
82,753
pythondev
help
That's a dangerous proposition. I don't care about the language, the issue is leaking a database and relations to an API. It's good to try to have some separation of the view layer and the persistence layer
2017-06-21T15:49:14.585852
Beula
pythondev_help_Beula_2017-06-21T15:49:14.585852
1,498,060,154.585852
82,754
pythondev
help
It is nice not having to deal with mysql library deficiencies and install issues. Also makes it easier to protect a database.
2017-06-21T15:49:18.587327
Meghan
pythondev_help_Meghan_2017-06-21T15:49:18.587327
1,498,060,158.587327
82,755
pythondev
help
We're using stored procedure calls through the rest api, so very little is exposed to the user, and it's per key for access.
2017-06-21T15:50:00.602382
Meghan
pythondev_help_Meghan_2017-06-21T15:50:00.602382
1,498,060,200.602382
82,756
pythondev
help
i'm mostly just joking around. sorry i can't be more help.
2017-06-21T15:50:14.607850
Johana
pythondev_help_Johana_2017-06-21T15:50:14.607850
1,498,060,214.60785
82,757
pythondev
help
Just hoping I don't have to call my stored procedure once per row to insert... it's going to be hundreds of thousands of rows.
2017-06-21T15:50:53.622093
Meghan
pythondev_help_Meghan_2017-06-21T15:50:53.622093
1,498,060,253.622093
82,758
pythondev
help
Are you locked into DreamFactory?
2017-06-21T15:51:56.644774
Deedee
pythondev_help_Deedee_2017-06-21T15:51:56.644774
1,498,060,316.644774
82,759
pythondev
help
That is good to hear, though sprocs scare me for other reasons :joy: . Bad flashbacks
2017-06-21T15:52:48.663167
Beula
pythondev_help_Beula_2017-06-21T15:52:48.663167
1,498,060,368.663167
82,760
pythondev
help
No. We've been using it for a few months though.
2017-06-21T15:53:10.670775
Meghan
pythondev_help_Meghan_2017-06-21T15:53:10.670775
1,498,060,390.670775
82,761
pythondev
help
Had never heard of it before, looking through their site, looks solid. Last couple of API's I did were w/ Slim (PHP framework). Sorry, can't help.
2017-06-21T15:55:15.716229
Deedee
pythondev_help_Deedee_2017-06-21T15:55:15.716229
1,498,060,515.716229
82,762
pythondev
help
If we keep breaking the mysql cluster maybe we'll switch to postgres and something else. :slightly_smiling_face:
2017-06-21T15:59:55.821476
Meghan
pythondev_help_Meghan_2017-06-21T15:59:55.821476
1,498,060,795.821476
82,763
pythondev
help
crunchy mysql
2017-06-21T16:00:11.828479
Meg
pythondev_help_Meg_2017-06-21T16:00:11.828479
1,498,060,811.828479
82,764
pythondev
help
Does anyone have experience making large requests to facebook endpoints?
2017-06-21T16:00:21.832368
Winnifred
pythondev_help_Winnifred_2017-06-21T16:00:21.832368
1,498,060,821.832368
82,765
pythondev
help
What's that?
2017-06-21T16:00:23.833097
Meghan
pythondev_help_Meghan_2017-06-21T16:00:23.833097
1,498,060,823.833097
82,766
pythondev
help
<@Meghan> just me being facetious
2017-06-21T16:01:01.848008
Meg
pythondev_help_Meg_2017-06-21T16:01:01.848008
1,498,060,861.848008
82,767
pythondev
help
oh, okay.
2017-06-21T16:01:09.851061
Meghan
pythondev_help_Meghan_2017-06-21T16:01:09.851061
1,498,060,869.851061
82,768
pythondev
help
<@Winnifred> not here, sorry
2017-06-21T16:01:26.857681
Meg
pythondev_help_Meg_2017-06-21T16:01:26.857681
1,498,060,886.857681
82,769
pythondev
help
<@Winnifred> yes - what kinds of requests
2017-06-21T16:59:04.104289
Martha
pythondev_help_Martha_2017-06-21T16:59:04.104289
1,498,064,344.104289
82,770
pythondev
help
endpoints related to advertising campaigns! /campaigns, /adsets, /ads
2017-06-21T17:00:00.123984
Winnifred
pythondev_help_Winnifred_2017-06-21T17:00:00.123984
1,498,064,400.123984
82,771
pythondev
help
Ah I dealt more so with querying and pulling info on pages
2017-06-21T17:00:48.142825
Martha
pythondev_help_Martha_2017-06-21T17:00:48.142825
1,498,064,448.142825
82,772
pythondev
help
but what kind of stuff are you wondering about?
2017-06-21T17:00:56.145543
Martha
pythondev_help_Martha_2017-06-21T17:00:56.145543
1,498,064,456.145543
82,773
pythondev
help
efficient ways to grab several thousand records/json arrays
2017-06-21T17:03:01.189477
Winnifred
pythondev_help_Winnifred_2017-06-21T17:03:01.189477
1,498,064,581.189477
82,774
pythondev
help
u can use python with just requests and json thats what I always use
2017-06-21T17:05:43.244936
Martha
pythondev_help_Martha_2017-06-21T17:05:43.244936
1,498,064,743.244936
82,775
pythondev
help
actually just with requests even
2017-06-21T17:05:53.247870
Martha
pythondev_help_Martha_2017-06-21T17:05:53.247870
1,498,064,753.24787
82,776
pythondev
help
`requests.get('url').json()` you just want to look at their documentation and dig a little to find out how you can make the most requests possible - because some of their apis do allow batching, or multiple queries at one time
2017-06-21T17:06:35.261620
Martha
pythondev_help_Martha_2017-06-21T17:06:35.261620
1,498,064,795.26162
82,777
pythondev
help
hey what is the best way to write a list of json objects to a file
2017-06-21T17:20:29.524814
Thelma
pythondev_help_Thelma_2017-06-21T17:20:29.524814
1,498,065,629.524814
82,778
pythondev
help
I was thinking of writing it into a csv
2017-06-21T17:21:42.547010
Thelma
pythondev_help_Thelma_2017-06-21T17:21:42.547010
1,498,065,702.54701
82,779
pythondev
help
where each row is a basically a json object or should I save it as a json file?
2017-06-21T17:23:33.580689
Thelma
pythondev_help_Thelma_2017-06-21T17:23:33.580689
1,498,065,813.580689
82,780
pythondev
help
<@Thelma> You should probably either do a CSV, which would mean breaking the JSON into columns in your CSV or just a file where each line is a new JSON object
2017-06-21T17:24:10.591940
Beula
pythondev_help_Beula_2017-06-21T17:24:10.591940
1,498,065,850.59194
82,781
pythondev
help
You could make the JSON a column of the CSV, technically, but that would be kind of awkward to use again
2017-06-21T17:24:25.596665
Beula
pythondev_help_Beula_2017-06-21T17:24:25.596665
1,498,065,865.596665
82,782
pythondev
help
yeah that is very awkward and hard to use I am thinking of latter
2017-06-21T17:24:46.602830
Thelma
pythondev_help_Thelma_2017-06-21T17:24:46.602830
1,498,065,886.60283
82,783
pythondev
help
Are you going to want to search them for anything? If so - you may be best served to dump the contents into a database so you can query and such
2017-06-21T17:26:36.636405
Beula
pythondev_help_Beula_2017-06-21T17:26:36.636405
1,498,065,996.636405
82,784
pythondev
help
yeah right now I just want to work with files and if needed we can move to db
2017-06-21T17:27:04.645070
Thelma
pythondev_help_Thelma_2017-06-21T17:27:04.645070
1,498,066,024.64507
82,785
pythondev
help
how big is the file
2017-06-21T17:27:29.652637
Martha
pythondev_help_Martha_2017-06-21T17:27:29.652637
1,498,066,049.652637
82,786
pythondev
help
its quite small 1200x250x4 float array is basically what it is
2017-06-21T17:28:31.670855
Thelma
pythondev_help_Thelma_2017-06-21T17:28:31.670855
1,498,066,111.670855
82,787
pythondev
help
dump it as json then either transfor in refine in a matter of seconds or drop it on here if its small enough: <https://konklone.io/json/>
2017-06-21T17:28:34.671682
Martha
pythondev_help_Martha_2017-06-21T17:28:34.671682
1,498,066,114.671682
82,788
pythondev
help
oh it is better if I automate it I just dumped as a json object
2017-06-21T17:30:02.698747
Thelma
pythondev_help_Thelma_2017-06-21T17:30:02.698747
1,498,066,202.698747
82,789
pythondev
help
thanks guys!
2017-06-21T17:30:12.702097
Thelma
pythondev_help_Thelma_2017-06-21T17:30:12.702097
1,498,066,212.702097
82,790
pythondev
help
hey guys I have a quick question ``` dict = {....} keys = dict.keys() values = dict.values() dict2 = dict(zip(keys,values) ``` will dict and dict2 be the same always?
2017-06-21T18:39:57.755010
Thelma
pythondev_help_Thelma_2017-06-21T18:39:57.755010
1,498,070,397.75501
82,791
pythondev
help
since dictionaries are unordered, I would suspect the output of zip to produce the same results as the original dict, barring mutation of keys or values
2017-06-21T19:00:04.993729
Dorothy
pythondev_help_Dorothy_2017-06-21T19:00:04.993729
1,498,071,604.993729
82,792
pythondev
help
this is my best guess
2017-06-21T19:00:26.999098
Dorothy
pythondev_help_Dorothy_2017-06-21T19:00:26.999098
1,498,071,626.999098
82,793
pythondev
help
contents and keys i'm confident in
2017-06-21T19:00:57.005877
Dorothy
pythondev_help_Dorothy_2017-06-21T19:00:57.005877
1,498,071,657.005877
82,794
pythondev
help
ordering, not sure but think they probably will be the same
2017-06-21T19:01:12.008878
Dorothy
pythondev_help_Dorothy_2017-06-21T19:01:12.008878
1,498,071,672.008878
82,795
pythondev
help
I assume that shallow copy or deep copy is not related to your problem
2017-06-21T19:03:59.042046
Dorothy
pythondev_help_Dorothy_2017-06-21T19:03:59.042046
1,498,071,839.042046
82,796
pythondev
help
if uncertain, instead of `dict == dict2` you could ask `all(dict.keys() in dict2)`
2017-06-21T19:10:20.114872
Dorothy
pythondev_help_Dorothy_2017-06-21T19:10:20.114872
1,498,072,220.114872
82,797
pythondev
help
Since dictionaries don't keep order like <@Dorothy> said, the calls to `keys` and `values` are not guaranteed to be in the same order (though the resulting lists _do_ maintain their order but are not created in order). Because of that, zipping them back together will not be equal (because keys may have new values and order may not be the same). However if you used an `OrderedDict` then keys and values lists will maintain order, so calling `zip` in that instance would result in the same results
2017-06-21T19:57:13.589685
Patty
pythondev_help_Patty_2017-06-21T19:57:13.589685
1,498,075,033.589685
82,798
pythondev
help
hi, i'm getting TypeError: 'dict' object is not callable when using data = request.json(). any ideas why? thanks in advance!
2017-06-21T22:29:47.835320
Vanetta
pythondev_help_Vanetta_2017-06-21T22:29:47.835320
1,498,084,187.83532
82,799
pythondev
help
hi <@Vanetta>, what is `request`?
2017-06-21T22:35:55.882916
Winnifred
pythondev_help_Winnifred_2017-06-21T22:35:55.882916
1,498,084,555.882916
82,800
pythondev
help
hrm, I've never used bottle but it looks like `request` is implicit. Is it safe for me to assume you want to convert the request to json?
2017-06-21T22:41:59.927540
Winnifred
pythondev_help_Winnifred_2017-06-21T22:41:59.927540
1,498,084,919.92754
82,801
pythondev
help
<@Winnifred> yeah
2017-06-21T22:44:23.945159
Vanetta
pythondev_help_Vanetta_2017-06-21T22:44:23.945159
1,498,085,063.945159
82,802