question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vectorised lookup

See original GitHub issue

Hi there,

Love the project. Just wondering whether there is a way to use something like from_pdgid with an iterable of integers. Instantiating a new particle object for each is very expensive, and if I’m just trying to quickly look up a restricted selection of properties en masse it isn’t very practical for my use case.

Kind regards, Jacan.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jacanchaplaiscommented, Nov 16, 2021

Hi Eduardo,

Thank you for the response! I definitely am under no allusions that my scrappy single file module, which just wraps a pandas DataFrame of your CSV, is anywhere near as sophisticated and optimised as your project. I think I may have not fully understood the functionality, and assumed the use case you were catering for was a little different to mine.

I will explore the other class methods and if it appears I am missing the functionality I’m after, I’ll make a more detailed and informed contribution.

Noted, starred the project. ;P

Thanks for the help, Jacan.

0reactions
eduardo-rodriguescommented, Nov 16, 2021

Congrats, you’re the 100th star 👍 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

LOOKUP function - Microsoft Support
The vector form of LOOKUP looks in a one-row or one-column range (known as a vector) for a value and returns a value...
Read more >
Excel LOOKUP function with formula examples - Ablebits
In this context, a vector refers to a one-column or one-row range. Consequently, you use the vector form of LOOKUP to search one...
Read more >
LOOKUP Function - Formula, Uses, How to Lookup Data in ...
The vector form of the LOOKUP function will search one row or one column of data for a specified value and then get...
Read more >
Excel LOOKUP function | Exceljet
The Excel LOOKUP function performs an approximate match lookup in a one-column or one-row range, ... The lookup function has two forms, vector...
Read more >
VECTOR LOOKUP - Vensim
The function VECTOR LOOKUP encompasses the behavior of all the regular lookup function with the results of using the function determined by the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found