Posts by stacker • 97 points
8 posts
-
3
votes2
answers95
viewsQ: Generate a date after a specific date
I have a column of a table with dates, I need to create another column with random dates and after this one. I used seq.Date function for this but I get the following error.…
-
0
votes1
answer49
viewsQ: Check the relation of two objects in a list
I need to extract from a pure text the full value of an agreement. I have hundreds of documents with some figures, and I realized that generally the highest value is also the total value of the…
-
0
votes2
answers1526
viewsQ: Ignore any white space in the middle of a string
I am trying to create a regex that is able to find a string in a text even if there is some white space in the middle of the words. For example, I look in the text for the following excerpts…
-
0
votes1
answer535
viewsQ: can only concatenate list (not "str") to list
Hello, I’m new in python and programming I’m probably having a problem that should be very conceptual.I made this code to read a numerical sequence in a txt and rename it with the sequence found.…
-
0
votes1
answer314
viewsQ: Renaming file: 'str' Object has no attribute 'group'
I’m having a problem that may be quite trivial but I’m not getting it. I found in a text by regular expression a numerical sequence of type XXXX/YYYY, after that I need to rename the file . txt with…
-
2
votes3
answers1051
viewsQ: Identify a numerical sequence in a text file
I’m new to Python, and I’m having a problem that I can’t find a solution to. I have a folder with about 10k of . txt (written in many different ways). I need to extract the FIRST sequence of 17…
-
1
votes2
answers1516
viewsQ: How to create column from data contained in other columns
Hello, I’m new in R and I’m getting beaten to solve this problem. I have a spreadsheet that I called base and has 2573 observations of 103 variables. I created an auxiliary column named after…
-
2
votes1
answer148
viewsQ: Compare rows from a column
I have a spreadsheet with about 15k lines, my problem is that in one of the most important columns for my analysis, the data are arranged in a very confusing way. The column is about the complaint…