Skip to content

Commit

Permalink
fix introduction help
Browse files Browse the repository at this point in the history
  • Loading branch information
grusev committed Oct 18, 2024
1 parent b20a677 commit 77413fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/mkdocs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import numpy as np
from datetime import datetime
cols = ['COL_%d' % i for i in range(50)]
df = pd.DataFrame(np.random.randint(0, 50, size=(25, 50)), columns=cols)
df.index = pd.date_range(datetime(2000, 1, 1, 5), periods=25, freq="H")
df.index = pd.date_range(datetime(2000, 1, 1, 5), periods=25, freq="h")
df.head(5)
```
_output (the first 5 rows of the data)_
Expand Down Expand Up @@ -271,7 +271,7 @@ Then create 3 new rows to append. For append to work the new data must have its
```python
random_data = np.random.randint(0, 50, size=(3, 50))
df_append = pd.DataFrame(random_data, columns=['COL_%d' % i for i in range(50)])
df_append.index = pd.date_range(datetime(2000, 1, 2, 7), periods=3, freq="H")
df_append.index = pd.date_range(datetime(2000, 1, 2, 7), periods=3, freq="h")
df_append
```
_output_
Expand Down Expand Up @@ -319,7 +319,7 @@ Here we create a new DataFrame for the update, with only 2 rows that are 2 hours
```python
random_data = np.random.randint(0, 50, size=(2, 50))
df = pd.DataFrame(random_data, columns=['COL_%d' % i for i in range(50)])
df.index = pd.date_range(datetime(2000, 1, 1, 5), periods=2, freq="2H")
df.index = pd.date_range(datetime(2000, 1, 1, 5), periods=2, freq="2h")
df
```
_output (rows 0 and 2 only as selected by the `iloc[]`)_
Expand Down

0 comments on commit 77413fe

Please sign in to comment.