File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1624,9 +1624,6 @@ Progress Bar
1624
1624
``` python
1625
1625
# $ pip3 install tqdm
1626
1626
from tqdm import tqdm
1627
- ```
1628
-
1629
- ``` python
1630
1627
from time import sleep
1631
1628
for i in tqdm([1 , 2 , 3 ]):
1632
1629
sleep(0.2 )
@@ -1640,9 +1637,6 @@ Plot
1640
1637
``` python
1641
1638
# $ pip3 install matplotlib
1642
1639
from matplotlib import pyplot
1643
- ```
1644
-
1645
- ``` python
1646
1640
pyplot.plot(< data_1> [, < data_2> , ... ])
1647
1641
pyplot.savefig(< filename> , transparent = True )
1648
1642
pyplot.show()
@@ -1651,13 +1645,10 @@ pyplot.show()
1651
1645
1652
1646
Table
1653
1647
-----
1648
+ #### Prints CSV file as ASCII table:
1654
1649
``` python
1655
1650
# $ pip3 install tabulate
1656
1651
from tabulate import tabulate
1657
- ```
1658
-
1659
- #### Prints CSV file as ASCII table:
1660
- ``` python
1661
1652
import csv
1662
1653
with open (< filename> , encoding = ' utf-8' ) as file :
1663
1654
lines = csv.reader(file , delimiter = ' ;' )
@@ -1672,9 +1663,7 @@ Curses
1672
1663
``` python
1673
1664
# $ pip3 install curses
1674
1665
from curses import wrapper
1675
- ```
1676
1666
1677
- ``` python
1678
1667
def main ():
1679
1668
wrapper(draw)
1680
1669
You can’t perform that action at this time.
0 commit comments