Tutorial by Examples: c

In [1]: import pandas as pd import numpy as np arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'], ['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two']] idx_row = pd.MultiIndex.from_arrays(arrays, names=['Row_First', 'Row_Second']) idx_col = pd.MultiIndex.from_pro...
Unlike the .xs method, this allows you to assign values. Indexing using slicers is available since version 0.14.0. In [1]: import pandas as pd import numpy as np arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'], ['one', 'two', 'one', 'two', 'one', 'two', 'one', 'two'...
Add the autodoc module in the extensions list present in the conf.py file at the root of your documentation: extensions = [ 'sphinx.ext.autodoc', ... ]
Autodoc needs to imports your modules to work. You can include your code path in your conf.py file. For instance: import os sys.path.insert(0, os.path.abspath('../src'))
Once a model is built predict is the main function to test with new data. Our example will use the mtcars built-in dataset to regress miles per gallon against displacement: my_mdl <- lm(mpg ~ disp, data=mtcars) my_mdl Call: lm(formula = mpg ~ disp, data = mtcars) Coefficients: (Intercep...
Create an account Go to https://bitbucket.org/ Click on Get Started on the top right corner Enter your email address, and click continue Enter your full name, password and verification code. Then click Continue An email will be sent to you to verify that you created your account After that...
Go to the Bitbucket repository you want to add users to. On the left, go to Settings (the last icon on the bottom left). Select Users and group access. Under Users, start typing the name or email address of the user whom you want to add. Select the privilege you want to grant that user (Read, ...
To use Splatting to call Get-Process with the -FileVersionInfo switch similar to this: Get-Process -FileVersionInfo This is the call using splatting: $MyParameters = @{ FileVersionInfo = $true } Get-Process @MyParameters Note: This is useful because you can create a default set of p...
A simple multiwindow example using signals and slots. There is a MainWindow class that controls the Main Window view. A second window controlled by Website class. The two classes are connected so that when you click a button on the Website window something happens in the MainWindow (a text label i...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Hello, world!</title> </head> <body> message:"rendered view with ejs" </body> </html>
Use the config.frameworks option to get an array of Symbols that represent each framework.
You can use @Value("#{expression}") to inject value at runtime, in which the expression is a SpEL expression. Literal expressions Supported types include strings, dates, numeric values (int, real, and hex), boolean and null. "#{'Hello World'}" //strings "#{3.1415926}&qu...
JVM is an abstract computing machine or Virtual machine that resides in your RAM. It has a platform-independent execution environment that interprets Java bytecode into native machine code. (Javac is Java Compiler which compiles your Java code into Bytecode) Java program will be running inside the...
There are currently three topics introducing Outlook VBA and at least three more are planned. Part 1 describes how to get access to the Visual Basic Editor. If you are a user of Outlook 2003 and a user of Excel VBA, you will learn little for this part since accessing the Outlook Visual Basic Edito...
import React from 'react'; class Pane extends React.Component { constructor(props) { super(props); } render() { return React.createElement( 'section', this.props ); } }
MongoDB supports multiple authentication mechanisms. Client and User Authentication Mechanisms SCRAM-SHA-1 X.509 Certificate Authentication MongoDB Challenge and Response (MONGODB-CR) LDAP proxy authentication, and Kerberos authentication Internal Authentication Mechan...
To determine where on your system an executable in your path exists, use the which command: $ which python $ If there is no response, that executable does not exist in your path. The system will simply return you a new prompt without an error message. If the executable does exist on your path, ...
Go to the BigCommerce homepage. Enter a store name in the field labeled Create your store name, then click Start my free trial now. Your store name can be changed at any time after starting your trial. Fill out the new trial store form, then click Create my store now. Once yo...
<div ng-repeat="(key, value) in myObj"> ... </div> For example <div ng-repeat="n in [42, 42, 43, 43]"> {{n}} </div>
ngRepeat uses $watchCollection to detect changes in the collection. When a change happens, ngRepeat then makes the corresponding changes to the DOM: When an item is added, a new instance of the template is added to the DOM. When an item is removed, its template instance is removed from the DOM...

Page 653 of 826