You are viewing a single comment's thread from:

RE: Python Libraries: Expanding the Functions

in STEMGeeks2 years ago

Quite cool. Instead of give the author one last post and check for actifit, perhaps you can give 3 strikes and struck out if all 3 were actifit. Just an idea.
Unfortunately, I found not all the function in the beem documented works as expected but sometimes you have to try the function before you figure out you decide it is not working.
Technically, I think you can get rid of the detecttag function by using list comprehension or the any() function. Have a look at this:
https://www.geeksforgeeks.org/python-test-if-string-contains-element-from-list/

Sort:  

I think some of Holger's function no longer work, but as he's now AWOL we will never know. I plan to add AFIT to the detecttag function and 'any' will come in useful.

Python is quite new to me, I'm still learning a lot of new things.

To me, sometimes, you just need to imagine there is a simpler way to do it and search for it.
Especially when you think need to loop through a list or dataframe, then likely the search will find something useful.