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
-1.4305970.3923430.0672180.3256700.5973561.1225540.327590-0.484416-0.321771-1.636836-2.0474361.290101-0.439084-1.248044-1.199432-0.439247-0.5074001.149090-0.296607-0.1449610.282363-0.212212-1.072092-0.873172-0.837994-0.0020871.035952-0.683487-0.4265901.9510620.0676280.3689461.3121581.3018071.394923-0.1583651.8481220.360428-1.882461-1.4749250.936527-1.007793-1.294739-2.279520-0.1096180.6517840.745459-1.307595-0.4995251.1963151.010476-1.112469
1.294946-0.639050-1.1652600.1052200.2974481.8137620.141932-0.641417-0.4613891.249334-0.205728-0.6500730.425849-0.8163000.773066-0.6857500.9283920.341618-0.3315050.344691-1.6588010.147945-0.537600-0.1441732.287726-0.2469030.4803680.6208830.322625-0.031927-0.363065-1.278397-0.694252-0.6169831.227338-0.819652-0.135281-0.393293-0.738313-0.4996581.7372720.022739-0.9608101.0672340.605083-0.8183590.2388390.026046-1.3520000.360016-0.8125830.703939
0.796673-0.606934-1.104396-1.034470-0.9043071.211915-0.522249-0.6527970.2009761.3618611.311958-0.940878-0.648209-0.0259821.815958-0.512635-0.686353-0.469385-0.2811820.178076-0.885779-0.550090-0.0815070.7310630.721069-0.9884010.0471680.0118081.392150-1.5773072.401437-2.111728-0.9825050.348052-0.7977920.2969990.831015-0.733721-0.8700510.5108370.0690070.4521690.089746-1.2737153.0015630.2649980.529505-0.0628200.5393250.9277710.8775350.871891
1.2089340.971451-1.643702-0.441877-1.161535-1.147561-0.6215250.3639440.3281990.140947-0.0200190.8215780.225147-1.334162-0.390654-0.7575070.3681180.840582-0.733893-0.1897470.553133-0.773015-2.424492-0.038794-0.818884-1.390789-0.784000-1.9272380.596476-0.213647-2.1223191.179034-0.3989860.6293660.8735620.372477-1.618782-0.314846-0.741570-0.194428-1.461057-1.5694021.0654600.974521-0.183132-0.2729600.3109401.6483710.3157201.575920-0.2556950.445727
-0.0672531.4840782.456694-0.129096-0.280796-0.576130-1.253837-0.6261720.370587-0.9563131.2135480.249529-2.529624-1.038209-1.485700-0.308410-0.5974910.863572-0.6136390.509042-1.3151460.125660-1.061012-0.0898361.0010051.388238-0.2602370.199223-1.3458481.0807332.5014920.2798210.458335-1.627485-0.244819-1.3145790.183342-2.802846-0.033311-0.1841300.5023361.681837-0.950563-0.0037291.348843-1.264323-0.546526-1.7910421.3014160.2989730.0708270.620706
-0.927190-0.109226-0.1569660.001658-1.1090850.9228470.193819-1.615510-0.5335882.003077-2.889212-0.2986402.9706520.461480-0.1280750.1298470.5451521.5990680.259680-1.3221420.8651451.565151-0.7559140.351929-1.0039920.5017740.043611-1.590548-1.2709270.728940-0.6443150.666319-1.971531-0.279614-1.107183-0.1198251.0167382.5813600.6478550.288468-0.0491361.0545740.6459270.8776590.629888-0.431473-1.1740880.539141-1.791259-1.2485280.596921-0.266195
-1.847176-0.097301-0.631405-0.364813-1.618908-0.5517490.7712550.327179-1.346863-0.4328260.847195-0.509804-0.687067-0.583657-0.081665-2.003909-0.1592121.1796161.8275790.445940-0.107341-1.5163552.0333360.4280890.551664-0.740579-1.578702-0.062079-0.439739-1.020373-0.194102-0.719048-0.0922380.451646-1.3608050.3743560.547477-1.257194-0.0877412.8821140.2095801.1435660.5123312.591699-0.082009-0.154735-0.803407-0.492500-0.6157551.074075-0.219642-0.514249
1.2753101.0180460.810138-0.576294-1.2549231.746171-1.434751-0.2686350.016023-0.265812-0.5719480.169214-0.138170-0.717770-0.8612380.6062741.701016-0.552167-0.5764710.2899801.4750290.018244-2.5486160.7696850.580773-0.9937340.9145251.068090-0.378184-0.702243-0.489735-0.692222-0.616378-0.148199-0.5569470.3327730.2786570.0453550.505682-0.3334520.4575280.943502-0.232483-1.6564651.453702-0.035539-0.0005982.4079081.097857-0.448360-1.534311-0.971635
-2.258483-0.848217-0.479129-0.560789-0.969844-1.037464-0.671043-0.5279830.5121080.542802-1.4066251.647751-0.7020850.997864-0.4135720.9509310.8758431.054358-1.2345490.225352-1.6925610.704347-0.040016-0.919721-0.214460-1.3640250.251445-0.399252-1.907047-0.3647440.527156-0.481574-0.5114580.158139-0.9593021.783605-0.027065-0.0802210.7335541.0430641.065284-0.122334-0.337299-1.114190-1.454444-1.3624692.095334-0.313048-2.1172860.471317-0.906141-0.854336
-0.9898010.0347220.229976-0.908876-0.796217-0.883608-0.2371150.4179530.8474980.5881080.6632970.901534-0.1607590.015189-0.8342850.063462-0.496617-0.5329700.139321-0.1790431.1546082.6576610.3324810.647616-0.3806720.558656-0.1820271.940201-0.6429380.1270421.6753650.3496670.517179-1.439778-0.9568730.0312561.481180-1.255415-0.0777311.0001660.595150-0.0651641.936063-1.122039-0.829662-1.058838-1.177373-0.1583170.6743630.778311-0.133303-1.488975
(90 more rows not shown)