Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noticably slower render/transformation time for str columns casted as temporal encoding types #403

Open
joelostblom opened this issue Sep 29, 2023 · 0 comments

Comments

@joelostblom
Copy link

Vegafusion seems to transform/render str columns slower than base altair, when these columns are encoded as temporal data types in the altair spec. See example in the video; not shown is that if astype(str) is changed to astype('category') there is no speed difference.

vfspeed-2023-09-28_19.07.12.mp4
import altair as alt
from vega_datasets import data
import pandas as pd

alt.data_transformers.enable('default')
alt.data_transformers.disable_max_rows()

source = pd.concat([data.wheat()]*800)
source.year = source.year.astype('category')

chart = alt.Chart(source, height=200).mark_point().encode(
    x='year:T',
    y='wheat',
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants