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 plotly.express as px | |
| fig = px.scatter(x=data['tenure'], y=data['TotalCharges'], | |
| color = data['Churn'], template = 'presentation', | |
| opacity = 0.5, facet_col = data['Contract'], | |
| title = 'Customer Churn by Tenure, Charges, and Contract Type', | |
| labels = {'x' : 'Customer Tenure', 'y' : 'Total Charges $'}) | |
| fig.show() |
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
| largest = None | |
| smallest = None | |
| while True: | |
| num = raw_input("Enter a number: ") | |
| if num == "done" : break | |
| try: | |
| num = int(num) | |
| except: | |
| print("Invalid input") | |
| continue |
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
| trainers.php?id= | |
| play_old.php?id= | |
| declaration_more.php?decl_id= | |
| Pageid= | |
| games.php?id= | |
| newsDetail.php?id= | |
| staff_id= | |
| historialeer.php?num= | |
| product-item.php?id= | |
| news_view.php?id= |
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 numpy as np | |
| import matplotlib.pyplot as plt | |
| x = np.array([0.0, 1.0, 2.0, 3.0, 4.0, 5.0]) | |
| y = np.array([0.0, 0.8, 0.9, 0.1, -0.8, -1.0]) | |
| z = np.polyfit(x, y, 3) | |
| print (z) | |
| # create polynomial | |
| p = np.poly1d(z) |