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.406872-0.6510860.1303710.1668440.374770-0.743012-0.390131-2.224804-0.4468341.0089251.514548-1.506286-0.1365281.146386-1.5475240.1261580.6466431.6703121.776452-1.759697-0.4339220.6741890.626675-2.0945620.5589480.180587-2.0356040.3919750.203379-0.545260-0.310289-1.150268-0.2168220.5104320.241017-0.192312-0.511329-1.5375100.3730100.8070230.642305-1.1434321.3454760.3973271.170377-0.055183-0.250407-0.814131-0.679505-0.1525860.5578020.195892
-0.3769670.594893-0.6988541.3344590.5066710.350810-0.6745550.441048-0.9901210.6605021.1442380.6599310.022319-0.424816-1.1626990.062375-2.095152-1.2603840.2991831.0039410.9934251.2859431.6975070.621870-1.378720-0.038783-0.6378330.755688-0.419892-0.4684161.9082370.6223161.650505-1.6744200.212964-0.471361-0.852307-0.846904-0.562754-0.907110-0.840550-0.452560-1.9142151.439048-0.2586230.069227-0.0603970.916242-0.238092-0.7532261.2897580.381184
0.806301-0.291233-0.859985-1.7483031.766861-0.8413851.501183-0.394177-0.183007-0.8724530.673907-1.624727-0.883126-1.3656570.659186-1.652408-1.354310-1.923270-1.5616130.574599-0.049896-0.417044-0.7889551.0693320.185856-2.142303-1.8254880.0599561.1385790.5148430.8267660.5302920.306075-0.2340990.677997-0.390787-0.173065-1.036476-0.8103711.553234-0.1196891.251816-1.0932220.319649-2.0306010.4678110.5508761.629678-1.2911580.7431970.2668800.571582
0.7807820.459393-0.105987-0.2447301.7307090.1807050.169390-0.2081810.575827-1.0162750.659732-0.1727042.2151333.4446082.251094-0.0172150.4752670.5923032.0153980.434063-2.231681-0.6317020.365962-0.2567650.2158820.0497121.3030470.0401080.5763970.7488310.582154-0.443746-0.988704-0.8573270.7736921.1192801.058773-0.820132-1.4697870.7960760.637430-0.7279420.0479591.284113-1.412209-0.679706-0.7713611.4377310.285319-0.5228611.719970-0.473372
0.5742130.9152920.3565200.8058351.062174-0.231166-1.594278-0.3766400.3522680.4810571.3358290.470745-0.4261140.065144-1.6548460.034606-0.9824270.544912-0.4298160.298172-0.3254011.789155-0.7640111.198045-0.3854980.2673560.1358610.1225591.8016390.554356-1.1419750.309660-0.099576-0.3860821.616156-0.209196-1.041534-0.418906-1.2472681.5197901.2634560.427724-0.3176490.0056880.554213-0.7311390.028959-0.3450380.224667-0.4300100.806673-0.134494
-0.1887740.7689730.4758890.412210-1.4589231.083301-0.052757-1.222863-0.336876-1.1216220.975898-0.995060-0.743677-1.6122260.1968620.7583351.6817370.476776-0.219157-0.471229-1.1579980.1581970.235821-1.215731-0.739291-0.4649090.101786-0.6868850.8140661.668521-0.945120-0.8947000.0311220.8061570.676713-1.120040-0.172691-1.3975901.0202660.1860591.443822-0.220938-0.562193-0.7078250.724607-1.0843900.1556160.411939-0.6693140.365787-0.937075-0.094423
0.139837-2.2510290.0468950.036063-2.089474-0.0889060.001047-0.885780-0.153084-0.488439-1.8574630.614091-0.247877-0.6005091.9025700.508419-0.078022-0.1090030.411911-0.210334-1.016579-1.090798-1.566879-0.4728071.0049540.3761970.540718-0.0679191.3726450.1751270.2098020.832361-1.095762-0.970334-0.712250-0.520954-0.5337361.0197170.0390000.6656310.498282-0.334304-0.288208-1.0830100.991242-0.699296-0.6541480.6519190.6786880.156798-0.078311-1.966012
0.4720781.621684-1.060410-0.589657-0.279422-0.236893-0.3871510.9636670.8824911.477498-1.2466180.8417980.197559-1.292136-1.3028560.9229950.335384-0.922632-0.766291-0.3019741.880796-0.1475970.0288340.4365780.7076370.6563540.591784-0.383468-0.4887370.400636-0.2577451.8396441.181598-0.586692-0.977414-0.832852-0.829238-2.2426920.264366-1.209824-0.864732-0.5322571.181791-0.6553020.9627760.0253650.217033-0.0798440.670494-1.498654-1.3552520.197905
-1.178222-0.3807670.003582-0.1824391.294436-0.442281-0.806617-2.1825710.4339690.332360-0.8227761.3469071.049165-0.9071350.6795480.6399050.779428-0.2839380.8723950.0687420.3685711.820720-0.1568400.601644-1.0413331.2741570.7067850.4650390.5868600.7031222.351820-1.6480230.2764751.7620690.6034661.740197-1.6137802.026970-0.832081-0.6882330.2545570.687234-1.0292980.319410-1.132433-0.420850-0.083555-0.207189-0.072451-1.966430-0.442077-0.994518
-0.5846080.818441-0.742834-0.8414471.316922-0.755693-1.072495-2.3832901.6604160.2645040.3684620.657433-0.4823650.294787-0.125793-0.0045430.428203-0.465699-0.573288-1.074173-1.766798-0.098190-0.625186-1.0113160.508918-1.0150920.505454-0.7625340.642847-0.210369-0.930425-1.4787231.1821780.885990-0.309714-0.3047440.2445930.5883650.5363151.532374-0.0323200.7773110.1890250.5220900.248075-0.0825810.314166-0.5973741.598173-0.326836-1.341275-0.228002
(90 more rows not shown)