Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fast lookup for array
#3
Hash tables are good for fast lockups, but they are bigger than other primitive data structures.
In Python you can use the dict, which is an implementation of hash tables.
If you use Python 3.6+, the order is also preserved, which is not common.

I don't know pandas very well and it's implementation. If pandas uses hash-lookup, then it's fast.
If not, then it's slow.

How big is the table you want to lookup?
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
fast lookup for array - by markB - May-08-2019, 07:55 AM
RE: fast lookup for array - by scidam - May-11-2019, 10:40 AM
RE: fast lookup for array - by DeaD_EyE - May-11-2019, 11:30 AM
RE: fast lookup for array - by scidam - May-13-2019, 12:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  2-dataframe, datetime lookup problem Mark17 0 1,819 Jan-27-2022, 01:02 AM
Last Post: Mark17
  Python VLookup? Lookup Table? Nu2Python 3 3,968 Oct-25-2021, 08:47 PM
Last Post: Nu2Python
  Can I replace IF statements with a key lookup ? jehoshua 3 3,520 Mar-05-2021, 10:24 PM
Last Post: jehoshua
  python 3 dns lookup private domain didact 1 4,320 Sep-19-2020, 06:01 PM
Last Post: bowlofred
  Partial key lookup in dictionary GaryNR 1 4,708 Jul-16-2020, 06:55 PM
Last Post: Gribouillis
  Encoding and mac-vendor-lookup library tuanjggaa 1 3,620 Mar-27-2020, 03:12 PM
Last Post: deanhystad
  Excel Lookup riteshprakash 0 2,401 Sep-11-2019, 12:43 PM
Last Post: riteshprakash
  lookup tables Skaperen 4 4,413 Aug-13-2018, 06:43 AM
Last Post: Gribouillis
  Lookup tables parrytoss 0 3,250 Feb-07-2018, 08:45 AM
Last Post: parrytoss
  Reading specific rows (lookup) rumbles 3 4,263 Jan-03-2018, 04:07 PM
Last Post: hshivaraj

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020