Python packages - adding tests and a new function to siuba

Publié le: 22 mai 2020
sur la chaîne: Michael Chow
226
8

I create a new function in the siuba package, along with unit tests. While working through the setup, I discuss different features of siuba, pandas, virtual environments, and pytest.

Timeline:

01:00 - clone the siuba repo (discuss my virtual environments)
01:45 - docker-compose.yml
02:50 - finding pivot_longer in the tidyr repo
04:45 - start siuba code
09:41 - start unit tests
11:09 - data_frame, a helper function for creating data
16:49 - copy in pivot_longer call signature from R
21:00 - run pytest (and need to activate my virtualenv)
27:03 - first test passes
28:46 - git commit code
34:36 - pandas iloc vs loc - slicing surprises explained
36:47 - pytest mark xfail


Sur cette page du site, vous pouvez voir la vidéo en ligne Python packages - adding tests and a new function to siuba durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Michael Chow 22 mai 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 226 fois et il a aimé 8 téléspectateurs. Bon visionnage!