Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
added to Python
I think my code is returning the right output but I'm failing some of the random test cases on "column data types" - despite all the column data types matching. What I wrote passes the sample test, but also returns the columns in alphabetical order (as it is in the problem description). However, many of the random test cases appear to be in some other order?
Example fail message:
Column types are different:
C float64
F float64
H float64
dtype: object
Should be
H float64
C float64
F float64
dtype: object
I have added Python (dictionary) to description, please approve: https://www.codewars.com/kumite/666cc1ec00d4037fdbf09722?sel=666cc1ec00d4037fdbf09722
This comment is hidden because it contains spoiler information about the solution
Approved
The initial solution given raises a NameError (
df
in the column check vsdataframe
in the parameter list).Fork rectifying this:
https://www.codewars.com/kumite/666a794ebccbd79f03486250
Approved by someone
i feelt like i am stupid once i saw this code
fun is a function that returns True or False, depending on the input, we dont know how it operates inside,
we actually dont care, all what we care for our code is to check if all of the output from that function,given
the sequence that is given as well, is True or not, if all the output was True then our function returns True
otherwise our function returns False.
approved
Outdated version: Should use latest Python version (3.11) instead of Python 3.8
The task says "Input DataFrame will never be empty. "
But one of the tests is with empty input:
Why is that?
This comment is hidden because it contains spoiler information about the solution
my goal is to get my python code to look like actual python code
Having an excellent satisfaction rating, I think this kata should be approved.
Loading more items...