This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PassengerId | Survived | Pclass | Name | Sex | Age | SibSp | Parch | Ticket | Fare | Cabin | Embarked | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 3 | Braund, Mr. Owen Harris | male | 22 | 1 | 0 | A/5 21171 | 7.25 | S | ||
| 2 | 1 | 1 | Cumings, Mrs. John Bradley (Florence Briggs Thayer) | female | 38 | 1 | 0 | PC 17599 | 71.2833 | C85 | C | |
| 3 | 1 | 3 | Heikkinen, Miss. Laina | female | 26 | 0 | 0 | STON/O2. 3101282 | 7.925 | S | ||
| 4 | 1 | 1 | Futrelle, Mrs. Jacques Heath (Lily May Peel) | female | 35 | 1 | 0 | 113803 | 53.1 | C123 | S | |
| 5 | 0 | 3 | Allen, Mr. William Henry | male | 35 | 0 | 0 | 373450 | 8.05 | S | ||
| 6 | 0 | 3 | Moran, Mr. James | male | 0 | 0 | 330877 | 8.4583 | Q | |||
| 7 | 0 | 1 | McCarthy, Mr. Timothy J | male | 54 | 0 | 0 | 17463 | 51.8625 | E46 | S | |
| 8 | 0 | 3 | Palsson, Master. Gosta Leonard | male | 2 | 3 | 1 | 349909 | 21.075 | S | ||
| 9 | 1 | 3 | Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg) | female | 27 | 0 | 2 | 347742 | 11.1333 | S |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import asyncio | |
| import random | |
| async def produce(queue, n): | |
| for x in range(1, n + 1): | |
| # produce an item | |
| print('producing {}/{}'.format(x, n)) | |
| # simulate i/o operation using sleep | |
| await asyncio.sleep(random.random()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traceback (most recent call last): | |
| File "/tmp/pip-build-lxdgdl3u/llvmlite/ffi/build.py", line 153, in <module> | |
| main() | |
| File "/tmp/pip-build-lxdgdl3u/llvmlite/ffi/build.py", line 143, in main | |
| main_posix('linux', '.so') | |
| File "/tmp/pip-build-lxdgdl3u/llvmlite/ffi/build.py", line 105, in main_posix | |
| raise RuntimeError(msg) | |
| RuntimeError: Building llvmlite requires LLVM 6.0.x. Be sure to set LLVM_CONFIG to the right executable path. | |
| Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // copyrigth 2018 Cedric Lemaitre | |
| #include "util.h" | |
| #include <iostream> | |
| #include <string> | |
| #include <sstream> | |
| #include <cstdlib> | |
| int main () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from struct import pack | |
| from struct import unpack | |
| from random import randint | |
| with open('test_ecriture.bin', 'wb') as mon_fichier: | |
| print('ouverture et création fichier en mode binaire : OK!') | |
| chaine_ecrire = "Senatus populusque romanus\n" | |
| for i in range(10): | |
| val = randint(0, 100) | |
| mon_fichier.write(pack(bytes(val))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from struct import pack | |
| from struct import unpack | |
| from random import randint | |
| with open('test_ecriture.bin', 'wb') as mon_fichier: | |
| print('ouverture et création fichier en mode binaire : OK!') | |
| chaine_ecrire = "Senatus populusque romanus\n" | |
| for i in range(10): | |
| val = randint(0, 100) | |
| mon_fichier.write(pack(bytes(val))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def _import_existing_suivi(self): | |
| try: | |
| df = pd.read_csv(self._existing_out_file) | |
| except EnvironmentError: | |
| print("impossible d'ouvrir le fichier CSV existant" | |
| + self._existing_out_file) |