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
`parameter 'ws' is not used`
2017-12-07T12:04:54.000546
Glinda
pythondev_help_Glinda_2017-12-07T12:04:54.000546
1,512,648,294.000546
102,603
pythondev
help
<@Glinda> you can suppress individual types of error by pressing alt+enter in PyCharm and choosing "Ignore errors like this"
2017-12-07T12:05:12.000315
Seema
pythondev_help_Seema_2017-12-07T12:05:12.000315
1,512,648,312.000315
102,604
pythondev
help
hmmm, I don't know if it differentiates on comments, do you? had never really thought/tried
2017-12-07T12:05:32.000108
Seema
pythondev_help_Seema_2017-12-07T12:05:32.000108
1,512,648,332.000108
102,605
pythondev
help
That's usually an issue I want to keep.
2017-12-07T12:05:42.000210
Glinda
pythondev_help_Glinda_2017-12-07T12:05:42.000210
1,512,648,342.00021
102,606
pythondev
help
agreed, I wonder if there's a way to get more granular, /wonder
2017-12-07T12:06:17.000191
Seema
pythondev_help_Seema_2017-12-07T12:06:17.000191
1,512,648,377.000191
102,607
pythondev
help
as in that's about as far I'm willing to go even though I probably have run across that exact thing
2017-12-07T12:06:47.000259
Seema
pythondev_help_Seema_2017-12-07T12:06:47.000259
1,512,648,407.000259
102,608
pythondev
help
<http://pep8.readthedocs.io/en/latest/intro.html#configuration>
2017-12-07T12:07:17.000356
Seema
pythondev_help_Seema_2017-12-07T12:07:17.000356
1,512,648,437.000356
102,609
pythondev
help
<https://www.jetbrains.com/help/pycharm/suppressing-inspections.html>
2017-12-07T12:07:41.000877
Glinda
pythondev_help_Glinda_2017-12-07T12:07:41.000877
1,512,648,461.000877
102,610
pythondev
help
sigh, pycharm used pep8 to justify pep8 error handling
2017-12-07T12:08:10.000518
Seema
pythondev_help_Seema_2017-12-07T12:08:10.000518
1,512,648,490.000518
102,611
pythondev
help
```(*) In the default configuration, the checks E121, E123, E126, E133, E226, E241, E242, E704 and W503 are ignored because they are not rules unanimously accepted, and PEP 8 does not enforce them. The check E133 is mutually exclusive with check E123. Use switch --hang-closing to report E133 instead of E123. (^) These...
2017-12-07T12:08:26.000202
Seema
pythondev_help_Seema_2017-12-07T12:08:26.000202
1,512,648,506.000202
102,612
pythondev
help
come again?
2017-12-07T12:08:26.000238
Glinda
pythondev_help_Glinda_2017-12-07T12:08:26.000238
1,512,648,506.000238
102,613
pythondev
help
errr getting my style and my zen mixed up, they used Zen of Python to justify their Pep8
2017-12-07T12:09:45.000796
Seema
pythondev_help_Seema_2017-12-07T12:09:45.000796
1,512,648,585.000796
102,614
pythondev
help
I need to find certain identifiers(datetime related keywords) in JQL (jira query language) and possibly remove them without breaking syntax. How do I go about parsing this JQL? Is there a well known tool or a better approach?
2017-12-07T12:13:13.000358
Cordie
pythondev_help_Cordie_2017-12-07T12:13:13.000358
1,512,648,793.000358
102,615
pythondev
help
```# noinspection PyUnusedLocal def on_close(ws): <http://logger.info|logger.info>('Connection Closed')```
2017-12-07T12:13:17.000224
Glinda
pythondev_help_Glinda_2017-12-07T12:13:17.000224
1,512,648,797.000224
102,616
pythondev
help
that works.
2017-12-07T12:13:19.000210
Glinda
pythondev_help_Glinda_2017-12-07T12:13:19.000210
1,512,648,799.00021
102,617
pythondev
help
<@Cordie> did you checked out jira lib? <https://jira.readthedocs.io/en/master/>
2017-12-07T12:31:06.000539
Jeffery
pythondev_help_Jeffery_2017-12-07T12:31:06.000539
1,512,649,866.000539
102,618
pythondev
help
waat that never came up in my google search
2017-12-07T12:32:38.000700
Cordie
pythondev_help_Cordie_2017-12-07T12:32:38.000700
1,512,649,958.0007
102,619
pythondev
help
@leo where are datetime saved? Changelog?
2017-12-07T12:32:48.000262
Jeffery
pythondev_help_Jeffery_2017-12-07T12:32:48.000262
1,512,649,968.000262
102,620
pythondev
help
no for example
2017-12-07T12:33:03.000111
Cordie
pythondev_help_Cordie_2017-12-07T12:33:03.000111
1,512,649,983.000111
102,621
pythondev
help
It depends. In my Opinion you can‘t find all via jql
2017-12-07T12:33:44.000068
Jeffery
pythondev_help_Jeffery_2017-12-07T12:33:44.000068
1,512,650,024.000068
102,622
pythondev
help
jql=“label=‘string’ AND blah &gt; ‘2017-10-11’
2017-12-07T12:33:53.000140
Cordie
pythondev_help_Cordie_2017-12-07T12:33:53.000140
1,512,650,033.00014
102,623
pythondev
help
i want to remove “blah &gt; ‘2017-10-11’”
2017-12-07T12:34:12.000218
Cordie
pythondev_help_Cordie_2017-12-07T12:34:12.000218
1,512,650,052.000218
102,624
pythondev
help
but it is not as simple as using just a regex
2017-12-07T12:34:32.000243
Cordie
pythondev_help_Cordie_2017-12-07T12:34:32.000243
1,512,650,072.000243
102,625
pythondev
help
i think the link you provided is more to do with working with jira’s api
2017-12-07T12:35:18.000794
Cordie
pythondev_help_Cordie_2017-12-07T12:35:18.000794
1,512,650,118.000794
102,626
pythondev
help
my problem is more on parsing a language…
2017-12-07T12:35:30.000228
Cordie
pythondev_help_Cordie_2017-12-07T12:35:30.000228
1,512,650,130.000228
102,627
pythondev
help
I see. I can‘t really help you. But just of curiosity - what is the use case? Who wants to do this change? And through which interface?
2017-12-07T12:42:43.000088
Jeffery
pythondev_help_Jeffery_2017-12-07T12:42:43.000088
1,512,650,563.000088
102,628
pythondev
help
<@Cordie> are these values strings or datetimes?
2017-12-07T12:47:39.000235
Glinda
pythondev_help_Glinda_2017-12-07T12:47:39.000235
1,512,650,859.000235
102,629
pythondev
help
<@Jeffery> it’s just an app I am building. Jira has a kanban board and i am importing the jql that populates the board
2017-12-07T12:48:45.000335
Cordie
pythondev_help_Cordie_2017-12-07T12:48:45.000335
1,512,650,925.000335
102,630
pythondev
help
<@Glinda> well i need to cover all hahaha
2017-12-07T12:49:08.000028
Cordie
pythondev_help_Cordie_2017-12-07T12:49:08.000028
1,512,650,948.000028
102,631
pythondev
help
I don’t really see the value of letting you know there are unused params when it can simplify functions or signal you’re doing something off ¯\_(ツ)_/¯
2017-12-07T13:26:39.000390
Patty
pythondev_help_Patty_2017-12-07T13:26:39.000390
1,512,653,199.00039
102,632
pythondev
help
why would you be writing functions with unused params anyway?
2017-12-07T13:34:45.000262
Patty
pythondev_help_Patty_2017-12-07T13:34:45.000262
1,512,653,685.000262
102,633
pythondev
help
Yeah, I agree
2017-12-07T13:35:43.000258
Myong
pythondev_help_Myong_2017-12-07T13:35:43.000258
1,512,653,743.000258
102,634
pythondev
help
Anyone here use jupyter notebooks &amp; anaconda to manage their environments? I’ve managed to create and manage my packages using the enviornments from anaconda but I can’t seem to get jupyter notebooks to read from the right enviornment too
2017-12-07T13:39:57.000185
Cecille
pythondev_help_Cecille_2017-12-07T13:39:57.000185
1,512,653,997.000185
102,635
pythondev
help
joe, it's something with `websocket`
2017-12-07T13:40:22.000270
Glinda
pythondev_help_Glinda_2017-12-07T13:40:22.000270
1,512,654,022.00027
102,636
pythondev
help
<@Rheba>
2017-12-07T13:40:28.000111
Glinda
pythondev_help_Glinda_2017-12-07T13:40:28.000111
1,512,654,028.000111
102,637
pythondev
help
I’ve legit been stuck for 2 days now on this issue :cry:
2017-12-07T13:40:29.000571
Cecille
pythondev_help_Cecille_2017-12-07T13:40:29.000571
1,512,654,029.000571
102,638
pythondev
help
<https://stackoverflow.com/questions/37085665/in-which-conda-environment-is-jupyter-executing>
2017-12-07T13:42:21.000460
Glinda
pythondev_help_Glinda_2017-12-07T13:42:21.000460
1,512,654,141.00046
102,639
pythondev
help
I'm a little out of practice with jupyter/ conda but me switching away from those two was partly due to issues with virtual environments.
2017-12-07T13:43:13.000230
Glinda
pythondev_help_Glinda_2017-12-07T13:43:13.000230
1,512,654,193.00023
102,640
pythondev
help
<@Glinda> if it’s `on_open` then you just do `ws.on_open = on_open` and drop the `ws` argument since it’s not used. it’s not required for websockets
2017-12-07T13:43:48.000587
Patty
pythondev_help_Patty_2017-12-07T13:43:48.000587
1,512,654,228.000587
102,641
pythondev
help
Dude it fucking blows <@Glinda> but every data scientist I run into uses it :disappointed:
2017-12-07T13:44:00.000763
Cecille
pythondev_help_Cecille_2017-12-07T13:44:00.000763
1,512,654,240.000763
102,642
pythondev
help
So just drop ws?
2017-12-07T13:44:40.000129
Glinda
pythondev_help_Glinda_2017-12-07T13:44:40.000129
1,512,654,280.000129
102,643
pythondev
help
yep
2017-12-07T13:44:43.000344
Patty
pythondev_help_Patty_2017-12-07T13:44:43.000344
1,512,654,283.000344
102,644
pythondev
help
same with in `on_close`
2017-12-07T13:44:49.000294
Patty
pythondev_help_Patty_2017-12-07T13:44:49.000294
1,512,654,289.000294
102,645
pythondev
help
Hmm, must have been a python 2 thing
2017-12-07T13:44:53.000343
Glinda
pythondev_help_Glinda_2017-12-07T13:44:53.000343
1,512,654,293.000343
102,646
pythondev
help
Bunch of what I was doing was ported from python 2 :confused:
2017-12-07T13:45:07.000487
Glinda
pythondev_help_Glinda_2017-12-07T13:45:07.000487
1,512,654,307.000487
102,647
pythondev
help
Aite thank you.
2017-12-07T13:45:20.000650
Glinda
pythondev_help_Glinda_2017-12-07T13:45:20.000650
1,512,654,320.00065
102,648
pythondev
help
if any argument _must_ be there and isn’t used, naming it `_` is also a preferred method
2017-12-07T13:45:58.000408
Patty
pythondev_help_Patty_2017-12-07T13:45:58.000408
1,512,654,358.000408
102,649
pythondev
help
<@Cecille> the problem from transitioning from anaconda to pip is that you're going to run into issues with numpy/ pandas.
2017-12-07T13:46:42.000097
Glinda
pythondev_help_Glinda_2017-12-07T13:46:42.000097
1,512,654,402.000097
102,650
pythondev
help
conda is great for installing those packages.
2017-12-07T13:46:50.000062
Glinda
pythondev_help_Glinda_2017-12-07T13:46:50.000062
1,512,654,410.000062
102,651
pythondev
help
And it's really not difficult for someone who has experience with python to do it, but dealing with the binaries _while_ learning python and wanting todo data science is probably the biggest reason I see people pushc onda.
2017-12-07T13:47:26.000661
Glinda
pythondev_help_Glinda_2017-12-07T13:47:26.000661
1,512,654,446.000661
102,652
pythondev
help
If you have a student id, you can get pycharm pro for free and they are working their darndest to steal that data science money from spyder/ conda.
2017-12-07T13:48:18.000552
Glinda
pythondev_help_Glinda_2017-12-07T13:48:18.000552
1,512,654,498.000552
102,653
pythondev
help
Give me a second, I want to see if the new changes make it easy to deal with numpy/ pandas in a windows
2017-12-07T13:50:04.000450
Glinda
pythondev_help_Glinda_2017-12-07T13:50:04.000450
1,512,654,604.00045
102,654
pythondev
help
btw <@Glinda> you’re right, the `ws` lib is going to provide that argument by default, so `_` may be better if you aren’t using it
2017-12-07T13:53:19.000566
Patty
pythondev_help_Patty_2017-12-07T13:53:19.000566
1,512,654,799.000566
102,655
pythondev
help
Thanks man, the main reason for asking isn't finding a working solution but best practice.
2017-12-07T13:53:57.000593
Glinda
pythondev_help_Glinda_2017-12-07T13:53:57.000593
1,512,654,837.000593
102,656
pythondev
help
yeah it made me realize that it may be forcing that positional arg in, feels like it should be a kwarg but hey i didnt implement it ¯\_(ツ)_/¯
2017-12-07T13:54:40.000331
Patty
pythondev_help_Patty_2017-12-07T13:54:40.000331
1,512,654,880.000331
102,657
pythondev
help
It's probably better to treat the socket as a class.
2017-12-07T13:54:58.000141
Glinda
pythondev_help_Glinda_2017-12-07T13:54:58.000141
1,512,654,898.000141
102,658
pythondev
help
<@Cecille> So I opened a new pycharm project. Typed `ctrl +alt+ s` and created a new virtual environment and applied to this project. Then I created a folder with these imports. ```import pandas as pd import numpy as np import matplotlib.pyplot as plt```
2017-12-07T13:56:29.000597
Glinda
pythondev_help_Glinda_2017-12-07T13:56:29.000597
1,512,654,989.000597
102,659
pythondev
help
It told me package wasn't installed in virtual environment. So I clicked on them pressed alt enter
2017-12-07T13:56:46.000225
Glinda
pythondev_help_Glinda_2017-12-07T13:56:46.000225
1,512,655,006.000225
102,660
pythondev
help
```11:51 AM Packages installed successfully: Installed packages: 'numpy' 11:54 AM Packages installed successfully: Installed packages: 'matplotlib' 11:54 AM Packages installed successfully: Installed packages: 'pandas'```
2017-12-07T13:57:05.000512
Glinda
pythondev_help_Glinda_2017-12-07T13:57:05.000512
1,512,655,025.000512
102,661
pythondev
help
Addded this to my script ``` s = pd.Series([1, 3, 5, np.nan, 6, 8]) print(s)```
2017-12-07T13:57:23.000285
Glinda
pythondev_help_Glinda_2017-12-07T13:57:23.000285
1,512,655,043.000285
102,662
pythondev
help
```0 1.0 1 3.0 2 5.0 3 NaN 4 6.0 5 8.0 ```
2017-12-07T13:57:28.000104
Glinda
pythondev_help_Glinda_2017-12-07T13:57:28.000104
1,512,655,048.000104
102,663
pythondev
help
Now im installing jupyter
2017-12-07T13:58:14.000522
Glinda
pythondev_help_Glinda_2017-12-07T13:58:14.000522
1,512,655,094.000522
102,664
pythondev
help
and sympy
2017-12-07T13:58:41.000217
Glinda
pythondev_help_Glinda_2017-12-07T13:58:41.000217
1,512,655,121.000217
102,665
pythondev
help
<https://www.jetbrains.com/help/pycharm/using-ipython-jupyter-notebook-with-pycharm.html>
2017-12-07T13:58:51.000099
Glinda
pythondev_help_Glinda_2017-12-07T13:58:51.000099
1,512,655,131.000099
102,666
pythondev
help
```11:59 AM Packages installed successfully: Installed packages: 'sympy' 12:01 PM Packages installed successfully: Installed packages: 'jupyter' ```
2017-12-07T14:02:03.000550
Glinda
pythondev_help_Glinda_2017-12-07T14:02:03.000550
1,512,655,323.00055
102,667
pythondev
help
Now I can take this virtual environment I have, and save it with some name. To use as a base for all projects.
2017-12-07T14:02:37.000053
Glinda
pythondev_help_Glinda_2017-12-07T14:02:37.000053
1,512,655,357.000053
102,668
pythondev
help
Hry guys just found a small bug
2017-12-07T14:11:21.000464
Myong
pythondev_help_Myong_2017-12-07T14:11:21.000464
1,512,655,881.000464
102,669
pythondev
help
In inserting rows of data I have a small thing for inserting `None` in cells which are missing data in order to keep formatting in order for headers and what not
2017-12-07T14:11:55.000412
Myong
pythondev_help_Myong_2017-12-07T14:11:55.000412
1,512,655,915.000412
102,670
pythondev
help
But my issue is that in some cases when there are two or more cells of data missing, the way I am inserting the data into excel is as such
2017-12-07T14:12:45.000724
Myong
pythondev_help_Myong_2017-12-07T14:12:45.000724
1,512,655,965.000724
102,671
pythondev
help
nvm cant put the code
2017-12-07T14:13:14.000349
Myong
pythondev_help_Myong_2017-12-07T14:13:14.000349
1,512,655,994.000349
102,672
pythondev
help
but, my question is, is there a way to order a list based on the order of another list?
2017-12-07T14:13:33.000274
Myong
pythondev_help_Myong_2017-12-07T14:13:33.000274
1,512,656,013.000274
102,673
pythondev
help
so if I have something like `["hello", "bye", "ok"] and ["ok", "bye"]`
2017-12-07T14:14:07.000420
Myong
pythondev_help_Myong_2017-12-07T14:14:07.000420
1,512,656,047.00042
102,674
pythondev
help
I want the resulting list to be `["bye", "ok"]`
2017-12-07T14:14:25.000589
Myong
pythondev_help_Myong_2017-12-07T14:14:25.000589
1,512,656,065.000589
102,675
pythondev
help
Wait I think I got it actually
2017-12-07T14:14:44.000029
Myong
pythondev_help_Myong_2017-12-07T14:14:44.000029
1,512,656,084.000029
102,676
pythondev
help
Figured it ou!
2017-12-07T14:21:25.000535
Myong
pythondev_help_Myong_2017-12-07T14:21:25.000535
1,512,656,485.000535
102,677
pythondev
help
out
2017-12-07T14:21:27.000721
Myong
pythondev_help_Myong_2017-12-07T14:21:27.000721
1,512,656,487.000721
102,678
pythondev
help
nice job
2017-12-07T14:22:41.000332
Glinda
pythondev_help_Glinda_2017-12-07T14:22:41.000332
1,512,656,561.000332
102,679
pythondev
help
Do you use windows 64 python 3?
2017-12-07T14:23:01.000043
Glinda
pythondev_help_Glinda_2017-12-07T14:23:01.000043
1,512,656,581.000043
102,680
pythondev
help
Uh oh, another issue :confused:
2017-12-07T14:41:54.000282
Myong
pythondev_help_Myong_2017-12-07T14:41:54.000282
1,512,657,714.000282
102,681
pythondev
help
?
2017-12-07T14:42:35.000429
Glinda
pythondev_help_Glinda_2017-12-07T14:42:35.000429
1,512,657,755.000429
102,682
pythondev
help
Maybe take a step back and explain the problem
2017-12-07T14:42:52.000097
Glinda
pythondev_help_Glinda_2017-12-07T14:42:52.000097
1,512,657,772.000097
102,683
pythondev
help
So basically I have an excel file I'm generating
2017-12-07T14:45:14.000221
Myong
pythondev_help_Myong_2017-12-07T14:45:14.000221
1,512,657,914.000221
102,684
pythondev
help
Now the response from the GET I make to this API send me XML with a bunch of nodes that have child nodes
2017-12-07T14:45:38.000690
Myong
pythondev_help_Myong_2017-12-07T14:45:38.000690
1,512,657,938.00069
102,685
pythondev
help
I grab the text from the child nodes in the order which it appears
2017-12-07T14:45:48.000441
Myong
pythondev_help_Myong_2017-12-07T14:45:48.000441
1,512,657,948.000441
102,686
pythondev
help
But in some cases the data doesnt contain every node which the header contains
2017-12-07T14:46:04.000146
Myong
pythondev_help_Myong_2017-12-07T14:46:04.000146
1,512,657,964.000146
102,687
pythondev
help
so say the header covers 38 columns cause it can contain 38 different pieces of data
2017-12-07T14:46:28.000683
Myong
pythondev_help_Myong_2017-12-07T14:46:28.000683
1,512,657,988.000683
102,688
pythondev
help
Sometimes I only get 35 from any given node
2017-12-07T14:46:46.000638
Myong
pythondev_help_Myong_2017-12-07T14:46:46.000638
1,512,658,006.000638
102,689
pythondev
help
so I'm missing data
2017-12-07T14:46:53.000297
Myong
pythondev_help_Myong_2017-12-07T14:46:53.000297
1,512,658,013.000297
102,690
pythondev
help
But I wanna insert it under the correct header
2017-12-07T14:47:00.000261
Myong
pythondev_help_Myong_2017-12-07T14:47:00.000261
1,512,658,020.000261
102,691
pythondev
help
so I have a list of headers and the headers are the "id" nodes which are always included in the response
2017-12-07T14:47:18.000595
Myong
pythondev_help_Myong_2017-12-07T14:47:18.000595
1,512,658,038.000595
102,692
pythondev
help
I also store each different main node as a dictionary, and place the dictionary in a list
2017-12-07T14:47:39.000002
Myong
pythondev_help_Myong_2017-12-07T14:47:39.000002
1,512,658,059.000002
102,693
pythondev
help
Can you show an example of the response?
2017-12-07T14:47:43.000284
Glinda
pythondev_help_Glinda_2017-12-07T14:47:43.000284
1,512,658,063.000284
102,694
pythondev
help
I can not actually
2017-12-07T14:48:04.000101
Myong
pythondev_help_Myong_2017-12-07T14:48:04.000101
1,512,658,084.000101
102,695
pythondev
help
Even just the header list with id, and another row list of id.
2017-12-07T14:48:05.000401
Glinda
pythondev_help_Glinda_2017-12-07T14:48:05.000401
1,512,658,085.000401
102,696
pythondev
help
I cant do snippets on this computer
2017-12-07T14:48:27.000012
Myong
pythondev_help_Myong_2017-12-07T14:48:27.000012
1,512,658,107.000012
102,697
pythondev
help
I would just post my code if i could
2017-12-07T14:48:37.000231
Myong
pythondev_help_Myong_2017-12-07T14:48:37.000231
1,512,658,117.000231
102,698
pythondev
help
snippets?
2017-12-07T14:48:47.000179
Glinda
pythondev_help_Glinda_2017-12-07T14:48:47.000179
1,512,658,127.000179
102,699
pythondev
help
Do you not have `` key?
2017-12-07T14:49:21.000018
Glinda
pythondev_help_Glinda_2017-12-07T14:49:21.000018
1,512,658,161.000018
102,700
pythondev
help
So since you say order of nodes matter you get the header data first right? So can you get the key from each header item and use it later to match the column from the rows of data?
2017-12-07T14:51:51.000207
Glinda
pythondev_help_Glinda_2017-12-07T14:51:51.000207
1,512,658,311.000207
102,701
pythondev
help
Yeah basically I have all possible headers and theyre in the proper order
2017-12-07T14:53:29.000605
Myong
pythondev_help_Myong_2017-12-07T14:53:29.000605
1,512,658,409.000605
102,702