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.2231570.4866640.174386-0.8800660.1845390.798159-1.2562981.462237-0.502714-0.415171-0.1581492.004831-1.695179-0.4592741.7421380.865767-2.000679-0.4957370.106976-0.028457-1.055919-0.981513-1.1390620.558722-0.687198-0.442715-0.139497-1.0374643.397111-0.4180500.3309321.855803-0.178930-0.3666330.596151-0.730631-0.226012-0.2633371.0480090.5558510.0319761.5795372.0549771.490795-0.1046171.8832570.482770-1.403969-0.787478-0.5004940.776844-0.981014
-0.072169-0.0448470.104734-0.6800721.343190-1.0335130.071887-0.931906-1.2387590.3305430.577867-0.239396-0.433274-0.7299401.9328640.404683-0.1303930.0792601.528435-0.604000-0.263854-0.008805-0.4938610.9920061.683565-0.1045720.275205-0.181366-0.5361230.418959-1.797228-1.3160780.030331-0.932070-1.5068810.1269190.952808-0.413909-0.060335-0.610833-1.5771880.4012200.441344-0.348944-0.3519930.7646480.0057562.1753650.221719-1.0403190.297104-0.765110
1.0060191.460852-0.4366060.977901-0.735511-0.5884041.1726420.075873-1.4020741.1323280.0410431.0616550.7034250.0545850.052461-0.3188601.093356-0.203728-0.7493471.237148-1.491214-0.9274000.731063-0.4220751.3265791.0193931.4829011.437877-2.273181-1.032415-1.0775991.0427580.9201760.263656-0.4769431.504764-0.400688-0.3184540.322798-0.7951010.259261-1.2910380.203202-0.448909-1.3383170.7382141.1706280.5594450.350709-0.6609210.425472-0.860930
-1.3594880.2202190.791797-0.8827710.3346380.251354-0.9403750.860379-1.482496-0.6160811.4586660.1474750.229117-0.1253350.5267120.6012990.4538661.396256-0.5389321.006403-1.590384-0.4985401.309514-0.9538940.711886-0.1913631.283041-0.002198-0.4783671.746369-0.0207951.769520-0.334001-0.911456-0.647755-0.0249620.4146910.6371561.8785891.7231140.739339-0.571920-1.103856-0.218548-0.3311140.7436722.724593-0.362887-0.321746-0.7455000.4555940.631130
-1.122616-0.5509650.836978-0.1546692.591439-0.061307-0.374198-2.157047-0.1691310.365350-0.7966710.6795810.2653670.571098-1.774782-0.859527-0.0138430.6409731.0191130.215843-0.407629-0.2308190.5639250.734560-0.6125871.1004111.3343760.258630-1.1187751.2437660.827962-0.324659-1.158396-0.361778-1.103310-0.2663651.3991370.167919-0.583286-0.644934-0.3437360.2961151.225451-0.999799-0.6187430.704082-0.9602770.064829-0.3139110.355932-0.5794730.414351
-1.681651-1.1618940.2844940.470360-0.1115101.486731-1.3809331.631226-0.601167-1.571853-1.858815-0.2837860.9412641.833861-1.2899560.559713-0.894849-1.068480-0.2659531.1301811.895415-0.054941-0.6688980.0101730.4665741.8583281.5513500.798953-0.5982210.4408550.391926-0.5420461.352481-0.021623-0.013866-2.471482-0.159957-0.9480140.012537-0.3914200.4671310.372785-2.316119-1.716626-1.132544-2.5761180.7427172.237671-1.094746-0.8027720.0974310.424157
-0.4694192.125041-1.1299920.7358670.555302-1.2983310.5718330.4761460.142575-0.6491650.7378242.430373-0.3412700.6495870.8684171.941995-0.1511600.435400-1.0068680.378851-0.395286-0.886356-2.180836-1.1108250.642721-0.7075191.3311190.354484-0.1005550.0456090.8452900.2941651.6374881.5424740.7419960.9008560.435857-1.0545830.1447931.490793-0.909415-0.447972-0.0485361.6625491.5239080.8333870.4144151.9553930.903516-0.465572-0.924710-0.539096
-1.2283750.065752-0.7507061.004610-0.264519-0.3230770.4214060.338509-2.380576-0.410079-0.079791-1.049611-1.2180500.7440510.004905-0.097146-0.9110010.098047-0.565023-0.3651940.480177-0.502408-1.242689-0.5417962.0032000.0350070.4454000.3782920.0731410.7420380.3663230.1557330.0869130.792536-1.3333760.911245-0.6933000.248289-1.824258-0.8854820.8936210.945664-0.032198-0.032263-0.743137-0.184303-1.0079350.103881-0.403241-0.012133-0.143722-0.335869
0.512441-0.177989-0.519876-1.221704-1.563109-1.074122-0.400619-0.7646910.0429130.1304621.8053330.376147-0.6388470.654458-0.2982091.4965742.048698-1.1744850.1006651.2902140.160878-0.7181821.0035750.8124230.0795410.2928531.4993800.8230410.370060-1.5361010.4249250.5680271.0410181.0012161.135387-0.095126-2.183704-2.6029840.9768751.110568-0.0207661.114104-0.7495123.0692161.4391330.778037-0.1009490.3933691.521300-1.5298521.0708070.935211
0.8017630.050775-1.4394672.1754820.193220-0.0132742.389979-1.564960-0.427076-1.377645-1.013702-0.935023-0.599747-0.714815-1.254832-0.6473271.0197870.6081600.206729-0.7120220.566200-0.0923980.690008-1.718914-1.0180610.019706-0.2763740.1627460.788762-2.697743-3.0002890.0398830.2123060.000681-0.389930-1.423996-0.101260-0.118003-0.9674330.909576-0.2161420.0934200.694187-1.4469810.614719-0.879483-0.1616831.113938-0.097644-1.1724440.843039-0.745970
(90 more rows not shown)