Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 149454

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

12 votes
1 answer
7k views

PySpark code that turns columns into rows

I am new to PySpark. My goal is to translate this table: |Key|Value1|Value2|Value3| ... +---+------+------+------+ | 1| v1| v2| v3| into a table like this: |Key|ColumnName|ColumnValue| + …
Andrew Au's user avatar
  • 525
12 votes

Sudoku Solver in Python

Congratulations to the completion of your substantial project. It is really smart and brave for you to ask for feedback. I am going to tell you what is not so perfect about your code, after all, that' …
Andrew Au's user avatar
  • 525
3 votes
0 answers
109 views

Modified Tarjan's algorithm for reporting the edges within the strongly connected component

As described in his paper, Tarjan's algorithm reports only the nodes of the strongly connected components. For my use, I would also like to also have the edge list of the components (so that I can run …
Andrew Au's user avatar
  • 525
2 votes
0 answers
760 views

Rosalind - Finding a Shared Motif

Here is my attempt to implement the Ukkonen algorithm for the Finding a Shared Motif problem on rosalind.info. The code works, it produces a correct answer. It does so in 11 seconds. I am hoping to o …
Andrew Au's user avatar
  • 525