Skip to main content

Posts

Showing posts with the label Jupyter Notebook

How to plot Pandas Dataframe as a Table in Python using Plotly?

Sometime its necessary to plot the pandas Dataframe as a table in python/Jupyter notebook, for instance for an easy reference to the Data dictionary. This is made easy by using plotly. Step 1: Install Plolty  pip install plotly Step 2: Import Plotly import plotly.graph_objects as go Step 3:  Plot the table  # read the data dictonary data_dict = pd.read_csv("data_dictionary.csv") fig = go.Figure(data=[go.Table(     header=dict(values=list(data_dict.columns),                 fill_color='paleturquoise',                 align='left'),     cells=dict(values=data_dict.transpose().values.tolist(),                fill_color='lavender',                align='left')) ]) fig.show()

How to Integrate Anaconda Prompt and Jupyter Notebook with CMDER

I personally find CMDER a fantastic tool and do believe its the best windows console emulator out there. I prefer make use of its  capability  to run multiple commands side by side with split panes and tabs, which helps multitasking and productivity. For those of you who aren't aware,  CMDER  is a user-friendly console emulator for Windows that offers numerous features, including a sleek and intuitive GUI, making it easy for users, including beginners, to interact with the command line.   In this blog, I'll guide you through the steps to set up CMDER to work similar to Anaconda Prompt, a popular environment for Python development.  A Step-by-Step Guide to Anaconda Prompt Integration in CMDER     Step 1: Navigate to Anaconda Prompt Before we begin, ensure you have Anaconda installed on your system. Open the Anaconda Prompt to find the location of the 'conda' executable. Step 2: Locate the 'conda' Executable In the Anaconda Prompt, enter the following command: whe