|
|
|
|
|
by zoombini29
3301 days ago
|
|
> Pandas, for some reason, cannot stick to python-isms. I can't do simple things like...
> if not df: # Check if DF is empty
> return ... This part is a gotcha, but it's also a reflection that allowing if checks for things other than empty leads to subtle bugs. (there are long mailing list posts about it and about the bugs that were uncovered). See here for some explanation about why numpy does it: https://github.com/numpy/numpy/issues/8622 |
|