Tag: strings

How to convert Column to DateTime in Pandas

Time series data are frequently encountered when working with data in Pandas, and we are aware that Pandas is an excellent tool for working with time-series data in Python. Using the to_datetime() and astype() functions in Pandas, you can convert a column (of a text, object, or integer type) to a datetime. Furthermore, if you’re reading data from an external source like CSV or Excel, you can specify the data type (for instance,...
Continue Reading How to convert Column to DateTime in Pandas

Converting Column with float values to Integer values in Pandas

To change a column’s data type to int (float/string to integer/int64/int32 dtype), use the pandas DataFrame.astype(int) and DataFrame.apply() methods. If you are converting a float, you probably already know that it is larger than an int type and would remove any number with a decimal point. ...
Continue Reading Converting Column with float values to Integer values in Pandas

Pandas Get Index Values

We might need to retrieve the row or index names when examining real datasets, which are frequently very large, to carry out specific actions. Dataframe indexes refer to the indexes of rows, whereas available column names refer to the indexes of columns. Most of the time, indexes retrieve or store data within a dataframe. But by utilizing the .index property, we can also get the index itself. ...
Continue Reading Pandas Get Index Values

Rendering emails with Svelte

We recently rebuilt our whole email stack from scratch to improve the developer experience: we now have an instant feedback loop, leveraging a SvelteKit-powered dev server. ...
Continue Reading Rendering emails with Svelte

How to compare strings in JavaScript

When programming in JavaScript, you will encounter various situations where you must compare two strings before performing an operation. For instance, a user can only log in to a website if its name matches the existing names stored in the database. In such situations, the ‘Strict Equality Operator’ compares the strings. The functionality of comparison in JavaScript is not only limited to value-based comparisons. Strings are compared for various reasons. Some of the...
Continue Reading How to compare strings in JavaScript

Speeding up the JavaScript ecosystem – one library at a time

📖 tl;dr: Most popular libraries can be sped up by avoiding unnecessary type conversions or by avoiding creating functions inside functions. Whilst the trend is seemingly to rewrite every JavaScript build tool in other languages such as Rust or Go, the current JavaScript-based tools could be a lot faster. The build pipeline in a typical frontend project is usually composed… ...
Continue Reading Speeding up the JavaScript ecosystem – one library at a time

JavaScript RegExp Object – Regular Expressions

A character pattern is what makes up a regular expression. The text uses the pattern to do “search-and-replace” operations that match patterns. Further, a RegExp Object in JavaScript is a pattern with properties and methods. ...
Continue Reading JavaScript RegExp Object – Regular Expressions

JavaScript Array slice() method

The array’s chosen elements are returned as a new array by the slice() method. The slice() method also chooses between a specified start and a specified (not inclusive) end. However, the original array is unaltered by the slice() technique. ...
Continue Reading JavaScript Array slice() method

Finding Front-End Development Scholarships

I’m often asked where to learn web development. The answer varies, of course, and we’ve published a few posts on the topic over the years, the most recent of which was Chris taking a stab at different learning paths in … Finding Front-End Development Scholarships originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter. ...
Continue Reading Finding Front-End Development Scholarships