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.
TS Translation
Lua translation !
Tests are broken, they fail even when the result is correct due to column types issues.
How to report it?
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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I experienced the same issue of everyone
After working on dtype of index and things like this, I checked if a hunch was correct,because in the random tests, one test was right and the following wrong and viceversa
I created a global variable and each time my function was called I increased the variable and I find out that my function was called only when the test was wrong and it wasn't called when the test was right, in the end i tried to modify my solution to get wrong results on purpose and I still got 50% of successful test.
So i think the problem is how they check our solutions!!!
There seems to be an issue here. My code fails the example test, but passes the 40 random tests. Tried in Python 3.11 and 3.10.
This comment is hidden because it contains spoiler information about the solution
Admittedly what I'm about to say is a border case and not reporting a bug: I can't help but see a way to have passing functions break, after the following procedure:
subclass the list class, break it somehow; put an instance of that object in your dataframe and suddenly the function no longer works.
For example:
OK, that was just me having fun with an edge case...
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/151.
Please join the discussion to help us identify duplicate kata and retire them.
Python, possibly other languages: tests miss sanity checks on values returned by user solution and crash badly when an unexpected value (not a pattern, or not a valid pattern) is returned.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Time: 2553ms Passed: 57 Failed: 44 Exit Code: 1
fails and outputs:
It fails even with a single column. Any help please?
Here is the dtypes output
Loading more items...