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 | Hello everyone! I’m working on my very first data science project and had some questions regarding the amount of data that I use… I have two large datasets from the US dept of Justice and Kaggle, both with info about student earnings post-graduation from every major university in the US. Unfortunately, the metrics in o... | 2017-11-20T10:58:39.000215 | Cecille | pythondev_help_Cecille_2017-11-20T10:58:39.000215 | 1,511,175,519.000215 | 100,803 |
pythondev | help | <@Myong> I haven't used `tqdm` in a bit, but you should be able to just get the size of the file and manually update the length as you read lines. I created an initial text file that just contained:
```
Hello World
Hello World
```
then made it big using `for i in {1..25}; do cat LargeFile.txt LargeFile.txt > tempfi... | 2017-11-20T11:06:03.000538 | Willena | pythondev_help_Willena_2017-11-20T11:06:03.000538 | 1,511,175,963.000538 | 100,804 |
pythondev | help | Hey <@Cecille> there's also <#C0JB9ATQV|data_science> where you can ask your questions :slightly_smiling_face: | 2017-11-20T11:07:03.000178 | Fabiola | pythondev_help_Fabiola_2017-11-20T11:07:03.000178 | 1,511,176,023.000178 | 100,805 |
pythondev | help | I would say "it depends" | 2017-11-20T11:07:31.000396 | Fabiola | pythondev_help_Fabiola_2017-11-20T11:07:31.000396 | 1,511,176,051.000396 | 100,806 |
pythondev | help | heey <@Fabiola> muchas ill post on there too gracias :slightly_smiling_face: | 2017-11-20T11:07:41.000691 | Cecille | pythondev_help_Cecille_2017-11-20T11:07:41.000691 | 1,511,176,061.000691 | 100,807 |
pythondev | help | hey guys. I have a question for those who have experience with `airflow`:
I have: 1 server with few different python applications and I need to set up jobs in airflow for all of them
questions:
1. what would be the best solution - use `airflow` instance per project(requirements.txt for a project) have 1 separate instan... | 2017-11-20T11:41:40.000167 | Glady | pythondev_help_Glady_2017-11-20T11:41:40.000167 | 1,511,178,100.000167 | 100,808 |
pythondev | help | Try removing it from git tracking | 2017-11-20T14:19:29.000437 | Meg | pythondev_help_Meg_2017-11-20T14:19:29.000437 | 1,511,187,569.000437 | 100,809 |
pythondev | help | Sounds like you added it to the repository before the gitignore was created | 2017-11-20T14:19:53.000186 | Meg | pythondev_help_Meg_2017-11-20T14:19:53.000186 | 1,511,187,593.000186 | 100,810 |
pythondev | help | And the path to the file has to start with the location of the gitignore file as the root | 2017-11-20T14:20:27.000022 | Meg | pythondev_help_Meg_2017-11-20T14:20:27.000022 | 1,511,187,627.000022 | 100,811 |
pythondev | help | `git rm db.sqlite3 --cached` will remove it from tracking but keeps the file | 2017-11-20T14:23:46.000086 | Kiersten | pythondev_help_Kiersten_2017-11-20T14:23:46.000086 | 1,511,187,826.000086 | 100,812 |
pythondev | help | <@Vita> ^ | 2017-11-20T14:23:55.000624 | Kiersten | pythondev_help_Kiersten_2017-11-20T14:23:55.000624 | 1,511,187,835.000624 | 100,813 |
pythondev | help | Sweet! That did it!! Thanks <@Kiersten> <@Meg> :taco: | 2017-11-20T14:26:46.000555 | Vita | pythondev_help_Vita_2017-11-20T14:26:46.000555 | 1,511,188,006.000555 | 100,814 |
pythondev | help | In python is there a way to have multiple locks and then your function attempt to acquire one of them? | 2017-11-20T14:32:14.000443 | Johnette | pythondev_help_Johnette_2017-11-20T14:32:14.000443 | 1,511,188,334.000443 | 100,815 |
pythondev | help | I have a resource that only accepts 4 connections. In my multithreaded function, I want to say if one of the 4 locks are available grab it, otherwise wait | 2017-11-20T14:33:11.000121 | Johnette | pythondev_help_Johnette_2017-11-20T14:33:11.000121 | 1,511,188,391.000121 | 100,816 |
pythondev | help | do you use threads or async? | 2017-11-20T14:35:47.000325 | Suellen | pythondev_help_Suellen_2017-11-20T14:35:47.000325 | 1,511,188,547.000325 | 100,817 |
pythondev | help | threads | 2017-11-20T14:35:53.000464 | Johnette | pythondev_help_Johnette_2017-11-20T14:35:53.000464 | 1,511,188,553.000464 | 100,818 |
pythondev | help | <https://docs.python.org/3/library/threading.html#semaphore-objects>
Will something like this work for you? | 2017-11-20T14:36:11.000118 | Suellen | pythondev_help_Suellen_2017-11-20T14:36:11.000118 | 1,511,188,571.000118 | 100,819 |
pythondev | help | > if the internal counter is larger than zero on entry, decrement it by one and return immediately. If it is zero on entry, block, waiting until some other thread has called release() to make it larger than zero. | 2017-11-20T14:36:25.000380 | Suellen | pythondev_help_Suellen_2017-11-20T14:36:25.000380 | 1,511,188,585.00038 | 100,820 |
pythondev | help | i.e. you can initialize a semaphore with value = 4, and you will have no more than 4 threads acquiring it at the same time | 2017-11-20T14:37:01.000040 | Suellen | pythondev_help_Suellen_2017-11-20T14:37:01.000040 | 1,511,188,621.00004 | 100,821 |
pythondev | help | That might work, lemme give it a shot. thanks | 2017-11-20T14:38:25.000525 | Johnette | pythondev_help_Johnette_2017-11-20T14:38:25.000525 | 1,511,188,705.000525 | 100,822 |
pythondev | help | Learn something new everyday, that worked, thanks <@Suellen> | 2017-11-20T15:52:54.000609 | Johnette | pythondev_help_Johnette_2017-11-20T15:52:54.000609 | 1,511,193,174.000609 | 100,823 |
pythondev | help | :tada: | 2017-11-20T15:57:44.000150 | Suellen | pythondev_help_Suellen_2017-11-20T15:57:44.000150 | 1,511,193,464.00015 | 100,824 |
pythondev | help | Is multiprocessing favored instead of threading? | 2017-11-20T18:06:35.000407 | Marilyn | pythondev_help_Marilyn_2017-11-20T18:06:35.000407 | 1,511,201,195.000407 | 100,825 |
pythondev | help | sometimes you need threads, sometimes you need processes | 2017-11-20T18:08:34.000165 | Suellen | pythondev_help_Suellen_2017-11-20T18:08:34.000165 | 1,511,201,314.000165 | 100,826 |
pythondev | help | processes are easier to contol, i.e. kill | 2017-11-20T18:09:02.000049 | Suellen | pythondev_help_Suellen_2017-11-20T18:09:02.000049 | 1,511,201,342.000049 | 100,827 |
pythondev | help | Using `SQLAlchemy` I have 3 tables. One of the tables is newly added and should act as a main reference for another table. The problem I'm having is, one of the tables I have has already been created and exists within the database. I essentially want to alter a column within that table to make it a foreign key which re... | 2017-11-20T20:39:35.000152 | Myong | pythondev_help_Myong_2017-11-20T20:39:35.000152 | 1,511,210,375.000152 | 100,828 |
pythondev | help | I suppose I can use ALTER TABLE ... ALTER COLUMN ... | 2017-11-20T20:46:54.000051 | Myong | pythondev_help_Myong_2017-11-20T20:46:54.000051 | 1,511,210,814.000051 | 100,829 |
pythondev | help | <@Myong> did it work? | 2017-11-21T04:54:12.000003 | Suellen | pythondev_help_Suellen_2017-11-21T04:54:12.000003 | 1,511,240,052.000003 | 100,830 |
pythondev | help | Hey all,
I am passively looking for some resources to learn how to make a coding environment open to the web. Similar to how udacity, tutorialspoint, and codewars allow students to type their code into their websites and run it against a test | 2017-11-21T11:39:02.000507 | Vita | pythondev_help_Vita_2017-11-21T11:39:02.000507 | 1,511,264,342.000507 | 100,831 |
pythondev | help | Welp, I just managed to find this wonderous repo which is exactly what I needed! Thanks for anyone who tried to look it up:
<https://github.com/CodewarsClone/Codewars> | 2017-11-21T11:47:10.000791 | Vita | pythondev_help_Vita_2017-11-21T11:47:10.000791 | 1,511,264,830.000791 | 100,832 |
pythondev | help | I'm wondering how to more easily manage a list of regexes + functions | 2017-11-21T13:53:07.000234 | Jesusa | pythondev_help_Jesusa_2017-11-21T13:53:07.000234 | 1,511,272,387.000234 | 100,833 |
pythondev | help | I would pretty much want people be able to select which of these they want | 2017-11-21T13:54:07.000393 | Jesusa | pythondev_help_Jesusa_2017-11-21T13:54:07.000393 | 1,511,272,447.000393 | 100,834 |
pythondev | help | it's now unusable because it is in a list of a class | 2017-11-21T13:55:21.000040 | Jesusa | pythondev_help_Jesusa_2017-11-21T13:55:21.000040 | 1,511,272,521.00004 | 100,835 |
pythondev | help | but the other extreme, having to import all these, is also bad | 2017-11-21T13:55:38.000208 | Jesusa | pythondev_help_Jesusa_2017-11-21T13:55:38.000208 | 1,511,272,538.000208 | 100,836 |
pythondev | help | i guess i'll have to make groupings that are logical to "end users" so they'll just have a few boolean flags | 2017-11-21T13:56:49.000512 | Jesusa | pythondev_help_Jesusa_2017-11-21T13:56:49.000512 | 1,511,272,609.000512 | 100,837 |
pythondev | help | though there should also be a way for them to register their own patterns | 2017-11-21T13:57:11.000631 | Jesusa | pythondev_help_Jesusa_2017-11-21T13:57:11.000631 | 1,511,272,631.000631 | 100,838 |
pythondev | help | Anyone know how to use the multiprocessing module with elasticsearch-dsl? I am trying to figure out how to create a "Fresh connection" to elasticsearch in a test I am creating that validates concurrency.
<http://elasticsearch-py.readthedocs.io/en/master/index.html#thread-safety>
^^ See notes section about needing a fr... | 2017-11-21T14:07:02.000480 | Bernarda | pythondev_help_Bernarda_2017-11-21T14:07:02.000480 | 1,511,273,222.00048 | 100,839 |
pythondev | help | <@Jesusa> maybe have a docs/explanation section that explains the difference between each option, and then put a select box below with the names of each to tell the program which one to use | 2017-11-21T14:13:04.000175 | Vita | pythondev_help_Vita_2017-11-21T14:13:04.000175 | 1,511,273,584.000175 | 100,840 |
pythondev | help | <@Vita> the program will be a library though :slightly_smiling_face: | 2017-11-21T14:14:02.000087 | Jesusa | pythondev_help_Jesusa_2017-11-21T14:14:02.000087 | 1,511,273,642.000087 | 100,841 |
pythondev | help | Ahhh, then I would recommend having each one separated so that they have to specify which one they want to import | 2017-11-21T14:15:53.000382 | Vita | pythondev_help_Vita_2017-11-21T14:15:53.000382 | 1,511,273,753.000382 | 100,842 |
pythondev | help | Unless this is deciding what regex a service should use...then I am at a loss of what to do | 2017-11-21T14:20:43.000124 | Vita | pythondev_help_Vita_2017-11-21T14:20:43.000124 | 1,511,274,043.000124 | 100,843 |
pythondev | help | Hi, got what I hope is an easy question… I am wondering how to find the index position of a row in JSON with out a loop. Say I have this JSON…
```
[
{"Network": "net1", "Device": "111111"},
{"Network": "net2", "Device": "222222"},
{"Network": "net3", "Device": "333333"},
]
```
And I want the value for ... | 2017-11-21T15:08:22.000568 | Season | pythondev_help_Season_2017-11-21T15:08:22.000568 | 1,511,276,902.000568 | 100,844 |
pythondev | help | nope | 2017-11-21T15:10:05.000226 | Patty | pythondev_help_Patty_2017-11-21T15:10:05.000226 | 1,511,277,005.000226 | 100,845 |
pythondev | help | unless `net2` is always the second in the list | 2017-11-21T15:10:53.000431 | Patty | pythondev_help_Patty_2017-11-21T15:10:53.000431 | 1,511,277,053.000431 | 100,846 |
pythondev | help | <@Patty> so I have to loop is what you are telling me? | 2017-11-21T15:14:02.000328 | Season | pythondev_help_Season_2017-11-21T15:14:02.000328 | 1,511,277,242.000328 | 100,847 |
pythondev | help | Yep | 2017-11-21T15:14:13.000161 | Patty | pythondev_help_Patty_2017-11-21T15:14:13.000161 | 1,511,277,253.000161 | 100,848 |
pythondev | help | unless the `Device` you want to get at `net2` is _always_ second in the list | 2017-11-21T15:14:35.000694 | Patty | pythondev_help_Patty_2017-11-21T15:14:35.000694 | 1,511,277,275.000694 | 100,849 |
pythondev | help | no I cant say that for sure | 2017-11-21T15:16:04.000379 | Season | pythondev_help_Season_2017-11-21T15:16:04.000379 | 1,511,277,364.000379 | 100,850 |
pythondev | help | Okay, then yep, you’ll have to loop through it | 2017-11-21T15:16:22.000375 | Patty | pythondev_help_Patty_2017-11-21T15:16:22.000375 | 1,511,277,382.000375 | 100,851 |
pythondev | help | I am comparing to find when a previous value in the “list of dictionaries” :slightly_smiling_face: changes, so I will be looping 700 rows and then needing to loop up-to 700 times for each comparison. Is there a better way I can store that data that would allow me to look up the values more efficiently? | 2017-11-21T15:19:47.000002 | Season | pythondev_help_Season_2017-11-21T15:19:47.000002 | 1,511,277,587.000002 | 100,852 |
pythondev | help | Are the network names unique? If so you can store it as a dictionary keyed to the network name with the value as the device name | 2017-11-21T15:21:54.000162 | Antionette | pythondev_help_Antionette_2017-11-21T15:21:54.000162 | 1,511,277,714.000162 | 100,853 |
pythondev | help | And I don't think this changes anything because when you're working with it then its probably a list of dictionaries but as is it looks like valid json besides the trailing comma | 2017-11-21T15:23:45.000359 | Antionette | pythondev_help_Antionette_2017-11-21T15:23:45.000359 | 1,511,277,825.000359 | 100,854 |
pythondev | help | Hmmm I'm pretty sure the top level can be either an object or an array, possibly any valid json value as well | 2017-11-21T15:27:28.000014 | Antionette | pythondev_help_Antionette_2017-11-21T15:27:28.000014 | 1,511,278,048.000014 | 100,855 |
pythondev | help | yeah nevermind i was loking at something different, i shouldnt be doing like 15 things at once | 2017-11-21T15:31:34.000038 | Patty | pythondev_help_Patty_2017-11-21T15:31:34.000038 | 1,511,278,294.000038 | 100,856 |
pythondev | help | anyway, my brain being elsewhere aside, to echo <@Antionette> if the network names are unique put it all in a dictionary, lookup is much more performant | 2017-11-21T15:34:24.000403 | Patty | pythondev_help_Patty_2017-11-21T15:34:24.000403 | 1,511,278,464.000403 | 100,857 |
pythondev | help | (or if the devices are unique) | 2017-11-21T15:34:44.000482 | Patty | pythondev_help_Patty_2017-11-21T15:34:44.000482 | 1,511,278,484.000482 | 100,858 |
pythondev | help | here's for a fun challenge | 2017-11-21T15:45:31.000380 | Jesusa | pythondev_help_Jesusa_2017-11-21T15:45:31.000380 | 1,511,279,131.00038 | 100,859 |
pythondev | help | make a "datetime.datetime" object that when evaluated in any way always returns a current "now" value | 2017-11-21T15:46:08.000525 | Jesusa | pythondev_help_Jesusa_2017-11-21T15:46:08.000525 | 1,511,279,168.000525 | 100,860 |
pythondev | help | `type(now) == datetime.datetime` | 2017-11-21T15:46:30.000230 | Jesusa | pythondev_help_Jesusa_2017-11-21T15:46:30.000230 | 1,511,279,190.00023 | 100,861 |
pythondev | help | `now.second == datetime.now().second` | 2017-11-21T15:46:52.000016 | Jesusa | pythondev_help_Jesusa_2017-11-21T15:46:52.000016 | 1,511,279,212.000016 | 100,862 |
pythondev | help | it was trickier than i thought | 2017-11-21T15:55:52.000539 | Jesusa | pythondev_help_Jesusa_2017-11-21T15:55:52.000539 | 1,511,279,752.000539 | 100,863 |
pythondev | help | I'll post my version here (attempting to hide spoilers) | 2017-11-21T15:56:14.000206 | Jesusa | pythondev_help_Jesusa_2017-11-21T15:56:14.000206 | 1,511,279,774.000206 | 100,864 |
pythondev | help | <@Patty> <@Antionette> Thanks, I’ll try that! | 2017-11-21T16:20:35.000311 | Season | pythondev_help_Season_2017-11-21T16:20:35.000311 | 1,511,281,235.000311 | 100,865 |
pythondev | help | A new question. I just upgraded from 2.6 to 3.6 and some code I was using before doesn’t work ay more and I am not clear on how to fix it. I am using some sample google api code to send an email and it seems the base64 module doesnt play the same.
My function…
```
def create_message(sender, to, subject, message_tex... | 2017-11-21T16:23:26.000551 | Season | pythondev_help_Season_2017-11-21T16:23:26.000551 | 1,511,281,406.000551 | 100,866 |
pythondev | help | Probably related to: <https://docs.python.org/3.0/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit> | 2017-11-21T16:25:59.000321 | Antionette | pythondev_help_Antionette_2017-11-21T16:25:59.000321 | 1,511,281,559.000321 | 100,867 |
pythondev | help | I just found an article with an example and converted it to this and it seems to work but I dont understand why yet…
```
b64_bytes = base64.urlsafe_b64encode(message.as_bytes())
b64_string = b64_bytes.decode()
body = {'raw': b64_string}
return {'raw': b64_string}
``` | 2017-11-21T16:27:06.000315 | Season | pythondev_help_Season_2017-11-21T16:27:06.000315 | 1,511,281,626.000315 | 100,868 |
pythondev | help | the short version is that 'str' in py3 is a unicode object, 'str' in py2 is a byte array object | 2017-11-21T16:27:29.000147 | Sirena | pythondev_help_Sirena_2017-11-21T16:27:29.000147 | 1,511,281,649.000147 | 100,869 |
pythondev | help | if you have a unicode and you want a bytestring, use `.encode(_dialect_)`, if you have a bytestring and you want a unicode, use `.decode(_dialect_)` | 2017-11-21T16:33:11.000382 | Sirena | pythondev_help_Sirena_2017-11-21T16:33:11.000382 | 1,511,281,991.000382 | 100,870 |
pythondev | help | and uh, be mindful of what is what, because it is a difficult bug to fix | 2017-11-21T16:33:36.000100 | Sirena | pythondev_help_Sirena_2017-11-21T16:33:36.000100 | 1,511,282,016.0001 | 100,871 |
pythondev | help | it appears you need some additional logic to handle url bytes, probably substituting funky characters into % codes and that sort of thing. The idea is mostly the same though | 2017-11-21T16:35:01.000296 | Sirena | pythondev_help_Sirena_2017-11-21T16:35:01.000296 | 1,511,282,101.000296 | 100,872 |
pythondev | help | <@Freeman> I can "personally" recommend using yagmail: <https://github.com/kootenpv/yagmail> | 2017-11-21T16:50:43.000492 | Jesusa | pythondev_help_Jesusa_2017-11-21T16:50:43.000492 | 1,511,283,043.000492 | 100,873 |
pythondev | help | I recently used emails (<http://python-emails.readthedocs.io/en/latest/>) and definitely enjoyed it | 2017-11-21T17:03:59.000612 | Jenise | pythondev_help_Jenise_2017-11-21T17:03:59.000612 | 1,511,283,839.000612 | 100,874 |
pythondev | help | I was wondering if anyone can help. I want to help people get jobs. I have a website <http://makeconnex.com|makeconnex.com>. i was wondering if anyone has any python questions they can contribute? And or django and flask questions? | 2017-11-21T18:42:57.000118 | Elvia | pythondev_help_Elvia_2017-11-21T18:42:57.000118 | 1,511,289,777.000118 | 100,875 |
pythondev | help | anyone available need some hep | 2017-11-21T19:00:34.000151 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:00:34.000151 | 1,511,290,834.000151 | 100,876 |
pythondev | help | help | 2017-11-21T19:00:37.000060 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:00:37.000060 | 1,511,290,837.00006 | 100,877 |
pythondev | help | ``` Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files (x86)\Python36-32\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "m:\aaDonE\Projects\gp_outage\test2.py", line 37, in update_options
menu = self.optionmenu_b["menu"]
AttributeError: 'Ap... | 2017-11-21T19:04:05.000023 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:04:05.000023 | 1,511,291,045.000023 | 100,878 |
pythondev | help | here is my code | 2017-11-21T19:04:44.000116 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:04:44.000116 | 1,511,291,084.000116 | 100,879 |
pythondev | help | ``` from tkinter import *
from tkinter import ttk
import os.path
class Application(Frame):
def __init__(self, master):
super(Application, self).__init__(master)
self.DB_selection()
self.update_options()
self.grid()
def DB_selection(self):
<http://self.BD|self.BD> = {"Se... | 2017-11-21T19:04:46.000142 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:04:46.000142 | 1,511,291,086.000142 | 100,880 |
pythondev | help | Please use code formatting, use three back ticks on both sides: ` ``` ` | 2017-11-21T19:06:21.000066 | Beula | pythondev_help_Beula_2017-11-21T19:06:21.000066 | 1,511,291,181.000066 | 100,881 |
pythondev | help | want me to re send it? | 2017-11-21T19:07:19.000362 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:07:19.000362 | 1,511,291,239.000362 | 100,882 |
pythondev | help | You can edit, hover over the message and click the dropdown on the top right of the message | 2017-11-21T19:07:53.000209 | Beula | pythondev_help_Beula_2017-11-21T19:07:53.000209 | 1,511,291,273.000209 | 100,883 |
pythondev | help | ``` code ``` | 2017-11-21T19:09:32.000266 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:09:32.000266 | 1,511,291,372.000266 | 100,884 |
pythondev | help | ok got thanks | 2017-11-21T19:09:37.000202 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:09:37.000202 | 1,511,291,377.000202 | 100,885 |
pythondev | help | fixed | 2017-11-21T19:10:16.000149 | Lilliam | pythondev_help_Lilliam_2017-11-21T19:10:16.000149 | 1,511,291,416.000149 | 100,886 |
pythondev | help | <@Kenny> extend doesn't return a list, it only returns None | 2017-11-21T21:00:20.000124 | Marcie | pythondev_help_Marcie_2017-11-21T21:00:20.000124 | 1,511,298,020.000124 | 100,887 |
pythondev | help | `Docstring: L.extend(iterable) -> None -- extend list by appending elements from the iterable` | 2017-11-21T21:00:45.000231 | Marcie | pythondev_help_Marcie_2017-11-21T21:00:45.000231 | 1,511,298,045.000231 | 100,888 |
pythondev | help | Ahh. Pretty straightforward haha. I’ve been using pandas recently, and I’ve grown accustom to having methods return a thing every time. e.g. `df.reset_index()` returns the dataframe with the rest index, but it doesn’t change `df`. | 2017-11-21T21:05:42.000037 | Kenny | pythondev_help_Kenny_2017-11-21T21:05:42.000037 | 1,511,298,342.000037 | 100,889 |
pythondev | help | ahh, thats more common with things that interact with immutable objects | 2017-11-21T21:06:48.000283 | Marcie | pythondev_help_Marcie_2017-11-21T21:06:48.000283 | 1,511,298,408.000283 | 100,890 |
pythondev | help | for instance, string.replace returns a string because a string is immutable | 2017-11-21T21:07:08.000040 | Marcie | pythondev_help_Marcie_2017-11-21T21:07:08.000040 | 1,511,298,428.00004 | 100,891 |
pythondev | help | Ahh okay, makes sense. Thanks! | 2017-11-21T21:08:49.000008 | Kenny | pythondev_help_Kenny_2017-11-21T21:08:49.000008 | 1,511,298,529.000008 | 100,892 |
pythondev | help | Can anyone help me with a simple question for SQL. I have a table with 3 columns, many of the entries in the table share the same two values for two of the columns. I want to query the database to find all the DIFFERENT or DISTINCT column values for the two columns which many of the rows share. | 2017-11-21T21:33:23.000152 | Myong | pythondev_help_Myong_2017-11-21T21:33:23.000152 | 1,511,300,003.000152 | 100,893 |
pythondev | help | Example incoming... | 2017-11-21T21:33:36.000126 | Myong | pythondev_help_Myong_2017-11-21T21:33:36.000126 | 1,511,300,016.000126 | 100,894 |
pythondev | help | Say the above is a table I have with 10 rows, I want to query the whole table and find the different sets of (a,b) which are distinct | 2017-11-21T21:36:12.000104 | Myong | pythondev_help_Myong_2017-11-21T21:36:12.000104 | 1,511,300,172.000104 | 100,895 |
pythondev | help | So in this case it would return something along the lines of `(10, 10), (13,14), (21,51), (1,1), (2,2), (0,0)` | 2017-11-21T21:36:52.000102 | Myong | pythondev_help_Myong_2017-11-21T21:36:52.000102 | 1,511,300,212.000102 | 100,896 |
pythondev | help | The following statement will not work on my table even when 100% confirmed that both `lat` and `long` columns of a given row contain the values inputted into the query. `SELECT * FROM <table> WHERE lat = <value> AND long = <value>;` | 2017-11-21T21:45:22.000027 | Myong | pythondev_help_Myong_2017-11-21T21:45:22.000027 | 1,511,300,722.000027 | 100,897 |
pythondev | help | And I have no clue why | 2017-11-21T21:45:37.000095 | Myong | pythondev_help_Myong_2017-11-21T21:45:37.000095 | 1,511,300,737.000095 | 100,898 |
pythondev | help | Hmmm, it would seem it has to do with it, for some reason, being a real number. Changing it to numeric i suppose... | 2017-11-21T22:00:43.000127 | Myong | pythondev_help_Myong_2017-11-21T22:00:43.000127 | 1,511,301,643.000127 | 100,899 |
pythondev | help | <@Myong> the real question ,why do you have/need duplicated data? | 2017-11-21T22:41:06.000061 | Rickey | pythondev_help_Rickey_2017-11-21T22:41:06.000061 | 1,511,304,066.000061 | 100,900 |
pythondev | help | Because it's data I had previously and just found it to be duplicated. Essentially just 28k rows of different IPs with two columns that map them to a latitude and longitude. Just so happens that out of those 28k rows there are only 25 or so unique (lat, long) pairs cause many of the IPs are from or within the same subn... | 2017-11-22T00:19:07.000122 | Myong | pythondev_help_Myong_2017-11-22T00:19:07.000122 | 1,511,309,947.000122 | 100,901 |
pythondev | help | The lat, long pair map are foreign keys to another table which uses the lat, long as pk's | 2017-11-22T00:22:09.000067 | Myong | pythondev_help_Myong_2017-11-22T00:22:09.000067 | 1,511,310,129.000067 | 100,902 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.