Building a Tableau-Like BI Application with Atoti in Jupyter Notebook

Building a Tableau-Like BI Application with Atoti in Jupyter Notebook

Are you tired of relying on others to explore your model's data or struggling with complex code to visualize your results? With Atoti, a powerful Python module, you can quickly create your interactive BI application in your Jupyter Notebook!

Let's explore how Atoti empowers you to analyze and visualize your data effortlessly.

Step 1: Install Atoti

Start by installing Atoti using pip:

bash

Copy code
pip install atoti         

Step 2: Import Libraries and Load Data

Import the required libraries and load your model's data into a Pandas DataFrame.

python

Copy code
import pandas as pd import atoti as tt # Load your data into a Pandas DataFrame data = pd.read_csv('your_data.csv')         

Step 3: Create Atoti Cube and Dashboard

Now, create an Atoti Cube using the loaded data and define the measures and dimensions for analysis.

python

Copy code
# Create an Atoti session session = tt.create_session() # Create an Atoti Cube cube = session.create_cube(data, name='MyCube') # Define dimensions and hierarchies cube.create_dimension('Dimension1', hierarchies=['Attribute1', 'Attribute2']) cube.create_dimension('Dimension2', hierarchies=['Attribute3', 'Attribute4']) # Define measures for analysis (e.g., sum, count, average) cube.create_measures('Measure1', tt.agg.sum('Column1')) cube.create_measures('Measure2', tt.agg.average('Column2'))         

Step 4: Build Interactive Dashboards

Atoti allows you to build interactive dashboards easily using simple Python code.

python

Copy code
# Create a dashboard dashboard = session.create_dashboard() # Add charts and visualizations to the dashboard chart1 = dashboard.add_chart(tt.visualization.BarChart, title="Bar Chart") chart1.data = cube.query('SELECT [Dimension1].[Attribute1], [Measures].[Measure1]') chart2 = dashboard.add_chart(tt.visualization.LineChart, title="Line Chart") chart2.data = cube.query('SELECT [Dimension2].[Attribute3], [Measures].[Measure2]')         

Step 5: Analyze and Play Around

Congratulations! Your Atoti-based BI application is ready. Run the notebook, and you'll see the interactive dashboard within your Jupyter environment.

Atoti's intuitive UI allows you to explore and play around with the data effortlessly. Use filters, slicers, and drill-downs to analyze your model's results from different perspectives, all without the need to write complex code or depend on a standalone BI solution.

Step 6: Share and Collaborate

The best part is that you can easily share your Jupyter Notebook with colleagues, allowing them to interact with the BI application and explore the data produced by your model collaboratively.

So, #unlockthepower of #Atoti and take control of your data analysis journey with interactive visualizations, all within your Jupyter Notebook!

(Note: Replace 'your_data.csv' with your dataset's path.)

Hetal Kapadia, PhD

Head of Developer Relations ?????? Product and people obsessed

1 年

Wow! Thanks for the write up! I noticed a snafu or two in the code here. Not to worry: we can fix it *and* streamline it a bit. import atoti as tt session = tt.Session() data = tt.read_csv('path/to/your_data.csv') # leveraging atoti's read_csv() cube = session.create_cube(data, name='MyCube') session.link() # see the dashboarding webapp link And done! By using the default cube creation mode, Atoti will automagically create hierarchies, levels and measures based on the underlying data types. You can add widgets to your dashboard using an intuitive GUI experience. Your followers can learn more about Atoti at atoti.io or explore the documentation at docs.atoti.io

要查看或添加评论,请登录

Tracy Anne Griffin Manning的更多文章

  • Hidden Markov Models: Revolutionizing FinOps, AI, and Cloud Strategy.

    Hidden Markov Models: Revolutionizing FinOps, AI, and Cloud Strategy.

    Hidden Markov Models(HMMs) epitomize the next frontier of AI-driven financial strategy. By transforming complex…

  • The Myth of the Playbook

    The Myth of the Playbook

    Creativity isn't just a soft skill in AI, finance, cloud architecture, and product management—it's the critical…

  • The Ultimate Hack.

    The Ultimate Hack.

    Most schooling gets it wrong. They teach you to follow instructions, memorize facts, and fit into a system.

    1 条评论
  • You're juggling time constraints and statistical uncertainties. How do you strike the perfect balance?

    You're juggling time constraints and statistical uncertainties. How do you strike the perfect balance?

    Recognize that perfect certainty is the enemy of timely decision-making. Triangulate available data, leverage…

  • Show Me The Money

    Show Me The Money

    Leveraging AI solutions can significantly boost productivity and deliver increased value across daily activities. 1.

  • Text Tokenization in Python

    Text Tokenization in Python

    What is Text Tokenization? Text tokenization is the process of breaking down a text or string into smaller units called…

  • Roadmap: AI Data Science Product Manager

    Roadmap: AI Data Science Product Manager

    When I started working on my first product, I was way in over my head, drowning in fear, and making more mistakes than…

    2 条评论
  • Pick Your Bear!

    Pick Your Bear!

    Introduction to Pandas and Polars Pandas: A widely used data manipulation library in Python, known for its robust data…

    1 条评论
  • Unlocking Organizational Success: The Power of Emotional Intelligence.

    Unlocking Organizational Success: The Power of Emotional Intelligence.

    The future of work is emotionally intelligent – don't get left behind. Did you know that only 36% of the global…

  • Vision vs. Strategy

    Vision vs. Strategy

    Understanding the distinction between vision and strategy is crucial. Vision is the overarching dream that defines…

社区洞察