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 pandas as pd | |
import numpy as np | |
def create_empty_dataframe(new_column_list, num_rows): | |
""" | |
Creates a new dataframe filled with zeroes from a specified | |
list and number of rows. | |
Args: |
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 pandas as pd | |
import numpy as np | |
def create_empty_dataframe(new_column_list, num_rows): | |
""" | |
Creates a new dataframe filled with zeroes from a specified | |
list and number of rows. | |
Args: | |
new_col_list (object): List of column names. |
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 pytest | |
from mypackage_two.pandas_math import create_empty_dataframe | |
class TestCreateEmptyDataframe(object): | |
def test_on_create_empty_dataframe(self): | |
actual = len(create_empty_dataframe(['foo', 'bar'], 20)) | |
expected = 20 |
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 setuptools import setup | |
install_requires = [ | |
'pandas>=0.25.0', | |
'numpy>=1.15.4', | |
'functools'] | |
setup(name='misha_math', | |
version='0.0.1', | |
description='test', |
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
dist: xenial | |
language: python | |
python: | |
- "3.7.1" | |
install: | |
- pip install -r requirements.txt | |
- pip install pandas | |
script: | |
- pytest |
OlderNewer