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.638314-0.305619-1.1445300.785687-0.7631020.5293512.009879-0.6070171.3495700.614702-0.6129910.246855-1.0759670.363100-0.3298150.8351270.232108-0.2346881.0312820.889539-0.6591751.107103-0.8313991.2711710.6548110.3332601.636262-0.679043-0.4396271.1228900.8603420.964968-1.278953-1.477290-1.2922600.980108-0.857100-0.0038431.314136-1.7777420.3630770.017712-0.454473-0.224891-1.208778-0.375739-0.6842760.733169-0.867718-1.366117-1.6019141.685772
0.3197770.6268830.1066950.627762-1.151120-0.947136-0.650990-0.6130871.7049730.008727-0.042786-0.620470-1.0365990.036262-0.4299790.2128040.8906661.030149-1.320508-0.9223471.248538-0.1419400.8304020.853741-1.769786-0.256273-1.8057550.3698510.2621971.1354470.393165-0.1576681.2368610.425866-1.323643-0.251283-1.2940660.5728830.273342-0.4572550.008380-0.034153-3.2072270.236825-1.7672272.513680-0.191370-0.564993-0.8898380.9927640.0203030.548382
0.365676-0.6221860.514444-1.0463961.0350381.635578-1.0797781.0371380.606919-0.144058-0.164141-0.5445501.8685090.4661360.693613-0.2717081.3379190.168481-0.1691201.4920160.1802410.747399-0.971670-0.470223-1.447943-1.259170-1.2789260.9708930.732822-0.7981980.240639-0.885694-0.370476-0.2231710.7451060.3533490.652160-0.666371-2.038401-0.888253-0.679657-1.2134460.693413-0.0669640.5945531.7748880.1884440.4253991.032401-0.3723260.7246910.031332
-0.005190-0.717062-1.701873-1.595231-2.8174100.723476-0.088422-1.014204-0.0233011.4652062.2164370.878280-1.8332381.516772-0.175374-0.432028-0.2597331.4178531.3135330.5442600.2335930.0644231.154280-0.527181-0.7343131.120187-0.595708-0.5336770.466369-0.526288-0.661165-0.3453200.922723-1.1723291.145040-0.308773-0.5396910.2304350.666276-0.082244-1.1363290.062190-1.181407-0.160347-0.130193-0.216790-0.7206710.520957-0.4917311.122832-1.114038-0.427748
0.7007300.484420-0.1313460.8891880.517643-1.302990-0.5005422.6249850.667475-0.572713-1.6906500.997615-0.502888-0.156467-0.253914-0.4256030.7877870.7693070.217485-2.077244-1.260080-1.8996800.868155-0.863663-0.2464140.555027-0.3692900.867203-1.572063-0.953818-0.889931-0.662856-0.0852410.8973730.3468291.0633721.404531-0.4695252.774497-1.0330010.8052590.0306762.4418011.305418-0.5197621.4066280.8514021.852669-0.491196-0.2541480.577732-0.955007
-1.445955-0.851841-1.2772121.724516-0.727193-0.9345780.2463700.8502420.4241150.0555640.6540690.8626860.790548-0.475100-1.1361540.4590061.045623-0.7012350.630052-1.8474791.7323280.354334-0.111727-0.2302910.2571260.327227-0.379100-1.9052800.0308830.293888-0.2355390.549032-0.372975-0.2367590.421146-1.213906-0.4814160.576374-2.1386231.219750-1.385035-0.541390-2.4588880.5571750.6507710.2918030.027954-1.870254-0.195721-0.211645-1.2713770.327830
0.5276661.6338470.6032830.452688-0.688025-0.1913530.883033-0.0626110.428127-1.3496190.6399310.9852740.9966041.457363-0.690300-0.5839122.0451751.268022-0.612921-1.8207601.363295-0.6008681.988174-1.9873221.1110450.3266300.8656361.2528952.300844-0.158995-0.263979-0.1474540.157113-0.2715142.690201-1.1217380.253978-0.930316-1.173359-0.581072-1.265518-0.1658550.3635770.720614-1.0899610.510586-0.2504320.806340-0.744774-1.4181121.163764-0.601277
0.197333-1.2882330.365281-0.400157-0.248339-0.2278230.620024-1.798180-0.207953-1.7415800.816347-1.192759-0.304484-0.2049670.232907-1.0486810.371131-0.9950670.838563-1.042872-0.8842961.1981230.374156-1.778433-1.2262551.2820710.988208-0.9683191.0359820.5454540.540622-0.589879-0.881422-0.399513-0.2130800.050771-1.0480310.637627-2.363767-0.801798-0.5187101.6399751.5136050.799894-1.073026-1.1381380.6469450.639147-1.165675-1.164390-1.399234-0.878713
0.1686121.0666630.899370-0.6521800.340960-0.4951741.867754-0.7196940.706535-1.112408-0.8093480.470241-1.554032-0.387078-2.1378160.632254-0.160721-0.887049-0.5181731.949711-1.407436-1.120682-0.311198-1.203204-0.506798-0.523287-0.4506690.100677-1.144510-0.560224-0.507477-0.954508-0.8044692.2013530.569571-0.636139-0.526195-1.009235-0.452813-0.3749570.678126-0.544221-2.195955-1.0935500.7624400.422139-0.694941-0.231043-0.2343280.3555250.7657310.254876
0.372507-0.0765610.2929931.2919930.863422-0.333478-0.834317-0.2825981.620433-0.158374-0.3039550.3864370.5484110.3877390.6642160.857210-0.306430-1.3789111.559374-0.0167031.563131-0.5922002.0112250.392843-1.297250-2.0235650.5452091.2735720.6255840.469677-0.392967-0.3874231.700761-2.065149-0.1225641.382727-1.7635920.1952820.900362-1.041566-1.1508880.6014120.334205-0.886858-0.667655-0.6368431.4938490.0263080.270523-1.2470550.9251970.141790
(90 more rows not shown)