basic-image-eda icon indicating copy to clipboard operation
basic-image-eda copied to clipboard

Why don't you try using the pathlib library?

Open wakame1367 opened this issue 4 years ago • 0 comments

I think we can swap out img_path.split('.')[-1].lower() for [PurePath.suffix].(https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.suffix)

https://github.com/Soongja/basic-image-eda/blob/77cc1b3d2849776647acda2eea8241dddbaf4bba/basic_image_eda/eda.py#L50

reference_link

wakame1367 avatar Sep 19 '20 10:09 wakame1367