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
Sorry, I'm an idiot.
2019-03-19T05:27:22.012800
Yaeko
pythondev_help_Yaeko_2019-03-19T05:27:22.012800
1,552,973,242.0128
14,021
pythondev
help
Thank you <@Brandi>, :taco:
2019-03-19T05:27:33.013100
Yaeko
pythondev_help_Yaeko_2019-03-19T05:27:33.013100
1,552,973,253.0131
14,022
pythondev
help
:smile:
2019-03-19T05:27:38.013500
Brandi
pythondev_help_Brandi_2019-03-19T05:27:38.013500
1,552,973,258.0135
14,023
pythondev
help
hey m just started python,and while adding chart to excel sheet m encountering these errors,can anyone help me out on this :(
2019-03-19T07:16:23.016000
Svetlana
pythondev_help_Svetlana_2019-03-19T07:16:23.016000
1,552,979,783.016
14,024
pythondev
help
please post code and text, not pictures
2019-03-19T07:18:40.017700
Hiroko
pythondev_help_Hiroko_2019-03-19T07:18:40.017700
1,552,979,920.0177
14,025
pythondev
help
1. You'd be better off sharing code with copy and paste (use the :heavy_plus_sign: button on the left of the message box to add code snippets) rather than hard-to-read screenshots. 2. What have you tried so far? What's your code?
2019-03-19T07:18:43.017900
Melynda
pythondev_help_Melynda_2019-03-19T07:18:43.017900
1,552,979,923.0179
14,026
pythondev
help
If you can use the browser based slack and paste the error it would be easier for us to help
2019-03-19T07:18:51.018500
Clemmie
pythondev_help_Clemmie_2019-03-19T07:18:51.018500
1,552,979,931.0185
14,027
pythondev
help
can any one help me on this
2019-03-19T07:48:24.019500
Svetlana
pythondev_help_Svetlana_2019-03-19T07:48:24.019500
1,552,981,704.0195
14,028
pythondev
help
what’s the error?
2019-03-19T07:49:00.019900
Hiroko
pythondev_help_Hiroko_2019-03-19T07:49:00.019900
1,552,981,740.0199
14,029
pythondev
help
<@Hiroko> any idea,why this happening?
2019-03-19T07:54:08.021300
Svetlana
pythondev_help_Svetlana_2019-03-19T07:54:08.021300
1,552,982,048.0213
14,030
pythondev
help
column `e` doesn’t exist, apparently
2019-03-19T07:54:31.022000
Hiroko
pythondev_help_Hiroko_2019-03-19T07:54:31.022000
1,552,982,071.022
14,031
pythondev
help
what does this means?excel sheet obviouly have that
2019-03-19T07:55:15.022600
Svetlana
pythondev_help_Svetlana_2019-03-19T07:55:15.022600
1,552,982,115.0226
14,032
pythondev
help
remember a worksheet is created with no cells
2019-03-19T07:56:11.023200
Hiroko
pythondev_help_Hiroko_2019-03-19T07:56:11.023200
1,552,982,171.0232
14,033
pythondev
help
<https://openpyxl.readthedocs.io/en/stable/tutorial.html>
2019-03-19T07:56:15.023400
Hiroko
pythondev_help_Hiroko_2019-03-19T07:56:15.023400
1,552,982,175.0234
14,034
pythondev
help
&gt;&gt;&gt;When a worksheet is created in memory, it contains no cells. They are created when first accessed.
2019-03-19T07:56:23.023700
Hiroko
pythondev_help_Hiroko_2019-03-19T07:56:23.023700
1,552,982,183.0237
14,035
pythondev
help
sounds like for whatever reason, you haven’t iterated over enough cells to create them in memory, so when you try attaching the bar chart to that cell `e2`, it can’t find it
2019-03-19T07:57:27.024600
Hiroko
pythondev_help_Hiroko_2019-03-19T07:57:27.024600
1,552,982,247.0246
14,036
pythondev
help
so what changes i have to make
2019-03-19T07:58:11.025000
Svetlana
pythondev_help_Svetlana_2019-03-19T07:58:11.025000
1,552,982,291.025
14,037
pythondev
help
for example, does this work for you?
2019-03-19T07:58:11.025100
Hiroko
pythondev_help_Hiroko_2019-03-19T07:58:11.025100
1,552,982,291.0251
14,038
pythondev
help
<https://openpyxl.readthedocs.io/en/stable/charts/introduction.html#creating-a-chart>
2019-03-19T07:58:14.025300
Hiroko
pythondev_help_Hiroko_2019-03-19T07:58:14.025300
1,552,982,294.0253
14,039
pythondev
help
m going through it
2019-03-19T07:58:23.025600
Svetlana
pythondev_help_Svetlana_2019-03-19T07:58:23.025600
1,552,982,303.0256
14,040
pythondev
help
lol beginner level mistake,that column assigning is case sensitive when i make that capital E,its runs successfully,btw <@Hiroko> thanx for ur concern
2019-03-19T08:10:04.027800
Svetlana
pythondev_help_Svetlana_2019-03-19T08:10:04.027800
1,552,983,004.0278
14,041
pythondev
help
ahh, so columns are case sensitive?
2019-03-19T08:10:28.028100
Hiroko
pythondev_help_Hiroko_2019-03-19T08:10:28.028100
1,552,983,028.0281
14,042
pythondev
help
makes sense, especialy if they’re keys in a dict
2019-03-19T08:10:47.028700
Hiroko
pythondev_help_Hiroko_2019-03-19T08:10:47.028700
1,552,983,047.0287
14,043
pythondev
help
:thumbsup:
2019-03-19T08:10:53.028900
Hiroko
pythondev_help_Hiroko_2019-03-19T08:10:53.028900
1,552,983,053.0289
14,044
pythondev
help
maybe some version use lowercase when there is more colums :thinking_face: . afaik now it go straight to `AA`
2019-03-19T08:13:29.030000
Jimmy
pythondev_help_Jimmy_2019-03-19T08:13:29.030000
1,552,983,209.03
14,045
pythondev
help
hello. anyone know how to do a dataframe.head() but skip the first n lines? :slightly_smiling_face:
2019-03-19T09:09:24.030800
Douglass
pythondev_help_Douglass_2019-03-19T09:09:24.030800
1,552,986,564.0308
14,046
pythondev
help
Just found an answer. I'm sharing it with you: df.take(range(skip, df.shape[0]), axis=0).head(take)
2019-03-19T09:14:54.030900
Douglass
pythondev_help_Douglass_2019-03-19T09:14:54.030900
1,552,986,894.0309
14,047
pythondev
help
If u want to skip a set of lines then df.head(n=1)
2019-03-19T09:58:44.031500
Rhona
pythondev_help_Rhona_2019-03-19T09:58:44.031500
1,552,989,524.0315
14,048
pythondev
help
has anyone had any luck connecting to microsoft sql server with pyodbc? i'm using the latest ODBC Driver 17 for SQL Server. It connects to Azure, but it doesn't to a server we have in AWS. That server is a SQL Server 2012, and the connections are unencrypted since it runs in a private subnet. But it just says `pyodbc.OperationalError: ('HYT00', '[HYT00] [Microsoft][ODBC Driver 17 for SQL Server]Login timeout expired (0) (SQLDriverConnect)')` the whole time, which looks more like a login error than a connection error? I've tried logging in manually with the same credentials and that works
2019-03-19T10:04:37.033400
Dawn
pythondev_help_Dawn_2019-03-19T10:04:37.033400
1,552,989,877.0334
14,049
pythondev
help
Have you tried this? <https://stackoverflow.com/a/50051708/86093>
2019-03-19T10:34:47.033600
Melynda
pythondev_help_Melynda_2019-03-19T10:34:47.033600
1,552,991,687.0336
14,050
pythondev
help
yes, now it works. but now it turned into `[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'test'. (18456) `, while the login works on my computer if i try manually, using sql server authentication...
2019-03-19T10:41:42.034100
Dawn
pythondev_help_Dawn_2019-03-19T10:41:42.034100
1,552,992,102.0341
14,051
pythondev
help
I have an Class that has an method that makes an api call. if I wanted to do some testing on this, would I mock out the Class itself? and then set the return value of the function using something like side_effects?
2019-03-19T11:07:13.036000
Jorge
pythondev_help_Jorge_2019-03-19T11:07:13.036000
1,552,993,633.036
14,052
pythondev
help
My error connecting with sql server is now `[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'test'. (18456) `. I'm sure the credentials are right because I checked them multiple times and it works in other clients, just not in python. Any idea why it would fail in python while the user definitely can login?
2019-03-19T11:42:24.037400
Dawn
pythondev_help_Dawn_2019-03-19T11:42:24.037400
1,552,995,744.0374
14,053
pythondev
help
I would suggest that your credentials are perhaps not correct
2019-03-19T11:42:48.037700
Jonas
pythondev_help_Jonas_2019-03-19T11:42:48.037700
1,552,995,768.0377
14,054
pythondev
help
Are you using a connection string?
2019-03-19T11:43:04.038200
Jonas
pythondev_help_Jonas_2019-03-19T11:43:04.038200
1,552,995,784.0382
14,055
pythondev
help
are you sure you’re sending the correct creds in a string?
2019-03-19T11:43:08.038400
Hiroko
pythondev_help_Hiroko_2019-03-19T11:43:08.038400
1,552,995,788.0384
14,056
pythondev
help
<https://stackoverflow.com/questions/16515420/connecting-to-ms-sql-server-with-windows-authentication-using-python>
2019-03-19T11:43:39.038600
Jonas
pythondev_help_Jonas_2019-03-19T11:43:39.038600
1,552,995,819.0386
14,057
pythondev
help
<https://stackoverflow.com/questions/42789284/how-do-i-log-into-mssql-using-windows-auth-on-python?rq=1>
2019-03-19T11:43:54.039200
Jonas
pythondev_help_Jonas_2019-03-19T11:43:54.039200
1,552,995,834.0392
14,058
pythondev
help
i'm very sure the creds are right i checked them a thousand times and they work in another client
2019-03-19T11:44:02.039600
Dawn
pythondev_help_Dawn_2019-03-19T11:44:02.039600
1,552,995,842.0396
14,059
pythondev
help
please paste your connection string here
2019-03-19T11:44:16.040100
Jonas
pythondev_help_Jonas_2019-03-19T11:44:16.040100
1,552,995,856.0401
14,060
pythondev
help
without the password :+1:
2019-03-19T11:44:21.040300
Jonas
pythondev_help_Jonas_2019-03-19T11:44:21.040300
1,552,995,861.0403
14,061
pythondev
help
or the arguments you are connecting with
2019-03-19T11:44:32.040800
Jonas
pythondev_help_Jonas_2019-03-19T11:44:32.040800
1,552,995,872.0408
14,062
pythondev
help
also i'm using sql server authentication not windows authentication. just a user and password. also tried to connect with pymssql and i get the exact same error
2019-03-19T11:44:32.040900
Dawn
pythondev_help_Dawn_2019-03-19T11:44:32.040900
1,552,995,872.0409
14,063
pythondev
help
pymssql: `conn = pymssql.connect(server='127.0.0.1,1433',database='master',user='test',password='test')` pyodbc: `conn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=127.0.0.1,1433;DATABASE=master;UID=test;PWD=test;')` These creds work in sql server management studio
2019-03-19T11:45:52.041700
Dawn
pythondev_help_Dawn_2019-03-19T11:45:52.041700
1,552,995,952.0417
14,064
pythondev
help
the password and user only contain alphanumeric characters, no symbols
2019-03-19T11:46:52.042900
Dawn
pythondev_help_Dawn_2019-03-19T11:46:52.042900
1,552,996,012.0429
14,065
pythondev
help
so if you try and connect with SQL management studio with the wrong password, it fails?
2019-03-19T11:46:57.043200
Jonas
pythondev_help_Jonas_2019-03-19T11:46:57.043200
1,552,996,017.0432
14,066
pythondev
help
yes
2019-03-19T11:47:12.043400
Dawn
pythondev_help_Dawn_2019-03-19T11:47:12.043400
1,552,996,032.0434
14,067
pythondev
help
and you're sure of that? It's not falling back to another authentication method?
2019-03-19T11:47:23.043800
Jonas
pythondev_help_Jonas_2019-03-19T11:47:23.043800
1,552,996,043.0438
14,068
pythondev
help
i'm sure of that because i experienced it, also windows authentication is not enabled on that server
2019-03-19T11:47:42.044400
Dawn
pythondev_help_Dawn_2019-03-19T11:47:42.044400
1,552,996,062.0444
14,069
pythondev
help
what version of `mymssql` are you using as well
2019-03-19T11:47:44.044500
Jonas
pythondev_help_Jonas_2019-03-19T11:47:44.044500
1,552,996,064.0445
14,070
pythondev
help
pymssql 2.1.4, pyodbc 4.0.26
2019-03-19T11:48:34.044800
Dawn
pythondev_help_Dawn_2019-03-19T11:48:34.044800
1,552,996,114.0448
14,071
pythondev
help
both latest
2019-03-19T11:48:37.045000
Dawn
pythondev_help_Dawn_2019-03-19T11:48:37.045000
1,552,996,117.045
14,072
pythondev
help
they also both work with azure sql database, but not with this sql server 2012 web edition
2019-03-19T11:48:55.045400
Dawn
pythondev_help_Dawn_2019-03-19T11:48:55.045400
1,552,996,135.0454
14,073
pythondev
help
can you check the database logs? that would be the place to start
2019-03-19T11:49:28.045700
Jonas
pythondev_help_Jonas_2019-03-19T11:49:28.045700
1,552,996,168.0457
14,074
pythondev
help
i can't, no rights... but the docs on the error look like this <https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-18456-database-engine-error?view=sql-server-2017#additional-error-information>
2019-03-19T11:50:05.046100
Dawn
pythondev_help_Dawn_2019-03-19T11:50:05.046100
1,552,996,205.0461
14,075
pythondev
help
I would speak to whoeever has rights then
2019-03-19T11:50:23.046300
Jonas
pythondev_help_Jonas_2019-03-19T11:50:23.046300
1,552,996,223.0463
14,076
pythondev
help
you're not making any obvious mistakes.
2019-03-19T11:50:35.046800
Jonas
pythondev_help_Jonas_2019-03-19T11:50:35.046800
1,552,996,235.0468
14,077
pythondev
help
I would double check the defaults when connecting with sql studio
2019-03-19T11:51:03.047100
Jonas
pythondev_help_Jonas_2019-03-19T11:51:03.047100
1,552,996,263.0471
14,078
pythondev
help
is it perhaps enforcing an encrypted connection? Or some other policy that sql studio is abiding to by default but which your code is not?
2019-03-19T11:51:31.047800
Jonas
pythondev_help_Jonas_2019-03-19T11:51:31.047800
1,552,996,291.0478
14,079
pythondev
help
<http://pymssql.org/en/stable/faq.html> can also help you here
2019-03-19T11:51:46.048000
Jonas
pythondev_help_Jonas_2019-03-19T11:51:46.048000
1,552,996,306.048
14,080
pythondev
help
Setting `TDSDUMP` will give you some nice output to help you debug this.
2019-03-19T11:52:36.048600
Jonas
pythondev_help_Jonas_2019-03-19T11:52:36.048600
1,552,996,356.0486
14,081
pythondev
help
alright, thanks for thinking along. i've checked all those defaults and everything corresponds. i'm trying the tdsdump
2019-03-19T11:53:34.049000
Dawn
pythondev_help_Dawn_2019-03-19T11:53:34.049000
1,552,996,414.049
14,082
pythondev
help
is there anyone who works with aws rds. everytime i tries to connect with my local postgres it shows error connection timeout. If anybody had some knowledge around it will be really helpful? error message: "could not connect to server: Connection timed out (0x0000274C/10060) Is the server running on host "xxxxxxxxx" (-) and accepting TCP/IP connections on port 5432?"
2019-03-19T12:21:01.050200
Rhona
pythondev_help_Rhona_2019-03-19T12:21:01.050200
1,552,998,061.0502
14,083
pythondev
help
<@Rhona> are your security groups on your rds instance allowing traffic from your IP?
2019-03-19T12:22:20.050800
Jessica
pythondev_help_Jessica_2019-03-19T12:22:20.050800
1,552,998,140.0508
14,084
pythondev
help
<@Jessica> im pretty new to aws . im not sure.?
2019-03-19T12:23:13.051500
Rhona
pythondev_help_Rhona_2019-03-19T12:23:13.051500
1,552,998,193.0515
14,085
pythondev
help
<@Rhona> looks like a security group issue
2019-03-19T12:24:03.052600
Genesis
pythondev_help_Genesis_2019-03-19T12:24:03.052600
1,552,998,243.0526
14,086
pythondev
help
the other question I would have is whether your rds instance is set up on a public subnet. I took some online courses on AWS a while back to learn the fundamentals and it’s really been useful
2019-03-19T12:24:07.052800
Jessica
pythondev_help_Jessica_2019-03-19T12:24:07.052800
1,552,998,247.0528
14,087
pythondev
help
im not sure. but i will look into your suggestion and see if it works. Also needed to take some fundamental training as it pretty complicated to understand
2019-03-19T12:25:30.054600
Rhona
pythondev_help_Rhona_2019-03-19T12:25:30.054600
1,552,998,330.0546
14,088
pythondev
help
<@Rhona> go to rds -&gt; your instance -&gt; connectivity and security tab, look for "VPC security groups"
2019-03-19T12:25:33.054700
Genesis
pythondev_help_Genesis_2019-03-19T12:25:33.054700
1,552,998,333.0547
14,089
pythondev
help
click on the security group under that section
2019-03-19T12:25:44.055100
Genesis
pythondev_help_Genesis_2019-03-19T12:25:44.055100
1,552,998,344.0551
14,090
pythondev
help
that will take you to ec2 -&gt; security groups. Then click on the inbound tab at the bottom
2019-03-19T12:26:07.055700
Genesis
pythondev_help_Genesis_2019-03-19T12:26:07.055700
1,552,998,367.0557
14,091
pythondev
help
see if you are allowing connections from 5432 on the right cidr blocks
2019-03-19T12:26:23.056100
Genesis
pythondev_help_Genesis_2019-03-19T12:26:23.056100
1,552,998,383.0561
14,092
pythondev
help
sure. thanks <@Genesis> i will try. as i was using client system . so there might be some firewall and security restriction this might be reason. im about to try on my own system hopefully i will work
2019-03-19T12:27:27.057200
Rhona
pythondev_help_Rhona_2019-03-19T12:27:27.057200
1,552,998,447.0572
14,093
pythondev
help
im running across this stupid issue again, but appending a list to a dataframe is creating a new column at the end and only appends in that created column. How can i get my list to append appropriately (horizontally)?
2019-03-19T14:37:00.059000
Nenita
pythondev_help_Nenita_2019-03-19T14:37:00.059000
1,553,006,220.059
14,094
pythondev
help
nvm i just used df.loc. takes a sec longer, but i refuse to waste time again trying to figure out how to use df.append
2019-03-19T14:48:06.059800
Nenita
pythondev_help_Nenita_2019-03-19T14:48:06.059800
1,553,006,886.0598
14,095
pythondev
help
Are there any Django experts in here? Is it possible to apply a permission class to an action specified by "@ action" decorator but not the other actions in the viewset?
2019-03-19T15:41:10.061900
Dione
pythondev_help_Dione_2019-03-19T15:41:10.061900
1,553,010,070.0619
14,096
pythondev
help
Perhaps I'm missing something simple...
2019-03-19T15:41:33.062500
Dione
pythondev_help_Dione_2019-03-19T15:41:33.062500
1,553,010,093.0625
14,097
pythondev
help
<#C0LMFRMB5|django>
2019-03-19T15:42:24.063000
Hiroko
pythondev_help_Hiroko_2019-03-19T15:42:24.063000
1,553,010,144.063
14,098
pythondev
help
Is anyone familiar with running Python scripts from SQL Server jobs?
2019-03-19T15:42:30.063400
Kandy
pythondev_help_Kandy_2019-03-19T15:42:30.063400
1,553,010,150.0634
14,099
pythondev
help
but AFAIK, not exactly
2019-03-19T15:42:34.063600
Hiroko
pythondev_help_Hiroko_2019-03-19T15:42:34.063600
1,553,010,154.0636
14,100
pythondev
help
there might be a third party lib that can do that, but DRF applies perms to all actions with no differentiation
2019-03-19T15:42:58.064400
Hiroko
pythondev_help_Hiroko_2019-03-19T15:42:58.064400
1,553,010,178.0644
14,101
pythondev
help
as a step in a job?
2019-03-19T15:44:05.065600
Deon
pythondev_help_Deon_2019-03-19T15:44:05.065600
1,553,010,245.0656
14,102
pythondev
help
<@Hiroko> derp, thanks I'll try in the <#C0LMFRMB5|django> channel. Seems like this would be a reasonably frequent case.
2019-03-19T15:44:28.066100
Dione
pythondev_help_Dione_2019-03-19T15:44:28.066100
1,553,010,268.0661
14,103
pythondev
help
yes - CmdExec job step
2019-03-19T15:54:41.066200
Kandy
pythondev_help_Kandy_2019-03-19T15:54:41.066200
1,553,010,881.0662
14,104
pythondev
help
on sql 2012
2019-03-19T15:54:51.066400
Kandy
pythondev_help_Kandy_2019-03-19T15:54:51.066400
1,553,010,891.0664
14,105
pythondev
help
its essentially calling a batch file that has python.exe [filename]
2019-03-19T15:59:01.066600
Kandy
pythondev_help_Kandy_2019-03-19T15:59:01.066600
1,553,011,141.0666
14,106
pythondev
help
which works when I run it manually
2019-03-19T15:59:09.066800
Kandy
pythondev_help_Kandy_2019-03-19T15:59:09.066800
1,553,011,149.0668
14,107
pythondev
help
cant you just run a command instead of a batch file that runs python
2019-03-19T15:59:52.067000
Deon
pythondev_help_Deon_2019-03-19T15:59:52.067000
1,553,011,192.067
14,108
pythondev
help
I can try
2019-03-19T16:00:18.067200
Kandy
pythondev_help_Kandy_2019-03-19T16:00:18.067200
1,553,011,218.0672
14,109
pythondev
help
python dir\to\your\pyscript.py
2019-03-19T16:00:44.067400
Deon
pythondev_help_Deon_2019-03-19T16:00:44.067400
1,553,011,244.0674
14,110
pythondev
help
you might need to put quotes around "python" and the "script"
2019-03-19T16:00:55.067600
Deon
pythondev_help_Deon_2019-03-19T16:00:55.067600
1,553,011,255.0676
14,111
pythondev
help
already there
2019-03-19T16:01:04.067800
Kandy
pythondev_help_Kandy_2019-03-19T16:01:04.067800
1,553,011,264.0678
14,112
pythondev
help
with full path as well on each
2019-03-19T16:01:50.068000
Kandy
pythondev_help_Kandy_2019-03-19T16:01:50.068000
1,553,011,310.068
14,113
pythondev
help
I know it started
2019-03-19T16:05:04.068200
Kandy
pythondev_help_Kandy_2019-03-19T16:05:04.068200
1,553,011,504.0682
14,114
pythondev
help
but again not finishing
2019-03-19T16:05:22.068400
Kandy
pythondev_help_Kandy_2019-03-19T16:05:22.068400
1,553,011,522.0684
14,115
pythondev
help
so the script ran but didnt finish?
2019-03-19T16:13:36.068600
Deon
pythondev_help_Deon_2019-03-19T16:13:36.068600
1,553,012,016.0686
14,116
pythondev
help
yes - its till running
2019-03-19T16:20:32.068800
Kandy
pythondev_help_Kandy_2019-03-19T16:20:32.068800
1,553,012,432.0688
14,117
pythondev
help
should be done in under 1 min
2019-03-19T16:22:05.069000
Kandy
pythondev_help_Kandy_2019-03-19T16:22:05.069000
1,553,012,525.069
14,118
pythondev
help
under 10 sec in reality
2019-03-19T16:22:20.069200
Kandy
pythondev_help_Kandy_2019-03-19T16:22:20.069200
1,553,012,540.0692
14,119
pythondev
help
something making it hang?
2019-03-19T16:24:48.069400
Deon
pythondev_help_Deon_2019-03-19T16:24:48.069400
1,553,012,688.0694
14,120