Read Data from CSV and Print Product Column for 'Car' in Pandas

Vani Nalliappan
Updated on 17-Feb-2021 06:26:32

957 Views

Assume, you have ‘products.csv’ file and the result for a number of rows and columns and ‘product’ column value matches ‘Car’ for the first ten rows are −Download the products.csv file here.Rows: 100 Columns: 8 id    product    engine    avgmileage    price    height_mm    width_mm    productionYear 1 2    Car       Diesel       21         16500       1530          1735         2020 4 5    Car         Gas        18         17450   ... Read More

HTML Option Value Attribute

AmitDiwan
Updated on 17-Feb-2021 05:46:32

442 Views

The HTML option value attribute define the value of the option HTML element which is to be sent on a server when the form is submitted in an HTML document.SyntaxFollowing is the syntax −Let us see an example of HTML option value Attribute −ExampleLive Demo    body {       color: #000;       height: 100vh;       background-color: #8BC6EC;       background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);       text-align: center;    }    .btn {       background: #db133a;       border: none;       height: 2rem;       border-radius: 2px;       width: 40%;       display: block;       color: #fff;       outline: none;       cursor: pointer;       margin: 1rem auto;    } HTML optimum Attribute Demo Select your favourite subject: Physics Chemistry Biology Output

HTML Reserved Attributes

AmitDiwan
Updated on 17-Feb-2021 05:37:19

401 Views

The HTML reserved attribute define that the list order in ol HTML element should be descending in an HTML document.SyntaxFollowing is the syntax −Let us see an example of HTML reserved Attribute −ExampleLive Demo    body {       color: #000;       height: 100vh;       background-color: #8BC6EC;       background-image: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);    } HTML reversed Demo List of subjects: Physics Chemistry Maths Biology Economics Output

HTML Text Formatting

AmitDiwan
Updated on 17-Feb-2021 05:23:29

970 Views

The HTML Text Formatting refers to the HTML elements that are designed specially for formatting content in an HTML document.SyntaxFollowing is the syntax −contentFollowing are the text formatting tags in HTML:Sr.No.Tag & Explanation1It specifies bold text in an HTML document.2It specifies emphasized text in an HTML document3It specifies italic text in an HTML document.4It specifies smaller text in an HTML document.5It specifies important text in an HTML document.6It specifies subscripted text in an HTML document.7It specifies superscripted text in an HTML document8It specifies inserted text in an HTML document.9It specifies deleted text in an HTML document.10It specifies highlighted text in ... Read More

HTML Links

AmitDiwan
Updated on 17-Feb-2021 05:17:17

688 Views

The HTML Links are hyperlinks that means when you click on a link, it jump son another document.SyntaxFollowing is the syntax −Link ContentHere URL specifies the destination address and it can be either local or external address. target attribute defines where to open the linked document and it can take the following values:ValueExplanation_blankIt opens the linked document in a new tab or window._parentIt opens the linked document in the parent frame._selfIt opens the linked document in the same window._topIt opens the linked document in the full body of the window.ExampleLet us see an example of HTML Links −Live Demo   ... Read More

Scroll a Web Page Using Selenium WebDriver in Python

Debomita Bhattacharjee
Updated on 16-Feb-2021 06:49:03

3K+ Views

Sometimes we need to perform action on an element which is not present in the viewable area of the page. We need to scroll down to the page in order to reach that element.Selenium cannot perform scrolling action directly. This can be achieved with the help of Javascript Executor and Actions class in Selenium. DOM can work on all elements on the web page with the help of Javascript.Selenium can execute commands in Javascript with the help of the execute_script() method. For the Javascript solution, we have to pass true value to the method scrollIntoView() to identify the object below ... Read More

Create an Image to Zoom with CSS and JavaScript

Mohd Mohtashim
Updated on 16-Feb-2021 06:41:53

991 Views

Following is the code to create an image zoom:Example Live Demo    * {box-sizing: border-box;}    .img{       display: inline-block;    }    .img-zoom-container {       position: relative;    }    .img-zoom-zoomLens {       position: absolute;       border: 1px solid #d4d4d4;       width: 50px;       height: 50px;    }    .myresult{       display: inline-block;    }    .img-zoom-result {       border: 1px solid #d4d4d4;    } Image Zoom Example Hover over the image on ... Read More

HTML DOM Textarea defaultValue Property

AmitDiwan
Updated on 16-Feb-2021 05:37:40

146 Views

The HTML DOM Textarea defaultValue property returns and modify the default value of a text area element in an HTML document.SyntaxFollowing is the syntax −1. Returning defaultValueobject.defaultValue2. Adding defaultValueobject.defaultValue = “text”Let us see an example of HTML DOM Textarea defaultValue Property:ExampleLive Demo    body {       color: #000;       background: lightseagreen;       height: 100vh;    }    .btn {       background: #db133a;       border: none;       height: 2rem;       border-radius: 2px;       width: 40%;       display: block;       ... Read More

HTML DOM Textarea Disabled Property

AmitDiwan
Updated on 16-Feb-2021 05:35:42

169 Views

The HTML DOM Textarea disabled property returns and modify whether the text area element in an HTML document is disabled or not.SyntaxFollowing is the syntax −1. Returning disabledobject.disabled2. Adding disabledobject.disabled = true | falseLet us see an example of HTML DOM Textarea disabled Property:ExampleLive Demo    body {       color: #000;       background: lightseagreen;       height: 100vh;    }    .btn {       background: #db133a;       border: none;       height: 2rem;       border-radius: 2px;       width: 40%;       display: block;       color: #fff;       outline: none;       cursor: pointer;    } DOM Textarea disabled Property Demo Disable Textarea    function set() {       document.querySelector("textarea").disabled = true;    } OutputClick on “Disable Textarea” button to disabled the textarea element.

HTML DOM Textarea wrap Property

AmitDiwan
Updated on 16-Feb-2021 05:33:32

203 Views

The HTML DOM Textarea wrap property returns and modify the value of wrap attribute of a text area element in an HTML document.SyntaxFollowing is the syntax −1. Returning wrapobject.wrap2. Adding wrapobject.wrap = soft | hardLet us see an example of HTML DOM Textarea wrap Property:ExampleLive Demo    body {       color: #000;       height: 100vh;    }    .btn {       background: #db133a;       border: none;       height: 2rem;       border-radius: 2px;       width: 40%;       display: block;       color: ... Read More

Advertisements