scatter_3D_df#

mufasa.visualization.scatter_3D.scatter_3D_df(dataframe, x_key, y_key, z_key, label_key=None, mask_df=None, auto_open_html=True, **kwargs)[source]#

A wrapper for scatter_3D to quickly plot a pandas DataFrame in 3D.

Parameters:
  • dataframe (pandas.DataFrame) – DataFrame containing the data to plot.

  • x_key (str) – Column name for the x-axis values.

  • y_key (str) – Column name for the y-axis values.

  • z_key (str) – Column name for the z-axis values.

  • label_key (str, optional) – Column name to color the data points by. If None, data points are plotted without color scaling. Default is None.

  • mask_df (pandas.Series or None, optional) – Boolean mask to filter the DataFrame before plotting. Default is None.

  • auto_open_html (bool, optional) – Whether to automatically open the HTML plot file upon saving. Default is True.

  • kwargs (dict) – Additional keyword arguments for the 3D scatter plot.

Returns:

fig – The 3D scatter plot figure.

Return type:

plotly.graph_objs.Figure