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
ok
2019-02-14T17:28:32.750800
Misha
pythondev_help_Misha_2019-02-14T17:28:32.750800
1,550,165,312.7508
8,821
pythondev
help
None
2019-02-14T17:29:55.750900
Misha
pythondev_help_Misha_2019-02-14T17:29:55.750900
1,550,165,395.7509
8,822
pythondev
help
None
2019-02-14T17:31:04.751200
Misha
pythondev_help_Misha_2019-02-14T17:31:04.751200
1,550,165,464.7512
8,823
pythondev
help
<@Marc> did you get it
2019-02-14T17:31:51.751900
Misha
pythondev_help_Misha_2019-02-14T17:31:51.751900
1,550,165,511.7519
8,824
pythondev
help
Yeah, I see
2019-02-14T17:32:44.752100
Marc
pythondev_help_Marc_2019-02-14T17:32:44.752100
1,550,165,564.7521
8,825
pythondev
help
I'm kind of a newb too, especially when it comes to pandas
2019-02-14T17:33:21.752600
Marc
pythondev_help_Marc_2019-02-14T17:33:21.752600
1,550,165,601.7526
8,826
pythondev
help
but it looks like to you have to_datetime method there
2019-02-14T17:33:28.752900
Marc
pythondev_help_Marc_2019-02-14T17:33:28.752900
1,550,165,608.7529
8,827
pythondev
help
that you can call
2019-02-14T17:33:29.753200
Marc
pythondev_help_Marc_2019-02-14T17:33:29.753200
1,550,165,609.7532
8,828
pythondev
help
None
2019-02-14T17:34:01.753400
Misha
pythondev_help_Misha_2019-02-14T17:34:01.753400
1,550,165,641.7534
8,829
pythondev
help
You dnt have to post screenshots
2019-02-14T17:34:53.754700
Marc
pythondev_help_Marc_2019-02-14T17:34:53.754700
1,550,165,693.7547
8,830
pythondev
help
if you click the _ and click "Code Snippet"
2019-02-14T17:34:58.755000
Marc
pythondev_help_Marc_2019-02-14T17:34:58.755000
1,550,165,698.755
8,831
pythondev
help
I mean the +
2019-02-14T17:35:02.755400
Marc
pythondev_help_Marc_2019-02-14T17:35:02.755400
1,550,165,702.7554
8,832
pythondev
help
you can add code snippets
2019-02-14T17:35:05.755700
Marc
pythondev_help_Marc_2019-02-14T17:35:05.755700
1,550,165,705.7557
8,833
pythondev
help
to the chat
2019-02-14T17:35:06.755900
Marc
pythondev_help_Marc_2019-02-14T17:35:06.755900
1,550,165,706.7559
8,834
pythondev
help
pd.to_datetime(late[dateDifference]).dt.day
2019-02-14T17:36:46.757000
Marc
pythondev_help_Marc_2019-02-14T17:36:46.757000
1,550,165,806.757
8,835
pythondev
help
Ok
2019-02-14T17:36:50.757300
Misha
pythondev_help_Misha_2019-02-14T17:36:50.757300
1,550,165,810.7573
8,836
pythondev
help
you can also triple backtick for short snippets, ie `x3 follow by 3 more at the end of the snippet
2019-02-14T17:36:56.757500
Cherish
pythondev_help_Cherish_2019-02-14T17:36:56.757500
1,550,165,816.7575
8,837
pythondev
help
Oh..thanks
2019-02-14T17:37:10.758000
Misha
pythondev_help_Misha_2019-02-14T17:37:10.758000
1,550,165,830.758
8,838
pythondev
help
looks like ```pd.to_datetime(late[dateDifference]).dt.day do other stuff here's another line```
2019-02-14T17:37:14.758200
Cherish
pythondev_help_Cherish_2019-02-14T17:37:14.758200
1,550,165,834.7582
8,839
pythondev
help
like
2019-02-14T17:37:44.758800
Marc
pythondev_help_Marc_2019-02-14T17:37:44.758800
1,550,165,864.7588
8,840
pythondev
help
yeah
2019-02-14T17:37:45.759000
Marc
pythondev_help_Marc_2019-02-14T17:37:45.759000
1,550,165,865.759
8,841
pythondev
help
what me and auld said
2019-02-14T17:37:47.759300
Marc
pythondev_help_Marc_2019-02-14T17:37:47.759300
1,550,165,867.7593
8,842
pythondev
help
Ok <@Cherish> and <@Marc> :taco:
2019-02-14T17:38:05.759600
Misha
pythondev_help_Misha_2019-02-14T17:38:05.759600
1,550,165,885.7596
8,843
pythondev
help
The dateDifference is given me 1 on all column
2019-02-14T17:44:22.760300
Misha
pythondev_help_Misha_2019-02-14T17:44:22.760300
1,550,166,262.7603
8,844
pythondev
help
I think there is error
2019-02-14T17:44:33.760600
Misha
pythondev_help_Misha_2019-02-14T17:44:33.760600
1,550,166,273.7606
8,845
pythondev
help
Thanks man... got it sorted
2019-02-14T17:55:37.761000
Misha
pythondev_help_Misha_2019-02-14T17:55:37.761000
1,550,166,937.761
8,846
pythondev
help
Let me go back to read up more.... and find another challenge for myself...lol
2019-02-14T17:56:02.761600
Misha
pythondev_help_Misha_2019-02-14T17:56:02.761600
1,550,166,962.7616
8,847
pythondev
help
Pls if you know any site with alot of pandas, python, challenges that i can be working on as i am learning to improve myself on daily basis... pls DM the link to me.
2019-02-14T17:57:05.762900
Misha
pythondev_help_Misha_2019-02-14T17:57:05.762900
1,550,167,025.7629
8,848
pythondev
help
If I learn, take up challenges on daily basis,,, i will improve
2019-02-14T17:57:39.763600
Misha
pythondev_help_Misha_2019-02-14T17:57:39.763600
1,550,167,059.7636
8,849
pythondev
help
its 11.57pm here (late night) awesome night
2019-02-14T17:58:02.764100
Misha
pythondev_help_Misha_2019-02-14T17:58:02.764100
1,550,167,082.7641
8,850
pythondev
help
Hello everyone! does anyone know of a way to run a python script at startup running centOS? For windows, you would just put your script in startup folder and it runs.
2019-02-14T19:27:06.765600
Jenell
pythondev_help_Jenell_2019-02-14T19:27:06.765600
1,550,172,426.7656
8,851
pythondev
help
I'm not too familar with CentOS in particular, but `/etc/rc.d/rc.local` is usually where you'd do that in Linux systems.
2019-02-14T19:30:18.766900
Sasha
pythondev_help_Sasha_2019-02-14T19:30:18.766900
1,550,172,618.7669
8,852
pythondev
help
If you don't want to write an init script, you could use something like Supervisor
2019-02-14T19:30:46.767500
Cory
pythondev_help_Cory_2019-02-14T19:30:46.767500
1,550,172,646.7675
8,853
pythondev
help
And supervisor is already setup for doing stuff like running your script via a certain user/group, entering a virtualenv.
2019-02-14T19:32:58.769300
Cory
pythondev_help_Cory_2019-02-14T19:32:58.769300
1,550,172,778.7693
8,854
pythondev
help
etc
2019-02-14T19:33:05.769500
Cory
pythondev_help_Cory_2019-02-14T19:33:05.769500
1,550,172,785.7695
8,855
pythondev
help
Yea im looking at /etc/rc.d/rc.local right now. Im going to try putting my script there and see how it goes. I will also check out Supervisor Thanks guys!
2019-02-14T19:33:07.769600
Jenell
pythondev_help_Jenell_2019-02-14T19:33:07.769600
1,550,172,787.7696
8,856
pythondev
help
Simply put, make sure your python script starts with a python executable shebang `#!/usr/bin/python`, make the script (file) executable, ensure it's in the global path, and add/link a bash script calling it as a startup script: <https://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup>
2019-02-14T19:33:20.769700
Alison
pythondev_help_Alison_2019-02-14T19:33:20.769700
1,550,172,800.7697
8,857
pythondev
help
None
2019-02-14T19:59:47.770400
Hai
pythondev_help_Hai_2019-02-14T19:59:47.770400
1,550,174,387.7704
8,858
pythondev
help
<@Shan> <@Sasha>
2019-02-14T20:08:21.771000
Hai
pythondev_help_Hai_2019-02-14T20:08:21.771000
1,550,174,901.771
8,859
pythondev
help
The easiest way to express that is just `if b &gt; 0.75 * a:`
2019-02-14T20:11:49.772100
Sasha
pythondev_help_Sasha_2019-02-14T20:11:49.772100
1,550,175,109.7721
8,860
pythondev
help
i will be using for loop will it be possible like that? and 'a' and 'b' are not standard
2019-02-14T20:12:41.772900
Hai
pythondev_help_Hai_2019-02-14T20:12:41.772900
1,550,175,161.7729
8,861
pythondev
help
You can use whatever variables you want.
2019-02-14T20:13:08.773300
Sasha
pythondev_help_Sasha_2019-02-14T20:13:08.773300
1,550,175,188.7733
8,862
pythondev
help
great. is it possible to see the percentage of 'b' in 'a' ?
2019-02-14T20:14:39.773800
Hai
pythondev_help_Hai_2019-02-14T20:14:39.773800
1,550,175,279.7738
8,863
pythondev
help
`percent = b / a * 100`
2019-02-14T20:15:19.774100
Sasha
pythondev_help_Sasha_2019-02-14T20:15:19.774100
1,550,175,319.7741
8,864
pythondev
help
am getting '0' no matter what value i give for b
2019-02-14T20:16:09.774500
Hai
pythondev_help_Hai_2019-02-14T20:16:09.774500
1,550,175,369.7745
8,865
pythondev
help
If you're using Python 2, `/` can be integer division, so you'd need `float(b) / a * 100` to force floating-point math.
2019-02-14T20:16:50.775400
Sasha
pythondev_help_Sasha_2019-02-14T20:16:50.775400
1,550,175,410.7754
8,866
pythondev
help
perfect
2019-02-14T20:17:32.775700
Hai
pythondev_help_Hai_2019-02-14T20:17:32.775700
1,550,175,452.7757
8,867
pythondev
help
got it
2019-02-14T20:17:33.775900
Hai
pythondev_help_Hai_2019-02-14T20:17:33.775900
1,550,175,453.7759
8,868
pythondev
help
<@Sasha> is it possible to send an email if 'b' is greater then 75% in python?
2019-02-14T20:18:42.777100
Hai
pythondev_help_Hai_2019-02-14T20:18:42.777100
1,550,175,522.7771
8,869
pythondev
help
Sure. Have a look at the `smtplib` library.
2019-02-14T20:19:19.777500
Sasha
pythondev_help_Sasha_2019-02-14T20:19:19.777500
1,550,175,559.7775
8,870
pythondev
help
alright perfect. Thank you so much <@Sasha>
2019-02-14T20:20:05.777900
Hai
pythondev_help_Hai_2019-02-14T20:20:05.777900
1,550,175,605.7779
8,871
pythondev
help
Thank you so much guys for helping me. issue resolved feeling happy now :celebrate:
2019-02-15T01:08:45.779700
Kia
pythondev_help_Kia_2019-02-15T01:08:45.779700
1,550,192,925.7797
8,872
pythondev
help
Thanks, will check it out
2019-02-15T03:23:34.780800
Aleshia
pythondev_help_Aleshia_2019-02-15T03:23:34.780800
1,550,201,014.7808
8,873
pythondev
help
AttributeError : 'OpDefLibrary' object has no attribute '_apply_op_helper' Please someone help me with this
2019-02-15T04:03:28.782700
Petra
pythondev_help_Petra_2019-02-15T04:03:28.782700
1,550,203,408.7827
8,874
pythondev
help
How do I `pip install` a 3rd-party library that uses `poetry` and doesn't have setup.py?
2019-02-15T04:06:26.783200
Jettie
pythondev_help_Jettie_2019-02-15T04:06:26.783200
1,550,203,586.7832
8,875
pythondev
help
I don't think the technology is there yet. Afaik the `pyproject.toml` provide a way to build the package but pip doesn't support it for the moment
2019-02-15T04:07:16.784200
Jimmy
pythondev_help_Jimmy_2019-02-15T04:07:16.784200
1,550,203,636.7842
8,876
pythondev
help
Is the lib on Github, <@Jettie>?
2019-02-15T04:08:16.785100
Malena
pythondev_help_Malena_2019-02-15T04:08:16.785100
1,550,203,696.7851
8,877
pythondev
help
``` Collecting <git+git://github.com/malinoff/amqproto.git@eb875b5bb524ec7f8a094ab668e65b22a280608> Cloning <git://github.com/malinoff/amqproto.git> (to revision eb875b5bb524ec7f8a094ab668e65b22a280608) to /tmp/pip-req-build-l_1aw81f Did not find branch or tag 'eb875b5bb524ec7f8a094ab668e65b22a280608', assuming rev...
2019-02-15T04:08:17.785200
Jettie
pythondev_help_Jettie_2019-02-15T04:08:17.785200
1,550,203,697.7852
8,878
pythondev
help
sorry for a wall of text :(
2019-02-15T04:08:27.785700
Jettie
pythondev_help_Jettie_2019-02-15T04:08:27.785700
1,550,203,707.7857
8,879
pythondev
help
There is a related Poetry issue, and people claim it's resolved
2019-02-15T04:09:08.786400
Jettie
pythondev_help_Jettie_2019-02-15T04:09:08.786400
1,550,203,748.7864
8,880
pythondev
help
<https://github.com/sdispater/poetry/issues/321>
2019-02-15T04:09:09.786600
Jettie
pythondev_help_Jettie_2019-02-15T04:09:09.786600
1,550,203,749.7866
8,881
pythondev
help
yes
2019-02-15T04:09:18.786800
Jettie
pythondev_help_Jettie_2019-02-15T04:09:18.786800
1,550,203,758.7868
8,882
pythondev
help
&gt; Pip 19.0 was [released](<https://pip.pypa.io/en/stable/news/#id4>) on 22 January 2019, and I have just successfully Pip-installed a Poetry-managed Python package from a git repository without `setup.py`. So I guess this issue can be closed. I have the latest `pip` and `setuptools`, and it definitely doesn't work ...
2019-02-15T04:10:00.787600
Jettie
pythondev_help_Jettie_2019-02-15T04:10:00.787600
1,550,203,800.7876
8,883
pythondev
help
What's the package?
2019-02-15T04:10:24.788200
Malena
pythondev_help_Malena_2019-02-15T04:10:24.788200
1,550,203,824.7882
8,884
pythondev
help
wrong project :smile:
2019-02-15T04:10:47.789500
Jimmy
pythondev_help_Jimmy_2019-02-15T04:10:47.789500
1,550,203,847.7895
8,885
pythondev
help
Using `sqlalchemy`, is there any good reason to use `.all()`? or should I just iterate over the query everytime?
2019-02-15T04:10:50.789700
Philip
pythondev_help_Philip_2019-02-15T04:10:50.789700
1,550,203,850.7897
8,886
pythondev
help
<@Malena> it's `amqproto` by malinoff
2019-02-15T04:10:54.789800
Jettie
pythondev_help_Jettie_2019-02-15T04:10:54.789800
1,550,203,854.7898
8,887
pythondev
help
do you use the `-e` flags ?
2019-02-15T04:12:17.791300
Jimmy
pythondev_help_Jimmy_2019-02-15T04:12:17.791300
1,550,203,937.7913
8,888
pythondev
help
That worked for me. (not the -e)
2019-02-15T04:12:25.791500
Malena
pythondev_help_Malena_2019-02-15T04:12:25.791500
1,550,203,945.7915
8,889
pythondev
help
<@Philip> I guess sometimes you just don't do anything with a result set, and it's not big, so you go with `all`
2019-02-15T04:12:33.791700
Jettie
pythondev_help_Jettie_2019-02-15T04:12:33.791700
1,550,203,953.7917
8,890
pythondev
help
<@Malena> can you post the exact command? :o
2019-02-15T04:13:27.792300
Jettie
pythondev_help_Jettie_2019-02-15T04:13:27.792300
1,550,204,007.7923
8,891
pythondev
help
doesn't work for me :smile:
2019-02-15T04:13:55.792700
Jimmy
pythondev_help_Jimmy_2019-02-15T04:13:55.792700
1,550,204,035.7927
8,892
pythondev
help
None
2019-02-15T04:13:57.792800
Malena
pythondev_help_Malena_2019-02-15T04:13:57.792800
1,550,204,037.7928
8,893
pythondev
help
literally just `pip install amqproto`
2019-02-15T04:14:05.793400
Malena
pythondev_help_Malena_2019-02-15T04:14:05.793400
1,550,204,045.7934
8,894
pythondev
help
Python 3.5.1 if that makes a difference.
2019-02-15T04:14:25.794200
Malena
pythondev_help_Malena_2019-02-15T04:14:25.794200
1,550,204,065.7942
8,895
pythondev
help
it's a _very_ old version
2019-02-15T04:14:27.794300
Jettie
pythondev_help_Jettie_2019-02-15T04:14:27.794300
1,550,204,067.7943
8,896
pythondev
help
leovp wants to install from github
2019-02-15T04:14:38.794800
Jimmy
pythondev_help_Jimmy_2019-02-15T04:14:38.794800
1,550,204,078.7948
8,897
pythondev
help
I see, thanks! :taco:
2019-02-15T04:14:46.795200
Philip
pythondev_help_Philip_2019-02-15T04:14:46.795200
1,550,204,086.7952
8,898
pythondev
help
Oh true. What command are you using?
2019-02-15T04:14:46.795500
Malena
pythondev_help_Malena_2019-02-15T04:14:46.795500
1,550,204,086.7955
8,899
pythondev
help
malinoff stopped publishing to PyPI since the project is in alpha / beta stage
2019-02-15T04:15:09.796100
Jettie
pythondev_help_Jettie_2019-02-15T04:15:09.796100
1,550,204,109.7961
8,900
pythondev
help
`pip install '<git+git://github.com/malinoff/amqproto.git@eb875b5bb524ec7f8a094ab668e65b22a280608>'`
2019-02-15T04:15:26.796400
Jettie
pythondev_help_Jettie_2019-02-15T04:15:26.796400
1,550,204,126.7964
8,901
pythondev
help
`pip install <git+git://github.com/pyslackers/sir-bot-a-lot-2.git@master>` work on my laptop
2019-02-15T04:17:40.796700
Jimmy
pythondev_help_Jimmy_2019-02-15T04:17:40.796700
1,550,204,260.7967
8,902
pythondev
help
``` [build-system] requires = ["poetry&gt;=0.12"] build-backend = "poetry.masonry.api" ```
2019-02-15T04:18:38.797000
Jimmy
pythondev_help_Jimmy_2019-02-15T04:18:38.797000
1,550,204,318.797
8,903
pythondev
help
is not present in the amqproto `pyproject.toml`
2019-02-15T04:18:52.797400
Jimmy
pythondev_help_Jimmy_2019-02-15T04:18:52.797400
1,550,204,332.7974
8,904
pythondev
help
that's probably the reason <@Chester>
2019-02-15T04:19:11.797700
Jimmy
pythondev_help_Jimmy_2019-02-15T04:19:11.797700
1,550,204,351.7977
8,905
pythondev
help
you mean the function hackrf_spiflash -r?
2019-02-15T04:19:54.797800
Lorinda
pythondev_help_Lorinda_2019-02-15T04:19:54.797800
1,550,204,394.7978
8,906
pythondev
help
I can't find any info whatsoever
2019-02-15T04:20:09.798000
Lorinda
pythondev_help_Lorinda_2019-02-15T04:20:09.798000
1,550,204,409.798
8,907
pythondev
help
I guess I'll just use poetry too
2019-02-15T04:30:05.798600
Jettie
pythondev_help_Jettie_2019-02-15T04:30:05.798600
1,550,205,005.7986
8,908
pythondev
help
thanks everyone :p
2019-02-15T04:32:22.798800
Jettie
pythondev_help_Jettie_2019-02-15T04:32:22.798800
1,550,205,142.7988
8,909
pythondev
help
open a PR on amqproto to add the `build-system` part :wink:
2019-02-15T04:33:14.799200
Jimmy
pythondev_help_Jimmy_2019-02-15T04:33:14.799200
1,550,205,194.7992
8,910
pythondev
help
Anyone pretty hot on creating data frames? I have a dictionary of dictionaries I am wanting to create a clean data frame from
2019-02-15T05:09:54.800500
Waldo
pythondev_help_Waldo_2019-02-15T05:09:54.800500
1,550,207,394.8005
8,911
pythondev
help
yo, what are you planning to do?
2019-02-15T05:10:18.800700
Mica
pythondev_help_Mica_2019-02-15T05:10:18.800700
1,550,207,418.8007
8,912
pythondev
help
None
2019-02-15T05:10:23.800900
Waldo
pythondev_help_Waldo_2019-02-15T05:10:23.800900
1,550,207,423.8009
8,913
pythondev
help
I have the above dynamically created dictonary
2019-02-15T05:10:36.801500
Waldo
pythondev_help_Waldo_2019-02-15T05:10:36.801500
1,550,207,436.8015
8,914
pythondev
help
Basically looking at sales by day, by sku with each sku having qty sold and revenue
2019-02-15T05:11:01.802100
Waldo
pythondev_help_Waldo_2019-02-15T05:11:01.802100
1,550,207,461.8021
8,915
pythondev
help
ok, do you know what you want the DF to look like?
2019-02-15T05:12:17.802500
Mica
pythondev_help_Mica_2019-02-15T05:12:17.802500
1,550,207,537.8025
8,916
pythondev
help
None
2019-02-15T05:12:17.802600
Waldo
pythondev_help_Waldo_2019-02-15T05:12:17.802600
1,550,207,537.8026
8,917
pythondev
help
My dataframe looks like that so far when I try: pd.DataFrame.from_dict(order_sheet)
2019-02-15T05:12:32.803300
Waldo
pythondev_help_Waldo_2019-02-15T05:12:32.803300
1,550,207,552.8033
8,918
pythondev
help
I always get a little confused on the base structure of the raw data and not even sure if the dictionary structure is the right way of doing this!
2019-02-15T05:13:27.804100
Waldo
pythondev_help_Waldo_2019-02-15T05:13:27.804100
1,550,207,607.8041
8,919
pythondev
help
so to generate a DF from a dict, you need a dict with an individual key andall of the values to be a list
2019-02-15T05:13:55.804700
Mica
pythondev_help_Mica_2019-02-15T05:13:55.804700
1,550,207,635.8047
8,920