Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit befd6af

Browse filesBrowse files
clean up imports
1 parent f956911 commit befd6af
Copy full SHA for befd6af

File tree

Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed

‎doc/python/time-series.md

Copy file name to clipboardExpand all lines: doc/python/time-series.md
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ fig.show()
113113
A range slider is a small subplot-like area below a plot which allows users to pan and zoom the X-axis while maintaining an overview of the chart. Check out the reference for more options: https://plotly.com/python/reference/#layout-xaxis-rangeslider
114114

115115
```python
116-
import plotly.graph_objects as go
117-
import pandas as pd
118116
import plotly.express as px
117+
import pandas as pd
119118

120119
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
121120

@@ -130,9 +129,8 @@ fig.show()
130129
Range selector buttons are special controls that work well with time series and range sliders, and allow users to easily set the range of the x-axis. Check out the reference for more options: https://plotly.com/python/reference/#layout-xaxis-rangeselector
131130

132131
```python
133-
import plotly.graph_objects as go
134-
import pandas as pd
135132
import plotly.express as px
133+
import pandas as pd
136134

137135
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
138136

@@ -158,6 +156,7 @@ fig.show()
158156
The `tickformatstops` attribute can be used to customize the formatting of tick labels depending on the zoom level. Try zooming in to the chart below and see how the tick label formatting changes. Check out the reference for more options: https://plotly.com/python/reference/#layout-xaxis-tickformatstops
159157

160158
```python
159+
import plotly.graph_objects as go
161160
import pandas as pd
162161

163162
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
@@ -193,7 +192,6 @@ The `rangebreaks` attribute available on x- and y-axes of type `date` can be use
193192
```python
194193
import plotly.express as px
195194
import pandas as pd
196-
import plotly.express as px
197195

198196
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
199197

@@ -205,7 +203,6 @@ fig.show()
205203
```python
206204
import plotly.express as px
207205
import pandas as pd
208-
import plotly.express as px
209206

210207
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv')
211208

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.