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 | I tend to use single quotes for things that are variable/expression-ish, like dict keys, and double quotes for things that are string-ish, like text to be printed. Just personal style, though. | 2019-03-22T13:56:01.434900 | Sasha | pythondev_help_Sasha_2019-03-22T13:56:01.434900 | 1,553,262,961.4349 | 14,621 |
pythondev | help | I actually like that, I just find it hard to stick to | 2019-03-22T13:56:13.435200 | Joette | pythondev_help_Joette_2019-03-22T13:56:13.435200 | 1,553,262,973.4352 | 14,622 |
pythondev | help | especially coordinating other people to stick to it | 2019-03-22T13:56:35.435600 | Joette | pythondev_help_Joette_2019-03-22T13:56:35.435600 | 1,553,262,995.4356 | 14,623 |
pythondev | help | It’s the pep8 way | 2019-03-22T14:01:36.437900 | Jonas | pythondev_help_Jonas_2019-03-22T14:01:36.437900 | 1,553,263,296.4379 | 14,624 |
pythondev | help | So they should stick to it. It’s not hard | 2019-03-22T14:02:09.439000 | Jonas | pythondev_help_Jonas_2019-03-22T14:02:09.439000 | 1,553,263,329.439 | 14,625 |
pythondev | help | coming into python I almost always used double quotes, I've noticed I've slowly started to use single quote more often. For 2 (sorta related?) reasons... 1. aesthetic/looks 'cleaner' to me 2. Using pycharm/VS Code...since it auto adds the second quote (regardless of which I use) I find it easier to see how many quote... | 2019-03-22T14:04:05.440500 | Marth | pythondev_help_Marth_2019-03-22T14:04:05.440500 | 1,553,263,445.4405 | 14,626 |
pythondev | help | need to `shift` for double -too much effort. I use black, but have a pre-black formatting step to switch things from `'` to `"` | 2019-03-22T14:05:30.441400 | Clemmie | pythondev_help_Clemmie_2019-03-22T14:05:30.441400 | 1,553,263,530.4414 | 14,627 |
pythondev | help | I use double quotes mostly because of having to deal with SQL queries where only single quotes are allowed for reasons | 2019-03-22T14:10:06.442400 | Ashley | pythondev_help_Ashley_2019-03-22T14:10:06.442400 | 1,553,263,806.4424 | 14,628 |
pythondev | help | that way I didn't have to escape them | 2019-03-22T14:10:28.442700 | Ashley | pythondev_help_Ashley_2019-03-22T14:10:28.442700 | 1,553,263,828.4427 | 14,629 |
pythondev | help | Black has `--skip-string-normalization` now | 2019-03-22T14:45:55.443000 | Chester | pythondev_help_Chester_2019-03-22T14:45:55.443000 | 1,553,265,955.443 | 14,630 |
pythondev | help | Since when? amazing! | 2019-03-22T14:46:21.443300 | Clemmie | pythondev_help_Clemmie_2019-03-22T14:46:21.443300 | 1,553,265,981.4433 | 14,631 |
pythondev | help | 18.something.something | 2019-03-22T14:50:01.443600 | Chester | pythondev_help_Chester_2019-03-22T14:50:01.443600 | 1,553,266,201.4436 | 14,632 |
pythondev | help | I kinda dislike it anyway, because it won't normalize `"` to `'` when appropriate | 2019-03-22T14:50:41.444100 | Chester | pythondev_help_Chester_2019-03-22T14:50:41.444100 | 1,553,266,241.4441 | 14,633 |
pythondev | help | i.e. when there are no single quotes in the string | 2019-03-22T14:51:02.444500 | Chester | pythondev_help_Chester_2019-03-22T14:51:02.444500 | 1,553,266,262.4445 | 14,634 |
pythondev | help | Hey all, anyone here that has worked with azure sdk for python? | 2019-03-22T16:03:06.445900 | Kathline | pythondev_help_Kathline_2019-03-22T16:03:06.445900 | 1,553,270,586.4459 | 14,635 |
pythondev | help | azure-storage* in particular | 2019-03-22T16:03:28.446200 | Kathline | pythondev_help_Kathline_2019-03-22T16:03:28.446200 | 1,553,270,608.4462 | 14,636 |
pythondev | help | I'm having an issue with the get_blob_to_path function that returns the error that a resource error is invalid and I haven't been able to figure out what the cause is | 2019-03-22T16:05:21.448200 | Kathline | pythondev_help_Kathline_2019-03-22T16:05:21.448200 | 1,553,270,721.4482 | 14,637 |
pythondev | help | I’m trying my hand at type hinting in Python, but have been unable to figure out how to use the `re` library’s `MatchObject`
I tried
```
import re
def foo(match: MatchObject):
pass
def foo(match: re.MatchObject):
pass
def foo(match: _sre.SRE_Match):
pass
def foo(match: re._sre.SRE_Match):
pass
```... | 2019-03-22T16:34:15.449600 | Cammie | pythondev_help_Cammie_2019-03-22T16:34:15.449600 | 1,553,272,455.4496 | 14,638 |
pythondev | help | I believe this is right: <https://stackoverflow.com/a/38935153/1983957> | 2019-03-22T16:37:03.450000 | Cammie | pythondev_help_Cammie_2019-03-22T16:37:03.450000 | 1,553,272,623.45 | 14,639 |
pythondev | help | hey all,
I didn't understand something about python's mock lib: I have a test that calls a method that instantiate a class object, I'd like to mock the object | 2019-03-22T18:16:42.453300 | Jesse | pythondev_help_Jesse_2019-03-22T18:16:42.453300 | 1,553,278,602.4533 | 14,640 |
pythondev | help | It's something like:
```
def test(context):
context.something.open()
class something:
def __init__(self):
self.y = None
def open(self):
self.y = AnotherClass() # I want to mock out this class
``` | 2019-03-22T18:22:55.457700 | Jesse | pythondev_help_Jesse_2019-03-22T18:22:55.457700 | 1,553,278,975.4577 | 14,641 |
pythondev | help | depending what you actually want to test... mock the function and set the return_value to an instance of that object defined in your test | 2019-03-22T18:39:50.458900 | Jovan | pythondev_help_Jovan_2019-03-22T18:39:50.458900 | 1,553,279,990.4589 | 14,642 |
pythondev | help | Hi..so I have a bunch of functions f1, f2, f3 ... which need to be applied to each element along one dimension of an N-D array. I previously used a switch case to do it but wondering if there is a more pythonic (and compact) way to do the same? | 2019-03-22T19:08:52.460800 | Angele | pythondev_help_Angele_2019-03-22T19:08:52.460800 | 1,553,281,732.4608 | 14,643 |
pythondev | help | Functions are objects in Python, so you can create a list of functions and use them in a loop, for instance. | 2019-03-22T19:11:19.461500 | Sasha | pythondev_help_Sasha_2019-03-22T19:11:19.461500 | 1,553,281,879.4615 | 14,644 |
pythondev | help | ~Or map them in a `dict` but I think it mostly depends on your use case.~ | 2019-03-22T19:18:34.462500 | Berenice | pythondev_help_Berenice_2019-03-22T19:18:34.462500 | 1,553,282,314.4625 | 14,645 |
pythondev | help | yes, but how can I pass an argument to them sequentially | 2019-03-22T19:18:34.462600 | Angele | pythondev_help_Angele_2019-03-22T19:18:34.462600 | 1,553,282,314.4626 | 14,646 |
pythondev | help | ```for i, value in enumerate(data):
funcs[i](value)``` | 2019-03-22T19:21:15.464800 | Sasha | pythondev_help_Sasha_2019-03-22T19:21:15.464800 | 1,553,282,475.4648 | 14,647 |
pythondev | help | Or a similar approach in multiple dimensions with `map()`, etc. | 2019-03-22T19:23:17.465800 | Sasha | pythondev_help_Sasha_2019-03-22T19:23:17.465800 | 1,553,282,597.4658 | 14,648 |
pythondev | help | awesome...thanks a lot <@Sasha>! | 2019-03-22T19:23:51.466300 | Angele | pythondev_help_Angele_2019-03-22T19:23:51.466300 | 1,553,282,631.4663 | 14,649 |
pythondev | help | I’m using scrapy to extract data by Xpath from a website but,
It return a empty array back | 2019-03-22T19:54:52.470200 | Izetta | pythondev_help_Izetta_2019-03-22T19:54:52.470200 | 1,553,284,492.4702 | 14,650 |
pythondev | help | <@Sasha> How could this approach be adapted to variable arguments? | 2019-03-22T20:19:23.470800 | Angele | pythondev_help_Angele_2019-03-22T20:19:23.470800 | 1,553,285,963.4708 | 14,651 |
pythondev | help | I tried creating another list of args and passing that in the loop:
```
for i, value in enumerate(data):
funcs[i](value, args[i])
``` | 2019-03-22T20:20:18.471800 | Angele | pythondev_help_Angele_2019-03-22T20:20:18.471800 | 1,553,286,018.4718 | 14,652 |
pythondev | help | But this is real messy | 2019-03-22T20:21:33.472300 | Angele | pythondev_help_Angele_2019-03-22T20:21:33.472300 | 1,553,286,093.4723 | 14,653 |
pythondev | help | You could consider using the `*args` and `**kwargs` features to pass in multiple arguments from a list/dict. Alternately you could use `functools.partial()` to curry the arguments into your function object. | 2019-03-22T20:27:49.473500 | Sasha | pythondev_help_Sasha_2019-03-22T20:27:49.473500 | 1,553,286,469.4735 | 14,654 |
pythondev | help | For one of my apps I just finish I'm trying to host it on Heroku - I get a `FileNotFoundError` | 2019-03-22T22:46:32.475100 | Conchita | pythondev_help_Conchita_2019-03-22T22:46:32.475100 | 1,553,294,792.4751 | 14,655 |
pythondev | help | I take it that my `BASE_DIR` statement doesn't work as well on heroku as it does on my local osx | 2019-03-22T22:47:33.476400 | Conchita | pythondev_help_Conchita_2019-03-22T22:47:33.476400 | 1,553,294,853.4764 | 14,656 |
pythondev | help | Any help on configuring this is appreciated | 2019-03-22T22:48:00.477000 | Conchita | pythondev_help_Conchita_2019-03-22T22:48:00.477000 | 1,553,294,880.477 | 14,657 |
pythondev | help | Maybe your xpath is not correct do you have an example | 2019-03-22T23:36:14.477500 | Sparkle | pythondev_help_Sparkle_2019-03-22T23:36:14.477500 | 1,553,297,774.4775 | 14,658 |
pythondev | help | I solved this by:
```from pathlib import Path
output = Path("data.csv").resolve()``` | 2019-03-23T00:15:20.478200 | Conchita | pythondev_help_Conchita_2019-03-23T00:15:20.478200 | 1,553,300,120.4782 | 14,659 |
pythondev | help | Still I would be interested in hearing other solutions | 2019-03-23T00:15:46.478800 | Conchita | pythondev_help_Conchita_2019-03-23T00:15:46.478800 | 1,553,300,146.4788 | 14,660 |
pythondev | help | Interesting. If that solution works, it implies that you don't have a "data" subdirectory in your deployment. | 2019-03-23T00:21:37.479500 | Sasha | pythondev_help_Sasha_2019-03-23T00:21:37.479500 | 1,553,300,497.4795 | 14,661 |
pythondev | help | You are absolutely correct <@Sasha>. I got so frustrated with figuring it out I just deleted that subdir and placed the file in my base project folder | 2019-03-23T01:27:14.480900 | Conchita | pythondev_help_Conchita_2019-03-23T01:27:14.480900 | 1,553,304,434.4809 | 14,662 |
pythondev | help | Hi can someone help to process invoice data which is in pdf format with machine learning or deep learning
I know it takes NER in NLP but i want to get customized annotations can someone help me plz | 2019-03-23T01:32:26.481200 | Danille | pythondev_help_Danille_2019-03-23T01:32:26.481200 | 1,553,304,746.4812 | 14,663 |
pythondev | help | In order to get help here you probably need to describe the issues you are facing much more specifically <@Danille> | 2019-03-23T02:20:25.482500 | Conchita | pythondev_help_Conchita_2019-03-23T02:20:25.482500 | 1,553,307,625.4825 | 14,664 |
pythondev | help | <@Conchita> Hi justine im siva i want to extract specific elements from invoice like invoice number invoice date and due date company name any email id and website address and company address
1. when i run with spacy or nltk im getting date and company name as entities
2. i want to distinguish between due date and invo... | 2019-03-23T02:24:13.486000 | Danille | pythondev_help_Danille_2019-03-23T02:24:13.486000 | 1,553,307,853.486 | 14,665 |
pythondev | help | None | 2019-03-23T02:45:15.486300 | Annita | pythondev_help_Annita_2019-03-23T02:45:15.486300 | 1,553,309,115.4863 | 14,666 |
pythondev | help | this code is not working i dont why please help | 2019-03-23T02:46:14.486600 | Annita | pythondev_help_Annita_2019-03-23T02:46:14.486600 | 1,553,309,174.4866 | 14,667 |
pythondev | help | Any recommended guide for installing latest stable version of Python on Ubuntu 16.04? | 2019-03-23T02:47:39.487400 | Conchita | pythondev_help_Conchita_2019-03-23T02:47:39.487400 | 1,553,309,259.4874 | 14,668 |
pythondev | help | this is ipynb i wan to extract specific elements im getting errors like this plz hep | 2019-03-23T03:23:31.487500 | Danille | pythondev_help_Danille_2019-03-23T03:23:31.487500 | 1,553,311,411.4875 | 14,669 |
pythondev | help | Tristan van der vlugt [8:23 AM]
Hey all, anyone here that has worked with azure sdk for python?
azure-storage* in particular
I'm having an issue with the get_blob_to_path function that returns the error that a resource error is invalid and I haven't been able to figure out what the cause is. | 2019-03-23T03:26:38.488100 | Kathline | pythondev_help_Kathline_2019-03-23T03:26:38.488100 | 1,553,311,598.4881 | 14,670 |
pythondev | help | it's giving me a return message that the resource name specified contains invalid characters(line 5)
```
ax_yhours_container = ax_blob_service.list_blobs('axbi', prefix=config['ax-container-main']+'/'+config['ax-container-yhours']+'/')
for ax_blob in ax_yhours_container:
ax_blob_shortname = ntpath.basename(ax_blob.na... | 2019-03-23T03:26:56.488300 | Kathline | pythondev_help_Kathline_2019-03-23T03:26:56.488300 | 1,553,311,616.4883 | 14,671 |
pythondev | help | how can I assign the value of count to 0 if arr is empty in a list comprehension?
```
arr = []
valid = [1, 2, 3]
count = [valid.count(w) for w in arr if arr else 0] # something like this?
``` | 2019-03-23T10:42:42.491100 | Genaro | pythondev_help_Genaro_2019-03-23T10:42:42.491100 | 1,553,337,762.4911 | 14,672 |
pythondev | help | Can anyone help me with spooky author identification. I want to build it as web app where ill give some text input and it will give predicted author for that input. I have written Naive bayes with count vectorizer and xgboost model to do this. I am stuck with web app part. I am using flask for web app part. Guidance ap... | 2019-03-23T11:22:24.491600 | Keena | pythondev_help_Keena_2019-03-23T11:22:24.491600 | 1,553,340,144.4916 | 14,673 |
pythondev | help | <@Genaro> I'm not completely sure what you want. If `arr` is empty, then there's nothing for the comprehension to iterate over. Do you want the result to be a one-element list `[0]` in that case, the same as if `arr = [10]`? | 2019-03-23T12:03:01.493100 | Sasha | pythondev_help_Sasha_2019-03-23T12:03:01.493100 | 1,553,342,581.4931 | 14,674 |
pythondev | help | Or maybe do you want to `sum()` over the counts? | 2019-03-23T12:03:42.493500 | Sasha | pythondev_help_Sasha_2019-03-23T12:03:42.493500 | 1,553,342,622.4935 | 14,675 |
pythondev | help | Sounds like you’re using flask already to create an API. Highly recommend, if you’re comfortable with React.js, using next.js to create a frontend, and make requests using the axios npm module to your flask api :slightly_smiling_face: | 2019-03-23T13:11:06.493800 | Emma | pythondev_help_Emma_2019-03-23T13:11:06.493800 | 1,553,346,666.4938 | 14,676 |
pythondev | help | i am trying to develop it as single api endpoint but unable to build flow after training of model | 2019-03-23T13:17:47.494000 | Keena | pythondev_help_Keena_2019-03-23T13:17:47.494000 | 1,553,347,067.494 | 14,677 |
pythondev | help | I created a pip module and uploaded with twine. Everything looked good and it let me pip install the module - i see it showing up with pip list, but when i call it in my code it says “module not found”. any ideas? | 2019-03-23T15:49:23.496000 | Jeanie | pythondev_help_Jeanie_2019-03-23T15:49:23.496000 | 1,553,356,163.496 | 14,678 |
pythondev | help | Hey everyone. I have some questions about sockets if there are anyone who is good with sockets. I am writing a app for a text based game (mud) I am playing. basicly a proxy app that will run between my client and server. every line that is either received from client or server will be tested against series of regex que... | 2019-03-23T17:32:42.501000 | Jeffry | pythondev_help_Jeffry_2019-03-23T17:32:42.501000 | 1,553,362,362.501 | 14,679 |
pythondev | help | Hello all, I am trying to use the StackOverFlow API. I am able to get comments and stuff like that but it want it to return results. Like if I search "python api help" it will open up the results | 2019-03-23T18:15:21.502800 | Rodrick | pythondev_help_Rodrick_2019-03-23T18:15:21.502800 | 1,553,364,921.5028 | 14,680 |
pythondev | help | I’m using scrapy to extract data by Xpath from a website but,
It return a empty array back | 2019-03-23T19:24:12.503600 | Izetta | pythondev_help_Izetta_2019-03-23T19:24:12.503600 | 1,553,369,052.5036 | 14,681 |
pythondev | help | here the Xpath: /div[contains(@class, 'col-md-4 col-sm-6')][1]/div[contains(@class, 'result-wrapper')]/a[contains(@class, 'result algolia-clearfix')]/@href | 2019-03-23T19:25:01.504300 | Izetta | pythondev_help_Izetta_2019-03-23T19:25:01.504300 | 1,553,369,101.5043 | 14,682 |
pythondev | help | when you iterate over a list | 2019-03-23T19:33:54.504700 | Sima | pythondev_help_Sima_2019-03-23T19:33:54.504700 | 1,553,369,634.5047 | 14,683 |
pythondev | help | and remove an item from it | 2019-03-23T19:33:57.505000 | Sima | pythondev_help_Sima_2019-03-23T19:33:57.505000 | 1,553,369,637.505 | 14,684 |
pythondev | help | does it mess with your iteration? since now the length of the list is smaller | 2019-03-23T19:34:08.505300 | Sima | pythondev_help_Sima_2019-03-23T19:34:08.505300 | 1,553,369,648.5053 | 14,685 |
pythondev | help | No | 2019-03-23T19:34:54.505800 | Izetta | pythondev_help_Izetta_2019-03-23T19:34:54.505800 | 1,553,369,694.5058 | 14,686 |
pythondev | help | Yes, it does. Typically you'll want to iterate over a copy of the list, like `for x in mylist[:]:`. | 2019-03-23T19:35:05.506200 | Sasha | pythondev_help_Sasha_2019-03-23T19:35:05.506200 | 1,553,369,705.5062 | 14,687 |
pythondev | help | ok, that makes sense. because I kept having issues with it until I made a copy | 2019-03-23T19:35:39.507500 | Sima | pythondev_help_Sima_2019-03-23T19:35:39.507500 | 1,553,369,739.5075 | 14,688 |
pythondev | help | However, one trick is that if you iterate backwards, you can get away with not making a copy, since you aren't interfering with the unprocessed beginning of the list. | 2019-03-23T19:37:19.509000 | Sasha | pythondev_help_Sasha_2019-03-23T19:37:19.509000 | 1,553,369,839.509 | 14,689 |
pythondev | help | thats a good idea | 2019-03-23T19:37:31.509200 | Sima | pythondev_help_Sima_2019-03-23T19:37:31.509200 | 1,553,369,851.5092 | 14,690 |
pythondev | help | <@Sparkle> here the Xpath: /div[contains(@class, 'col-md-4 col-sm-6')][1]/div[contains(@class, 'result-wrapper')]/a[contains(@class, 'result algolia-clearfix')]/@href | 2019-03-23T19:37:33.509400 | Izetta | pythondev_help_Izetta_2019-03-23T19:37:33.509400 | 1,553,369,853.5094 | 14,691 |
pythondev | help | is that usually better than making a copy? | 2019-03-23T19:37:37.509600 | Sima | pythondev_help_Sima_2019-03-23T19:37:37.509600 | 1,553,369,857.5096 | 14,692 |
pythondev | help | Depends on how much you care about efficiency, readability, and the size of the list, etc. | 2019-03-23T19:38:47.510300 | Sasha | pythondev_help_Sasha_2019-03-23T19:38:47.510300 | 1,553,369,927.5103 | 14,693 |
pythondev | help | gotcha. thanks | 2019-03-23T19:41:10.510500 | Sima | pythondev_help_Sima_2019-03-23T19:41:10.510500 | 1,553,370,070.5105 | 14,694 |
pythondev | help | Try this:
`//a[contains(@class, 'result algolia-clearfix')]/@href` | 2019-03-23T19:41:54.510600 | Sparkle | pythondev_help_Sparkle_2019-03-23T19:41:54.510600 | 1,553,370,114.5106 | 14,695 |
pythondev | help | <@Sparkle> still return empty array | 2019-03-23T19:46:04.510900 | Izetta | pythondev_help_Izetta_2019-03-23T19:46:04.510900 | 1,553,370,364.5109 | 14,696 |
pythondev | help | Try this:
`//*[contains(@class, 'result algolia-clearfix')]//a/@href` | 2019-03-23T20:17:02.511400 | Sparkle | pythondev_help_Sparkle_2019-03-23T20:17:02.511400 | 1,553,372,222.5114 | 14,697 |
pythondev | help | how can I check if two items exist in a list and if they do return a new list without those two items? | 2019-03-23T20:26:53.513500 | Genaro | pythondev_help_Genaro_2019-03-23T20:26:53.513500 | 1,553,372,813.5135 | 14,698 |
pythondev | help | `[x for x in mylist if x != a and x != b]` might work. | 2019-03-23T20:33:27.514300 | Sasha | pythondev_help_Sasha_2019-03-23T20:33:27.514300 | 1,553,373,207.5143 | 14,699 |
pythondev | help | I should have specified that the combination of the two items at the same time is what I want to remove, not just the occurrence of one or another | 2019-03-23T20:35:49.515200 | Genaro | pythondev_help_Genaro_2019-03-23T20:35:49.515200 | 1,553,373,349.5152 | 14,700 |
pythondev | help | Then preface with `if a in mylist and b in mylist:`, or you could potentially check the length of the list to see if it was 2 less, if you don't have duplicates. | 2019-03-23T20:37:56.516700 | Sasha | pythondev_help_Sasha_2019-03-23T20:37:56.516700 | 1,553,373,476.5167 | 14,701 |
pythondev | help | I thought about that, but then it would look kinda ugly to do something like:
```
mylist.remove(a)
mylist.remove(b)
```
especially considering I may need to check for more conditions | 2019-03-23T20:39:10.517800 | Genaro | pythondev_help_Genaro_2019-03-23T20:39:10.517800 | 1,553,373,550.5178 | 14,702 |
pythondev | help | <https://stackoverflow.com/a/36268815> | 2019-03-23T20:42:02.518500 | Hiroko | pythondev_help_Hiroko_2019-03-23T20:42:02.518500 | 1,553,373,722.5185 | 14,703 |
pythondev | help | <@Sparkle> still return empty array here the website if that can help(<https://www.flightclub.com/catalogsearch/result/?q=378037-117>) | 2019-03-23T20:42:39.518800 | Izetta | pythondev_help_Izetta_2019-03-23T20:42:39.518800 | 1,553,373,759.5188 | 14,704 |
pythondev | help | I stumbled upon that link trying to figure this out, but `item_list = [e for e in item_list if e not in ('item', 5)]` only checks if either `item` or `5` exist, it doesn't check if the combination of those two items exist in the list | 2019-03-23T20:43:28.520000 | Genaro | pythondev_help_Genaro_2019-03-23T20:43:28.520000 | 1,553,373,808.52 | 14,705 |
pythondev | help | When you say combination, what do you mean? | 2019-03-23T20:45:04.520600 | Hiroko | pythondev_help_Hiroko_2019-03-23T20:45:04.520600 | 1,553,373,904.5206 | 14,706 |
pythondev | help | so for example if i have a list like `directions = ['left', 'up', 'down', 'down']` i'd like to check if `up` and `down` exist at the same time and remove them from the list so that I only get `['left', 'down']` | 2019-03-23T20:47:27.522900 | Genaro | pythondev_help_Genaro_2019-03-23T20:47:27.522900 | 1,553,374,047.5229 | 14,707 |
pythondev | help | By your example, shouldn’t the two down strings be removed? | 2019-03-23T20:48:35.523600 | Hiroko | pythondev_help_Hiroko_2019-03-23T20:48:35.523600 | 1,553,374,115.5236 | 14,708 |
pythondev | help | just one occurrence of `down` should be removed because I just want to remove "opposites". same with "left" and "right" at the same time | 2019-03-23T20:49:29.525300 | Genaro | pythondev_help_Genaro_2019-03-23T20:49:29.525300 | 1,553,374,169.5253 | 14,709 |
pythondev | help | And then only get a list of one element back? | 2019-03-23T20:49:30.525400 | Hiroko | pythondev_help_Hiroko_2019-03-23T20:49:30.525400 | 1,553,374,170.5254 | 14,710 |
pythondev | help | Requirement already satisfied: SpeechRecognition in c:\users\raavcorp\appdata\local\programs\python\python37\lib\site-packages (3.8.1)
Thats what I get when I type in
pip install SpeechRecognition
But when I run this code:
import SpeechRecognition as SR
r = SR.Recognizer()
mic = SR.Microphone()
mic.list_micropho... | 2019-03-23T21:19:34.525600 | Rodrick | pythondev_help_Rodrick_2019-03-23T21:19:34.525600 | 1,553,375,974.5256 | 14,711 |
pythondev | help | `import speech_recognition as SR`? | 2019-03-23T21:22:19.526100 | Sasha | pythondev_help_Sasha_2019-03-23T21:22:19.526100 | 1,553,376,139.5261 | 14,712 |
pythondev | help | Ok | 2019-03-23T21:22:33.526300 | Rodrick | pythondev_help_Rodrick_2019-03-23T21:22:33.526300 | 1,553,376,153.5263 | 14,713 |
pythondev | help | yes that worked thanks | 2019-03-23T21:23:11.526600 | Rodrick | pythondev_help_Rodrick_2019-03-23T21:23:11.526600 | 1,553,376,191.5266 | 14,714 |
pythondev | help | <@Rodrick> remember python convention is snake_case for package, module and function/method names | 2019-03-23T21:34:34.527100 | Hiroko | pythondev_help_Hiroko_2019-03-23T21:34:34.527100 | 1,553,376,874.5271 | 14,715 |
pythondev | help | and PascalCase for classes | 2019-03-23T21:34:45.527400 | Hiroko | pythondev_help_Hiroko_2019-03-23T21:34:45.527400 | 1,553,376,885.5274 | 14,716 |
pythondev | help | ahhh thanks jason | 2019-03-23T21:35:10.527800 | Rodrick | pythondev_help_Rodrick_2019-03-23T21:35:10.527800 | 1,553,376,910.5278 | 14,717 |
pythondev | help | Anyone here familar with Plotly? I'm trying to figure out how to use go.graph_obj.candlestick and to dynamically adjust the y-axis depending on what is zoomed in on the screen. Is this even possible? I'd like the y-axis range to be whatever is on the screen. | 2019-03-23T22:53:46.529700 | Doyle | pythondev_help_Doyle_2019-03-23T22:53:46.529700 | 1,553,381,626.5297 | 14,718 |
pythondev | help | Hi guys, could you please advise me on the list of extensions for VS Code to be highly productive with Python? | 2019-03-24T04:31:29.530800 | Kiyoko | pythondev_help_Kiyoko_2019-03-24T04:31:29.530800 | 1,553,401,889.5308 | 14,719 |
pythondev | help | Basically just download the python import <@Kiyoko> | 2019-03-24T10:34:40.532000 | Rodrick | pythondev_help_Rodrick_2019-03-24T10:34:40.532000 | 1,553,423,680.532 | 14,720 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.