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
<@Carmen> Thanks! I will look into both scenarios. I may go with Flask just for the practice.
2019-02-05T20:20:36.060500
Janella
pythondev_help_Janella_2019-02-05T20:20:36.060500
1,549,398,036.0605
6,821
pythondev
help
None
2019-02-05T22:41:47.061000
Hai
pythondev_help_Hai_2019-02-05T22:41:47.061000
1,549,406,507.061
6,822
pythondev
help
<@Hai> Looking at the Pandas API reference (I don't have any experience reading in .json files) it looks like orient is supposed to be a string. Perhaps try: `orient='records'` ?
2019-02-06T00:03:25.063100
Marth
pythondev_help_Marth_2019-02-06T00:03:25.063100
1,549,411,405.0631
6,823
pythondev
help
<@Marth> i tried orient='records' but still the same error
2019-02-06T00:04:05.063500
Hai
pythondev_help_Hai_2019-02-06T00:04:05.063500
1,549,411,445.0635
6,824
pythondev
help
I'm guessing it is, but the only other thing I'd verify is that the path is correct. I'd throw a quick print in just prior for a sanity check and to make sure something isn't wonky with a relative path or something? Sorry I can't be of more help.
2019-02-06T00:08:11.065700
Marth
pythondev_help_Marth_2019-02-06T00:08:11.065700
1,549,411,691.0657
6,825
pythondev
help
no prbs dan i will add some prints and see . thank dan appreicate it
2019-02-06T00:09:12.066200
Hai
pythondev_help_Hai_2019-02-06T00:09:12.066200
1,549,411,752.0662
6,826
pythondev
help
:+1: if you get a new error or have more info share...please do! I've been starting to work a little bit with pandas...so knowing how/when thing fail and how to troubleshoot them is helpful for me too!
2019-02-06T00:11:06.068000
Marth
pythondev_help_Marth_2019-02-06T00:11:06.068000
1,549,411,866.068
6,827
pythondev
help
sure dan i will
2019-02-06T00:11:22.068200
Hai
pythondev_help_Hai_2019-02-06T00:11:22.068200
1,549,411,882.0682
6,828
pythondev
help
also just did a quick google and found this: <https://stackoverflow.com/questions/24924909/python-pandas-not-recognizing-json-file> No idea if it's relevant to what you're trying to do.
2019-02-06T00:13:52.069000
Marth
pythondev_help_Marth_2019-02-06T00:13:52.069000
1,549,412,032.069
6,829
pythondev
help
make your file a jinja template, then pandas will recognise it
2019-02-06T00:15:38.069200
Malika
pythondev_help_Malika_2019-02-06T00:15:38.069200
1,549,412,138.0692
6,830
pythondev
help
can any one help me with transitions in thread? I see that triggers dont get called from thread
2019-02-06T02:16:02.070200
Micki
pythondev_help_Micki_2019-02-06T02:16:02.070200
1,549,419,362.0702
6,831
pythondev
help
Ask the question you want to ask, don't ask to ask.
2019-02-06T02:18:46.070400
Jonas
pythondev_help_Jonas_2019-02-06T02:18:46.070400
1,549,419,526.0704
6,832
pythondev
help
I know you've been asking about this a lot and not getting any good answers. Maybe it would help if you could reduce your code down to the simplest possible self-contained case which exhibits the problem you're seeing?
2019-02-06T02:20:42.070600
Sasha
pythondev_help_Sasha_2019-02-06T02:20:42.070600
1,549,419,642.0706
6,833
pythondev
help
I was giving all the details
2019-02-06T02:22:52.070900
Micki
pythondev_help_Micki_2019-02-06T02:22:52.070900
1,549,419,772.0709
6,834
pythondev
help
but didnt get response. I am stuck and cant proceed so I am asking
2019-02-06T02:23:11.071100
Micki
pythondev_help_Micki_2019-02-06T02:23:11.071100
1,549,419,791.0711
6,835
pythondev
help
I gave the state machine and related code
2019-02-06T02:23:34.071300
Micki
pythondev_help_Micki_2019-02-06T02:23:34.071300
1,549,419,814.0713
6,836
pythondev
help
its very basic issue the sate trigger is not getting called from thread
2019-02-06T02:24:56.071500
Micki
pythondev_help_Micki_2019-02-06T02:24:56.071500
1,549,419,896.0715
6,837
pythondev
help
its very basic the state transition triggers are not getting called from thread , before creating thread I see triggers get called
2019-02-06T02:25:51.072500
Micki
pythondev_help_Micki_2019-02-06T02:25:51.072500
1,549,419,951.0725
6,838
pythondev
help
the code works in different repo I am porting to containerise it to a different repo
2019-02-06T02:27:49.073300
Micki
pythondev_help_Micki_2019-02-06T02:27:49.073300
1,549,420,069.0733
6,839
pythondev
help
Hello. I'm getting a Traceback (most recent call last): File "C:/Users/.PyCharmCE2018.3/config/scratches/scratch_1.py", line 64, in &lt;module&gt; x = gauss_pivot(a,b) Exception: Matrix is singular
2019-02-06T03:15:12.073600
Doretha
pythondev_help_Doretha_2019-02-06T03:15:12.073600
1,549,422,912.0736
6,840
pythondev
help
so what's the problem?
2019-02-06T03:40:28.074000
Jettie
pythondev_help_Jettie_2019-02-06T03:40:28.074000
1,549,424,428.074
6,841
pythondev
help
it detects a singular matrix
2019-02-06T03:40:59.074600
Jettie
pythondev_help_Jettie_2019-02-06T03:40:59.074600
1,549,424,459.0746
6,842
pythondev
help
Can you put this in a single file somewhere that someone can download and run? Completely self-contained?
2019-02-06T04:19:56.075100
Karoline
pythondev_help_Karoline_2019-02-06T04:19:56.075100
1,549,426,796.0751
6,843
pythondev
help
<@Jettie> the given matrix is a tridiagonal matrix, why does it report a singular matrix?
2019-02-06T04:46:05.076500
Doretha
pythondev_help_Doretha_2019-02-06T04:46:05.076500
1,549,428,365.0765
6,844
pythondev
help
Hi, I have a function that returns a function. We use type hints in our project but I’m not sure what’s the best practice here regarding which type to use in the hint when returning a function. This answer suggests returning a `Callable`: <https://stackoverflow.com/a/39624147> Is that a good solution?
2019-02-06T04:54:52.078200
Teodora
pythondev_help_Teodora_2019-02-06T04:54:52.078200
1,549,428,892.0782
6,845
pythondev
help
the top answer seems like the best
2019-02-06T04:56:27.078600
Mica
pythondev_help_Mica_2019-02-06T04:56:27.078600
1,549,428,987.0786
6,846
pythondev
help
That’s the one I linked, right?
2019-02-06T04:57:07.078900
Teodora
pythondev_help_Teodora_2019-02-06T04:57:07.078900
1,549,429,027.0789
6,847
pythondev
help
yes
2019-02-06T04:57:13.079200
Mica
pythondev_help_Mica_2019-02-06T04:57:13.079200
1,549,429,033.0792
6,848
pythondev
help
btw: Do you recommend a linter to enforce type hints when making a PR?
2019-02-06T04:58:51.079500
Teodora
pythondev_help_Teodora_2019-02-06T04:58:51.079500
1,549,429,131.0795
6,849
pythondev
help
mypy!
2019-02-06T04:59:28.079700
Jettie
pythondev_help_Jettie_2019-02-06T04:59:28.079700
1,549,429,168.0797
6,850
pythondev
help
I (personally) recommend black as a linter and Mypy for checking type hinting
2019-02-06T04:59:29.079900
Mica
pythondev_help_Mica_2019-02-06T04:59:29.079900
1,549,429,169.0799
6,851
pythondev
help
the issue with Callables is that they are not flexible
2019-02-06T04:59:58.080400
Jettie
pythondev_help_Jettie_2019-02-06T04:59:58.080400
1,549,429,198.0804
6,852
pythondev
help
but there are also Protocols, and I've heard they can be used to define a more strict callable
2019-02-06T05:00:19.080900
Jettie
pythondev_help_Jettie_2019-02-06T05:00:19.080900
1,549,429,219.0809
6,853
pythondev
help
like, a callable that accepts a certain keyword argument
2019-02-06T05:00:32.081400
Jettie
pythondev_help_Jettie_2019-02-06T05:00:32.081400
1,549,429,232.0814
6,854
pythondev
help
oh yeah! <https://mypy.readthedocs.io/en/latest/protocols.html#callback-protocols>
2019-02-06T05:01:54.081600
Jettie
pythondev_help_Jettie_2019-02-06T05:01:54.081600
1,549,429,314.0816
6,855
pythondev
help
nice find <@Jettie> :thumbsup:
2019-02-06T05:13:06.081900
Jimmy
pythondev_help_Jimmy_2019-02-06T05:13:06.081900
1,549,429,986.0819
6,856
pythondev
help
Hello, I have a database with all the contacts (time and cause) that have been made by all th customers of a company. I'm trying to predict which client is going to contact again. I would like to use all the information, without grouping and I think tensorflow could be the solution I've understood that a Tensor is a ma...
2019-02-06T05:25:37.083100
Camelia
pythondev_help_Camelia_2019-02-06T05:25:37.083100
1,549,430,737.0831
6,857
pythondev
help
is here the best channel for beginner questions? Hope so, I am trying to retrieve the first letter of each word in a sentence with regular expression: `\b[a-zA-Z]\b` e.g. from "Hi-there" I want to get "[H, t]". ``` p = re.compile(r'\b[a-zA-Z]\b') p.search('Hi-there') # return None? ``` Why does this not work?
2019-02-06T05:51:51.087500
Lanny
pythondev_help_Lanny_2019-02-06T05:51:51.087500
1,549,432,311.0875
6,858
pythondev
help
You could also try <#C07EW4DNE|learning_python>
2019-02-06T05:53:56.087600
Teodora
pythondev_help_Teodora_2019-02-06T05:53:56.087600
1,549,432,436.0876
6,859
pythondev
help
ok wasn't sure which channel suits better for beginner level questions
2019-02-06T05:54:45.087900
Lanny
pythondev_help_Lanny_2019-02-06T05:54:45.087900
1,549,432,485.0879
6,860
pythondev
help
here works
2019-02-06T05:54:56.088100
Karoline
pythondev_help_Karoline_2019-02-06T05:54:56.088100
1,549,432,496.0881
6,861
pythondev
help
So I think the issue is you need one or more of the `[a-zA-Z]` so you should change your regex to `\b[a-zA-Z]+\b` and I think it will work for you
2019-02-06T05:58:48.089100
Karoline
pythondev_help_Karoline_2019-02-06T05:58:48.089100
1,549,432,728.0891
6,862
pythondev
help
because what you are searching for is a single letter that is at the beginning and end of a word
2019-02-06T05:59:23.089800
Karoline
pythondev_help_Karoline_2019-02-06T05:59:23.089800
1,549,432,763.0898
6,863
pythondev
help
Or - I guess the better thing to do is ask what you want to see returned from that, because I suppose there are other ways to interpret what you wanted to match.
2019-02-06T06:00:11.090500
Karoline
pythondev_help_Karoline_2019-02-06T06:00:11.090500
1,549,432,811.0905
6,864
pythondev
help
But my change would match both `Hi` and `there`.
2019-02-06T06:00:32.090900
Karoline
pythondev_help_Karoline_2019-02-06T06:00:32.090900
1,549,432,832.0909
6,865
pythondev
help
you could also check out <#CC4NKARK6|regex> for future regex qs :stuck_out_tongue:
2019-02-06T06:05:58.091200
Mica
pythondev_help_Mica_2019-02-06T06:05:58.091200
1,549,433,158.0912
6,866
pythondev
help
You can integrate them all into pytest pretty easily too which is nice, so it runs the type checking and black all in one command with your tests.
2019-02-06T06:10:37.095100
Karoline
pythondev_help_Karoline_2019-02-06T06:10:37.095100
1,549,433,437.0951
6,867
pythondev
help
I have state Machine with transition import Machine, and states are defined. in post_init state I create another thread and rest of the states are triggered through this thread. All this code works in another repo. I am porting it to different repo for containersing the adapter. But I see that when I trigger from thre...
2019-02-06T06:11:12.095800
Micki
pythondev_help_Micki_2019-02-06T06:11:12.095800
1,549,433,472.0958
6,868
pythondev
help
The only way you are going to get help on this is if you are able to post a complete example somewhere that demonstrates the problem. It's too generic otherwise.
2019-02-06T06:12:07.096600
Karoline
pythondev_help_Karoline_2019-02-06T06:12:07.096600
1,549,433,527.0966
6,869
pythondev
help
I can dump all the code snippte
2019-02-06T06:12:50.097000
Micki
pythondev_help_Micki_2019-02-06T06:12:50.097000
1,549,433,570.097
6,870
pythondev
help
Actualy I have done that
2019-02-06T06:13:03.097400
Micki
pythondev_help_Micki_2019-02-06T06:13:03.097400
1,549,433,583.0974
6,871
pythondev
help
this is getting better. I also need to match on the first letter in a word that doesn't begin with a letter e.g. _not_ which I want to match on `n`
2019-02-06T06:13:07.097600
Lanny
pythondev_help_Lanny_2019-02-06T06:13:07.097600
1,549,433,587.0976
6,872
pythondev
help
Make a single python file that someone can run to replicate the problem.
2019-02-06T06:13:08.097800
Karoline
pythondev_help_Karoline_2019-02-06T06:13:08.097800
1,549,433,588.0978
6,873
pythondev
help
I will do it again
2019-02-06T06:13:12.097900
Micki
pythondev_help_Micki_2019-02-06T06:13:12.097900
1,549,433,592.0979
6,874
pythondev
help
I am not sure it can be done
2019-02-06T06:13:52.098200
Micki
pythondev_help_Micki_2019-02-06T06:13:52.098200
1,549,433,632.0982
6,875
pythondev
help
hmm yeah this might be a job for <#CC4NKARK6|regex> as was mentioned above :joy:
2019-02-06T06:13:58.098400
Karoline
pythondev_help_Karoline_2019-02-06T06:13:58.098400
1,549,433,638.0984
6,876
pythondev
help
sure
2019-02-06T06:14:18.099000
Lanny
pythondev_help_Lanny_2019-02-06T06:14:18.099000
1,549,433,658.099
6,877
pythondev
help
I can give the code but stae machine starts with external event
2019-02-06T06:14:19.099200
Micki
pythondev_help_Micki_2019-02-06T06:14:19.099200
1,549,433,659.0992
6,878
pythondev
help
command through CLI
2019-02-06T06:14:25.099400
Micki
pythondev_help_Micki_2019-02-06T06:14:25.099400
1,549,433,665.0994
6,879
pythondev
help
can you not simulate the event in the example script? An important skill in issues like this is trying to break the problem down to the smallest, most self-contained possible example.
2019-02-06T06:16:21.100500
Karoline
pythondev_help_Karoline_2019-02-06T06:16:21.100500
1,549,433,781.1005
6,880
pythondev
help
Removing all the other extraneous bits will help you think about the problem more clearly and allow others you are asking for help to replicate the problem with the confidence they have all the context necessary.
2019-02-06T06:16:54.101300
Karoline
pythondev_help_Karoline_2019-02-06T06:16:54.101300
1,549,433,814.1013
6,881
pythondev
help
People want to help you here but everything you've shared so far doesn't give anyone enough to really do so.
2019-02-06T06:17:27.101800
Karoline
pythondev_help_Karoline_2019-02-06T06:17:27.101800
1,549,433,847.1018
6,882
pythondev
help
I tried to give as much as I can
2019-02-06T06:17:49.102100
Micki
pythondev_help_Micki_2019-02-06T06:17:49.102100
1,549,433,869.1021
6,883
pythondev
help
but I havent received any help
2019-02-06T06:18:04.102400
Micki
pythondev_help_Micki_2019-02-06T06:18:04.102400
1,549,433,884.1024
6,884
pythondev
help
I am not sure if I can give code which will reproduce problem
2019-02-06T06:18:44.103300
Micki
pythondev_help_Micki_2019-02-06T06:18:44.103300
1,549,433,924.1033
6,885
pythondev
help
its part of the large code base
2019-02-06T06:18:55.103800
Micki
pythondev_help_Micki_2019-02-06T06:18:55.103800
1,549,433,935.1038
6,886
pythondev
help
and I am new to python
2019-02-06T06:19:02.104000
Micki
pythondev_help_Micki_2019-02-06T06:19:02.104000
1,549,433,942.104
6,887
pythondev
help
its open source anyways
2019-02-06T06:19:33.104800
Micki
pythondev_help_Micki_2019-02-06T06:19:33.104800
1,549,433,973.1048
6,888
pythondev
help
Trying to produce the smallest working example of the problem is a good investment of your time, I promise. I wouldn't be surprised if in the process you figure out the issue yourself, but even if not it will allow others to help.
2019-02-06T06:19:49.105200
Karoline
pythondev_help_Karoline_2019-02-06T06:19:49.105200
1,549,433,989.1052
6,889
pythondev
help
Its just I give command to preprovision device which starts the state machine
2019-02-06T06:20:55.105900
Micki
pythondev_help_Micki_2019-02-06T06:20:55.105900
1,549,434,055.1059
6,890
pythondev
help
its more about state machine and thread knowledge
2019-02-06T06:21:16.106300
Micki
pythondev_help_Micki_2019-02-06T06:21:16.106300
1,549,434,076.1063
6,891
pythondev
help
in python
2019-02-06T06:21:27.106500
Micki
pythondev_help_Micki_2019-02-06T06:21:27.106500
1,549,434,087.1065
6,892
pythondev
help
if some has already worked on it might know
2019-02-06T06:21:41.106900
Micki
pythondev_help_Micki_2019-02-06T06:21:41.106900
1,549,434,101.1069
6,893
pythondev
help
and its a working code in one repo
2019-02-06T06:22:42.107200
Micki
pythondev_help_Micki_2019-02-06T06:22:42.107200
1,549,434,162.1072
6,894
pythondev
help
I am moving to another repo
2019-02-06T06:22:53.107500
Micki
pythondev_help_Micki_2019-02-06T06:22:53.107500
1,549,434,173.1075
6,895
pythondev
help
You need to dig into why this does not work. We cannot help you as you have not provided a small code sample that shows the issue
2019-02-06T07:00:29.108600
Jonas
pythondev_help_Jonas_2019-02-06T07:00:29.108600
1,549,436,429.1086
6,896
pythondev
help
And the issue is not to do with state machines, that's just something composed of something else.
2019-02-06T07:00:54.109500
Jonas
pythondev_help_Jonas_2019-02-06T07:00:54.109500
1,549,436,454.1095
6,897
pythondev
help
You may find the issue you are looking for by creating the smallest possible sample that reproduces the problem
2019-02-06T07:01:31.110500
Jonas
pythondev_help_Jonas_2019-02-06T07:01:31.110500
1,549,436,491.1105
6,898
pythondev
help
But you can't just dump a lot of code and say "it's not working" and expect anyone to be able to help you, sorry :confused:
2019-02-06T07:02:02.111300
Jonas
pythondev_help_Jonas_2019-02-06T07:02:02.111300
1,549,436,522.1113
6,899
pythondev
help
I gave all the code which was relavent
2019-02-06T07:02:30.112000
Micki
pythondev_help_Micki_2019-02-06T07:02:30.112000
1,549,436,550.112
6,900
pythondev
help
If you're unable to do this then maybe seeking help inside your company is a better way
2019-02-06T07:02:33.112200
Jonas
pythondev_help_Jonas_2019-02-06T07:02:33.112200
1,549,436,553.1122
6,901
pythondev
help
I am tryng to get help within company as well
2019-02-06T07:03:00.113000
Micki
pythondev_help_Micki_2019-02-06T07:03:00.113000
1,549,436,580.113
6,902
pythondev
help
We generally don't just want relevant code, we want the smallest sample that reproduces your problem.
2019-02-06T07:03:15.113800
Jonas
pythondev_help_Jonas_2019-02-06T07:03:15.113800
1,549,436,595.1138
6,903
pythondev
help
All code is relevant to see extent.
2019-02-06T07:03:26.114300
Jonas
pythondev_help_Jonas_2019-02-06T07:03:26.114300
1,549,436,606.1143
6,904
pythondev
help
I have showed teh state machine, init state and the thread code where exactly the problem is
2019-02-06T07:03:33.114600
Micki
pythondev_help_Micki_2019-02-06T07:03:33.114600
1,549,436,613.1146
6,905
pythondev
help
this is actualy working code in open source
2019-02-06T07:04:02.115100
Micki
pythondev_help_Micki_2019-02-06T07:04:02.115100
1,549,436,642.1151
6,906
pythondev
help
Then you should have no problems reducing this down into a single file that shows the issue
2019-02-06T07:04:27.116100
Jonas
pythondev_help_Jonas_2019-02-06T07:04:27.116100
1,549,436,667.1161
6,907
pythondev
help
And in doing so you may well find the root of the problem
2019-02-06T07:04:44.116800
Jonas
pythondev_help_Jonas_2019-02-06T07:04:44.116800
1,549,436,684.1168
6,908
pythondev
help
I also didnt get much information on this when I googled various things
2019-02-06T07:04:48.117000
Micki
pythondev_help_Micki_2019-02-06T07:04:48.117000
1,549,436,688.117
6,909
pythondev
help
However that can be tricky with threads.
2019-02-06T07:04:53.117200
Jonas
pythondev_help_Jonas_2019-02-06T07:04:53.117200
1,549,436,693.1172
6,910
pythondev
help
I cant create whole environment in single file to reproduce the problem
2019-02-06T07:05:43.117800
Micki
pythondev_help_Micki_2019-02-06T07:05:43.117800
1,549,436,743.1178
6,911
pythondev
help
where external events and threads are involved
2019-02-06T07:05:59.118500
Micki
pythondev_help_Micki_2019-02-06T07:05:59.118500
1,549,436,759.1185
6,912
pythondev
help
and I am new to python
2019-02-06T07:06:10.118800
Micki
pythondev_help_Micki_2019-02-06T07:06:10.118800
1,549,436,770.1188
6,913
pythondev
help
&gt; I also didnt get much information on this when I googled various things I think this is because you don't know what the problem is precisely, so you don't know the question to ask.
2019-02-06T07:06:12.119000
Karoline
pythondev_help_Karoline_2019-02-06T07:06:12.119000
1,549,436,772.119
6,914
pythondev
help
It's the same reason nobody is able to help here because it's unclear what the problem is.
2019-02-06T07:06:24.119300
Karoline
pythondev_help_Karoline_2019-02-06T07:06:24.119300
1,549,436,784.1193
6,915
pythondev
help
^
2019-02-06T07:06:35.119600
Jonas
pythondev_help_Jonas_2019-02-06T07:06:35.119600
1,549,436,795.1196
6,916
pythondev
help
I have been saying that the stae trigger is not getting called from thread
2019-02-06T07:07:00.120500
Micki
pythondev_help_Micki_2019-02-06T07:07:00.120500
1,549,436,820.1205
6,917
pythondev
help
"It doesn't work" and then a couple snippets of syntactically correct code isn't enough for anybody to really help.
2019-02-06T07:07:02.120700
Karoline
pythondev_help_Karoline_2019-02-06T07:07:02.120700
1,549,436,822.1207
6,918
pythondev
help
that is the problem
2019-02-06T07:07:06.120900
Micki
pythondev_help_Micki_2019-02-06T07:07:06.120900
1,549,436,826.1209
6,919
pythondev
help
Right, but there are parts of the application missing, so it could be anything or anywhere.
2019-02-06T07:07:32.122200
Karoline
pythondev_help_Karoline_2019-02-06T07:07:32.122200
1,549,436,852.1222
6,920