1

I can use unicodedata.name() and unicodedata.lookup() map between characters and their names. But it must be one at a time.

Is there an easy way to get the mapping of all the characters? Thanks.

user1424739
  • 11,937
  • 17
  • 63
  • 152
  • 2
    Possible duplicate of [unicode table information about a character in python](https://stackoverflow.com/questions/48058402/unicode-table-information-about-a-character-in-python) – Matias Cicero May 10 '19 at 15:09

1 Answers1

1

As far as I know, there is no builtin mapping of all the characters. But you can generate you own easily:

import pandas as pd
mapping = pd.DataFrame({'nums': list(range(0, 0x110000)),
                        'chars': list(map(chr, range(0, 0x110000)))})
Brendan A.
  • 1,268
  • 11
  • 16