from my_mod import enlarge from pandas import DataFrame print("HELLO") df = DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]}) print(df) x = 11 print(enlarge(x))
df1 = pd.DataFrame([['a', 1], ['b', 2]], columns=['letter', 'number']) df2 = pd.DataFrame([['c', 3], ['d', 4]], columns=['letter', 'number']) lst = [2,6,78,9,10] print('new df with list', list_into_df(lst,df1)) print("------------") x = 5 print("number", x) print('Enlarged Number', enlarge(x)) print("Null checker \n\n\n") car1 = Car('Toyota', 'Celica', 15000) Car.set_lower_amount(0.85) print('Original price', car1.price) print('lower amount', car1.lower_amount) # apply method car1.apply_depreciation() print('new price', car1.price)
import requests from sklearn.model_selection import train_test_split # my_lambdata/my_script.py from my_mod import enlarge print("HELLO WORLD") df = pandas.DataFrame({"State": ['CT', "CO", "CA", "TX"]}) print(df.head()) print("--------") x = 5 print("NUMBER", x) print("ENLARGED NUMBER", enlarge(x)) # invoking our function!! df1 = pandas.read_csv( 'https://raw.githubusercontent.com/ryanleeallred/datasets/master/Ames%20Housing%20Data/train.csv' ) df1['LotFrontage'].head(5) # Split train into train & val train, test = train_test_split(df1, train_size=0.85, test_size=0.15, random_state=42) train, val = train_test_split(df, train_size=0.80, test_size=0.20,
# my_lambdata/my_script.py import pandas from my_mod import enlarge print('Hello World') df = pandas.DataFrame({'State': ['CT', 'ca', 'cb']}) print(df.head()) print('--------------') x = 5 print("Number:", x) print('Number enlarged', enlarge(x)) # invoke the function
import pandas as pd from my_mod import enlarge print("Hello") print(enlarge(8)) df = pd.DataFrame({"state":["CT", "CO", "CA", "TX"]}) print(df.head())
from my_mod import enlarge x = float(input('Input a number:')) result = enlarge(x) print(f'{result:.0f}')
# my_lambdata/my_script.py import pandas from my_mod import enlarge print("HAPPY TUESDAY NIGHT.") df = pandas.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]}) print(df.head()) x = 5 print("ENLARGE", x, "TO", enlarge(x))
# my-lambdata-pt4/my_script.py import pandas from my_mod import enlarge print("HAPPY TUESDAY NIGHT.") df = pandas.DataFrame({'x': [1, 2, 3], 'y': [4, 5, 6]}) print(df.head()) x = 5 print(x, 'ENLARGE', x, 'TO', enlarge(x))