Skip to content

ImportError: cannot import name 'pivot_ui' from partially initialized module 'pivottablejs' (most likely due to a circular import) #66

@TONODEKEN

Description

@TONODEKEN

'import streamlit as st
import streamlit.components.v1 as components
from pivottablejs import pivot_ui
import pandas as pd

iris = pd.read_csv(
"https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv"
)

t = pivot_ui(iris)

with open(t.src) as t:
components.html(t.read(), width=900, height=1000, scrolling=True)`

When trying this example I get this error : ImportError: cannot import name 'pivot_ui' from partially initialized module 'pivottablejs' (most likely due to a circular import)
I tested it without streamlit and resulted in the save error : I tested in .py file and jupyter notebook
Thanks for an answer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions