Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Nov 2, 2021 11:41
Could you please support me on the question if I am making any mistake once I prepare the question ? Thanks
Nov 2, 2021 11:40
I asked as a question here: stackoverflow.com/q/69809791/1953250
Nov 2, 2021 11:30
So scared :)
Nov 2, 2021 11:30
No success so far. That's way I asked here. If I ask it as a question, it will be downvoted as usual :)
Nov 2, 2021 11:29
I was searching about more than one hour.
Nov 2, 2021 11:28
@AnttiHaapala any suggestion ?
Nov 2, 2021 11:23
How can I separate a column of pandas dataframe into multiple columns based on the size of each text length ?
id body
1 abcdefgh
2 xyzk

For this case, I would like to get:
id body1 body2
1 abcd efgh
2 xy zk
Nov 2, 2021 11:20
Hello there, How can I separate a column of pandas dataframe into multiple columns based on the size of each text length ?
Apr 25, 2021 14:42
Thanks a lot for your help @roganjosh @CoolCloud
Apr 25, 2021 14:39
I need to wait 6 months according to guideline page to be able to ask :)
Apr 25, 2021 14:33
This means I can only hit undelete flag. This is what you are asking ? (probably not)
Apr 25, 2021 14:32
Both of questions are not deleted by myself, they are deleted by the community.
Apr 25, 2021 14:31
So I should undo deletion ?
Apr 25, 2021 14:31
Sorry for that there are 2 questions in Recently Deleted Questions
Apr 25, 2021 14:27
I might delete only a single question in my history. If that question is the case, I can try to figure out it. Other than that, I am sure that I have not deleted any.
Apr 25, 2021 14:14
No problem at all. You are absolutely right that I should ask it as a new question. As I explained I am not eligible to do. I might mention it at the beginning of my message early on the chat. By the way, thanks a lot for your comments.
Apr 25, 2021 14:11
This is the message once I hit the ask question button.
Apr 25, 2021 14:10
You have reached your question limit
Apr 25, 2021 14:09
I do not know but If I try to ask, it says you are not eligible to ask because of question limit etc.
Apr 25, 2021 14:08
Even on that question, I do not understand the idea of that part of the question. Do you? Because if I exactly think from the point of who asked the question, there might be a tiny mistake?
Apr 25, 2021 14:05
I am not eligible to ask a question, that is why I tried the chat side.
Apr 25, 2021 13:59
fill_diagonal cannot help because there might be cases which modify diagonal values. For instance > ID | Value
1 | A
1 | A
1 | B
1 | C
2 | B
2 | C
2 | C

A B C
A 1 1 1
B 1 0 2
C 1 2 1
Apr 25, 2021 13:45
Can I handle it with merge.query() ?
Apr 25, 2021 13:26
my expectation on this question is A B C
A 0 1 1
B 1 0 2
C 1 2 0
Apr 25, 2021 13:23
I assumed that I have to focus on merge side to handle the proposed scenario. However, I could not handle it really so far :(
Apr 25, 2021 13:22
I would like to count the number of relations very similar to this question but I am assuming there is a mistake. Anyone can help about this ?
Apr 25, 2021 13:20
I have placed there a comment as "how about the case assuming of (A, A) = 0, (B,B) = 0, etc.. because they are not available in any case. For instance in both cases (ID=1 or ID=2), AA is not exist. If we want to figure out counting only those conditions > AB, AC, BA, BC, CA, CB (from ID=1) and BC, CB (from ID=2), how can we modify the merge side ? Thanks"
Apr 25, 2021 13:20
Can anyone to understand the question design here > stackoverflow.com/questions/55065199/…
Nov 13, 2020 09:14
thanks a lot
Nov 13, 2020 09:14
@MisterMiyagi
Nov 13, 2020 09:14
thanks for your comments
Nov 13, 2020 09:13
Alright then @PaulMcG
Nov 13, 2020 09:13
Alright then @Pau
Nov 13, 2020 09:11
Basically you are saying there is not any approach like that from the url composition or decomposition side ?
Nov 13, 2020 09:10
for instance i forgot to add % into the list once I was writing it, so this one can might also be added etc.
Nov 13, 2020 09:09
But similar to my observation might be tested or implemented before so I want to see this literature. This is the reason I came here.
Nov 13, 2020 09:08
yes but can be better approach which is already tested. Of course i can do it easily with split
Nov 13, 2020 09:07
But once I am reading many of urls, they are used as word seperation by people.
Nov 13, 2020 09:07
yes they are no delimeters I know.
Nov 13, 2020 09:06
what i observe cannot be a novel thing, it must be implemented before as I said at least in the area of focused web crawler.
Nov 13, 2020 09:04
I do not have fixed set of urls, I would like to make an approach which is suitable for entire urls and then test it.
Nov 13, 2020 09:03
@PaulMcG Can you rephrase what you say because I am not entirely sure about that. Sorry for that.
Nov 13, 2020 08:59
I am entirely sure there is huge literature which I am currently not aware. Because focused web crawler methods are already handling this kinda things.
Nov 13, 2020 08:57
The list can be extended of course, this is what i observe currently
Nov 13, 2020 08:57
Is there a name for the list of "?", "+", "-", "=", "_", ".", "/", "&" inside url composition or decomposition ?
Nov 13, 2020 08:54
@MisterMiyagi exactly it is not handy for url side, I definitely agree with you.
Nov 13, 2020 08:54
I know this is silly example but i mean i would like to look into url sub words and do not want to use manual approach like split them, because I assume that there are more handy way.
Nov 13, 2020 08:52
example: /26031_abone-veri-tabanları?aaaa-bbb.ccc.html
example output : [26031, abone, veri, tabanları, aaaa, bbb, ccc]
Nov 13, 2020 08:51
However, I assume that this reasonable approach for text mining so there should be something ?
Nov 13, 2020 08:51
it means I have to implement splitting side on my own for this process ?