<jupyter_start><jupyter_text>3D Plotting with Plotly<jupyter_code>import plotly.express as px
df = px.data.gapminder()
df.head()<jupyter_output><empty_output><jupyter_text>3D Scatterplot<jupyter_code>euro_countries = df[df['continent'] == "Europe"]

fig = px.scatter_3d(euro_countries, x='lifeExp', y='year', z='gdpPercap', color='country')
fig.show()<jupyter_output><empty_output><jupyter_text>----  3d plot to 3d bubble chart* `size` parameter<jupyter_code>fig = px.scatter_3d(euro_countries, x='lifeExp', y='year', z='gdpPercap', color='country', size='pop')
fig.show()<jupyter_output><empty_output><jupyter_text>------  3d Line Chart<jupyter_code>fig = px.line_3d(euro_countries, x='lifeExp', y='year', z='gdpPercap', color='country')
fig.show()<jupyter_output><empty_output><jupyter_text>-----  3D Surface Plot<jupyter_code>import pandas as pd

elev = pd.read_csv('mt_bruno_elevation.csv', index_col=0)
elev.head()
import plotly.graph_objects as go
fig = go.Figure(data=go.Surface(z=elev.values, colorscale='Earth'))
fig.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17231638418079095, 'fraction_numerical': 0.009416195856873822, 'mean_word_length': 8.842592592592593, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '49227', 'license': 'MIT', 'n_tokens_mistral': 438, 'n_tokens_neox': 435, 'n_words': 62, 'path': 'DV - Data Visualizations with Plotly/03.Creating Visualization with Plotly/03-03-3D Plotting.ipynb', 'repo_name': 'ptyadana/probability-and-statistics-for-business-and-data-science', 'size': '1062'}