This file contains 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
#check total number of males | |
totalMales = newDF.loc[(newDF.Gender=='Male')].count() #409 | |
print("totalMales" + str(totalMales)) | |
totalFemales = newDF.loc[(newDF.Gender=='Female')].count() #77 | |
print("totalFemales" + str(totalFemales)) | |
#males are more likely to borrow than females 409 > 77 |
This file contains 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 csv | |
import pandas as pd | |
import numpy as np | |
import re | |
import string | |
myDataFrame = pd.read_csv('Loan_payments_data_2020_unclean.csv') |
This file contains 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
myDataFrame = pd.read_csv('Loan_payments_data_2020_unclean.csv') | |
columnsDict = {"columnName": list(myDataFrame.columns)} | |
columnsDataFrame = pd.DataFrame(columnsDict) | |
replacedColumns = columnsDataFrame['columnName'].str.replace(r'(?<![^_]).', lambda x: x.group().upper()) | |
myDataFrame.columns = list(replacedColumns) | |
myDataFrame['Gender'] = myDataFrame['Gender'].str.replace('^\s*$', 'NaN') |
This file contains 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
1. | |
Landlord userType will subscribed to: | |
a) (locality or city)-(building)-landlord | |
b) (locality or city)-(street)-landlord | |
c) (city or locality)-residents <only one of them> | |
d) (locality or city)-(building or street)-residents |
This file contains 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
{ | |
"addressType" : "Residential", | |
"adminAreaCode" : "", | |
"adminAreaName" : "Barking and Dagenham", | |
"block" : "", | |
"buildingName" : "Bath House", | |
"buildingNumber" : "5", | |
"city" : "Barking", | |
"company" : "", | |
"countryIso2" : "GB", |
This file contains 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
// | |
// extensionNotificationsMyStreet.swift | |
// App | |
// | |
// Created by Bogdan Barbulescu on 10/08/2018. | |
// | |
import Foundation | |
import Vapor | |
import HTTP |
This file contains 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
extension ChatViewController { | |
struct NotificationInfoChat { | |
let title: String | |
let body: String | |
let chatUID: String | |
let unreadMessagesCount: Int |
This file contains 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 AVFoundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
class AudioPlayer { | |
var topAudioFiles: [AVAudioFile] = [] | |
var engine:AVAudioEngine | |
var backgroundAudioNode: AVAudioPlayerNode | |
var backgroundAudioFile: AVAudioFile |
This file contains 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
// | |
// MediaTableViewCell.swift | |
// myStreet.com | |
// | |
// Created by Bogdan Barbulescu on 12/04/2018. | |
// Copyright © 2018 vividapartments. All rights reserved. | |
// | |
import UIKit | |
import SAMCache |
This file contains 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 UIKit | |
import MediaPlayer | |
import AVFoundation | |
class FirstViewController: UIViewController, MPMediaPickerControllerDelegate { | |
@IBAction func loadMusic(_ sender: Any) { | |
NewerOlder