-
-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From yaml null index #225
From yaml null index #225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on tests! see inline comment for minor suggestion
pandera/io.py
Outdated
@@ -156,7 +156,9 @@ def _deserialize_schema(serialized_schema): | |||
for index_component in serialized_schema["index"] | |||
] | |||
|
|||
if len(index) == 1: | |||
if isinstance(index, type(None)): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more concisely, this can be if index is None:
Codecov Report
@@ Coverage Diff @@
## master #225 +/- ##
=======================================
Coverage 96.52% 96.52%
=======================================
Files 14 14
Lines 1236 1238 +2
=======================================
+ Hits 1193 1195 +2
Misses 43 43
Continue to review full report at Codecov.
|
congrats on your first contribution to this project @baskervilski! looks like you're on a roll 🙂 #226 |
#224