Skip to content

littletable 2.2.5

Latest
Compare
Choose a tag to compare
@ptmcg ptmcg released this 09 Apr 01:59
· 4 commits to master since this release
  • Enhanced Table.by, Table.all, and Table.search methods to accept a field name that is not a valid identifier by using a callable interface:

      tbl = lt.csv_import(
          "https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv?raw=true"
          )
    
      # field "region" is a valid Python identifier
      regions = list(tbl.all.region.unique)
    
      # field "sub-region" is not a valid Python identifier, use callable interface
      sub_regions = list(tbl.all("sub-region").unique)
    
  • Added examples/pyscript/matplotlib.html example, showing how to use littletable within a Pyscript static HTML file.

  • Fixed minor code error in Table.by when determining if an index is unique or not. (Not a bug, just fixed some bug-prone code.)

  • Expanded peps.py example to Jupyter Notebook PEPs data demo.ipynb.

  • Renamed delete_index to drop_index for more symmetry with SQL. delete_index is retained for compatibility.