Easier with Python: Quick Visualization with Plotly Express

Intro

During my career in Data Science, I’ve learned some stuff along the way that has helped make my career easier. Trust me, there’s things about Python are straight up boss. Here’s one example.

import plotly.express as px
data['Temp_Bands'] = np.round(data['Temperature'])
fig = px.line(data, x = 'date',
y = 'HumidityRatio',
color = 'Temp_Bands',
title = 'Humidity Ratio across dates as a function of
Temperature Bands',
labels = {'date' : 'Time Stamp',
'HumidityRatio' : 'Humidity Ratio',
'Temp_Bands' : 'Temperature Band'})
fig.show()

Leave a comment

Your email address will not be published. Required fields are marked *