GithubHelp home page GithubHelp logo

csmastersuh / data_analysis_with_python_spring_2020 Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 11.0 10.6 MB

Course material for the spring instance of Data analysis with python at the University oh helsinki

Home Page: https://csmastersuh.github.io/data_analysis_with_python_spring_2020/

Makefile 0.11% Python 2.89% Jupyter Notebook 97.00%

data_analysis_with_python_spring_2020's Introduction

Data analysis with Python - Spring 2020

Authors

Materials created by Jarkko Toivonen.

Updated and maintained by Saska Dögnes.

License

The course material is licensed under a Creative Commons BY-NC-SA 4.0 license.

Usage:

Building html pages locally

The libraries needed in these Jupyter notebooks are listed in file requirements.txt. In addition, to compile the *.ipynb and *.rst files to html pages, the following libraries are needed:

  • nbsphinx (conda install -c conda-forge nbsphinx)
  • sphinx_rtd_theme (conda install sphinx_rtd_theme)

Then you can compile the html pages locally with:

make html

The html pages will be stored under _build/html/ folder.

Automatic deployment of html pages to GitHub Pages by Travis

Create a new branch for your repository with name gh-pages. This is where the html pages will be stored. They will be visible at https://<account>.github.io/data_analysis_with_python_spring_2020

GitHub can be instructed to notify Travis CI every time something is pushed to the git repository. Travis will then pull the most recent versions of notebooks from GitHub, convert them to html, and then push them to the gh-pages branch of your GitHub repository. They will then be visible at github.io.

To set up this automation, follow the next instructions:

In Github choose settings -> Developer settings -> Personal access tokens and generate an access token and copy it.

In Travis CI (travis-ci.com) select the correct repository and add an environment variable with key ´GITHUB_TOKEN´ and as value the secret token you got from github. This allows Travis to push the html pages to the gh-pages branch of the github repository.

You may at some point need to install the Travis CI application to github.

data_analysis_with_python_spring_2020's People

Contributors

elehtine avatar saskeli avatar velimakinen avatar waterseeker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

data_analysis_with_python_spring_2020's Issues

tmc test problem

Hi,

I have a problem with testing exercises 1.4, 1.5 and 1.6 (have not tried 1.7 ... yet).
Every time the error is related to the number of printed lines.
For example for exercise 1.4 the code prints the table that looks exactly like the one requested (10 raws x 10 columns table), however, the test error says " 1 != 10 : The output should contain 10 lines!"
For exercise 1.5 the code prints 4 lines, however, the test error says " 1 != 4 : The output should contain exactly four lines!"
Could somebody help me to solve this? Thanks!

Anastasia Ludwig

Issue with part 01 e 14 - finding matches

Here is my code for the problem:

def find_matching(L, pattern):
    l = []
    for x,y in enumerate(L):
        if pattern in y:
            l.append(x)
    return l 

def main():
    pass

if __name__ == "__main__":
    main()

https://tmc.mooc.fi/paste/3_8DTPnsqpNZZkXjE9JznQ

I get an error : test.test_find_matching.FindMatching.test_calls
maximum recursion depth exceeded while calling a Python object

The two other are corrects, when i try my code in IDLE everything work, I have trouble seeing where the problem comes from.

TMC test and TMC submit are no longer working

Hello,
I need your help because I can no longer test or submit my code . When I use the commands tmc test or tmc submit, I have the following message : No exercises specified.
I tried to run another time : tmc update , the exercices are downloaded, but I have the following message at the end : Failed to update course config file.

Thanks a lot for your help. This problem starts at the part03-e01_column_comparison.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.