Fixed Columns

Fixed Columns#

FixedColumn is an extension that let you fix some columns as you scroll horizontally.

import string

import numpy as np
import pandas as pd

import itables

itables.init_notebook_mode()

wide_df = pd.DataFrame(
    {
        letter: np.random.normal(size=100)
        for letter in string.ascii_lowercase + string.ascii_uppercase
    }
)

itables.show(
    wide_df,
    fixedColumns={"start": 1, "end": 2},
    scrollX=True,
)
ⓘa b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0.1455981.1361560.963126-0.1882460.8207641.098261-0.2092301.329706-0.344597-0.0722970.6581811.512317-0.4295600.498671-1.257588-0.497095-0.637027-0.152316-1.4733621.290275-0.2494770.433283-1.168906-0.4170001.851972-0.297599-0.517371-0.492709-0.952183-2.406136-0.477206-0.496700-0.4574131.0308730.410941-1.7085930.1213770.0450220.137992-0.8926420.0607171.674178-1.188035-0.375680-0.3556172.2839470.2431460.3522471.132232-1.218790-1.9132631.261713
0.1455181.101742-0.089322-0.1915620.2463830.088207-1.2826790.970373-1.5473521.000787-0.2580650.086290-1.2067790.1732621.121453-0.537656-1.200686-0.0382150.5920410.4728240.1727861.2754391.894019-0.472758-1.2059461.495184-0.661445-1.112522-0.691243-1.560733-0.2174400.635033-1.0599010.804799-0.237917-0.0740310.591563-0.372239-0.341537-1.448541-2.1887640.8275271.9623991.578541-1.387514-0.391938-0.1820930.108362-1.281065-0.3458870.7572890.787400
0.799464-0.614849-0.786648-1.356431-0.0519121.127769-1.897282-0.505857-0.836964-1.0046770.7742940.015387-0.1116130.381143-0.252041-0.1647420.643627-0.1360621.772309-2.2714110.182019-1.354630-1.0283922.3395740.501320-0.089895-0.764333-1.2859181.7259520.4238150.572992-0.007880-0.0573750.455115-0.111268-0.9169850.642899-0.5516960.530140-0.768952-0.039482-0.6577610.4479051.404481-2.6431101.5723821.741016-1.129421-0.3199241.7909090.6851770.304891
0.059848-0.7526600.1295000.5587910.6836540.4498630.2853740.169670-1.272753-0.281486-0.189704-0.303654-0.0518450.022289-0.3202460.6997630.010905-0.254890-0.6384681.732328-0.643857-0.6162721.640116-0.6109631.0887362.609055-1.375703-1.134852-1.1421270.595241-1.8334280.3999730.880491-1.5828991.3532090.4305790.531605-1.3066560.8936350.8148160.823009-0.0271900.548314-0.8882990.859199-1.390144-1.7451690.082731-1.1007190.3865382.127407-0.896367
-0.081154-1.0306120.622000-1.019146-1.7622012.016951-0.589351-1.1941712.0493000.2799480.3636961.2220470.385861-0.0452110.6564941.2924531.081652-0.220901-0.783003-0.267309-0.2377981.0900060.867233-1.8587600.7891221.2827390.394135-0.1439281.3965300.5646901.0417720.8515301.630115-1.1898630.420151-1.024840-1.0201090.8182270.0058940.3344640.516826-0.1669980.652134-1.374271-0.935593-0.4984201.257229-0.6639720.5680590.7903000.6953470.565778
1.634516-0.3727731.433100-0.348221-1.595404-0.6209161.306769-0.7015931.289446-0.893808-0.0994841.689878-0.823726-0.9003820.253179-0.754740-0.122497-1.0795640.780393-0.9307990.746316-1.109259-0.118130-1.822303-2.2321170.9679871.227800-2.184859-1.2710490.6364000.541786-0.275986-0.6856721.058191-0.7335840.8524911.2928650.017323-1.0423930.918639-0.1124531.2093870.2751170.3262312.893387-0.8896390.0908091.135782-0.2005380.7847020.0730361.278183
0.240027-0.2218031.0319441.7578520.695049-0.150502-0.671003-0.4177170.1924300.727669-1.0419130.422344-0.332678-0.8848390.1355460.765967-0.4889620.430538-0.285029-0.6354580.4141140.7952081.3040570.080146-0.070317-0.274046-0.6377362.157876-0.626231-0.9549051.001000-1.3351580.2712170.6001480.0081880.600981-0.651991-1.688930-0.053625-0.9311481.362540-1.7172451.975622-1.573113-0.4383730.8776860.504670-1.1945360.136436-0.1537110.6400630.817620
-0.904089-0.0159111.6351511.0058400.2617300.7879990.5306081.086271-1.677420-0.453400-0.2622450.1491000.348027-0.2083051.9059080.7602920.303613-0.5757390.1094830.4902490.2806861.189632-0.5314600.9433300.726049-0.1740591.035857-1.3753170.1234850.4215050.628932-1.0057532.3477500.8809560.5225080.3426551.2179260.3171030.9125470.2774910.040604-0.697233-0.0212630.8590192.4264010.280409-2.0432491.5720630.0920851.4834540.1152920.771663
2.483522-0.278208-1.011483-0.946771-0.862931-0.9101471.032871-0.9150671.602642-0.3031281.0626711.3989300.045357-1.052509-0.5483882.376736-0.455899-0.5983710.0948950.8418233.032197-0.315584-0.584929-0.625901-0.451689-0.6538850.561670-0.6892010.505937-0.420747-0.1135420.2723400.4438851.5568151.288816-0.3693830.821180-1.565755-0.790384-0.550198-0.307375-1.6885870.263234-0.2506891.076556-0.0120280.412302-0.8240770.228509-0.457206-0.643445-1.625494
2.0324651.6434470.8884740.729566-1.095723-0.825680-1.3977330.6726690.7259220.633268-1.155797-0.1668020.4587730.175364-2.4706171.430371-0.2831221.7393730.9306680.866410-0.3559552.877162-0.0546520.481110-0.6427020.422749-0.0383410.548442-0.464195-1.549368-1.044988-0.2153280.384216-0.145065-0.698712-0.0612241.073460-1.2607161.599286-0.670804-0.1204881.4023811.3252390.486790-0.9100460.792092-2.1166180.813106-1.9090700.217934-1.609889-1.341281
(90 more rows not shown)