Tag: list

Solved With :has(): Vertical Spacing in Long-Form Text

If you’ve ever worked on sites with lots of long-form text — especially CMS sites where people can enter screeds of text in a WYSIWYG editor — you’ve likely had to write CSS to manage the vertical spacing between different … Solved With :has(): Vertical Spacing in Long-Form Text originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter. ...
Continue Reading Solved With :has(): Vertical Spacing in Long-Form Text

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

Speeding up the JavaScript ecosystem – module resolution

📖 tl;dr: Whether you’re building, testing and/or linting JavaScript, module resolution is always at the heart of everything. Despite its central place in our tools, not much time has been spent on making that aspect fast. With the changes discussed in this blog post tools can be sped up by as much as 30%. In part 1 of this series… ...
Continue Reading Speeding up the JavaScript ecosystem – module resolution

How to create Pandas DataFrame in Python

A 2-dimensional labeled data structure like a table with rows and columns is what the Pandas DataFrame is. The dataframe’s size and values are mutable or changeable. It is the panda thing that is used the most. There are various ways to generate a Pandas DataFrame. Let’s go over each method for creating a DataFrame one at a time. ...
Continue Reading How to create Pandas DataFrame in Python

Changing Index in Pandas explained with examples

In a Pandas DataFrame, a row is uniquely identified by its Index. It is merely a label for a row. The default values, or numbers ranging from 0 to n-1, will be used if we don’t specify index values when creating the DataFrame, where n is the number of rows. ...
Continue Reading Changing Index in Pandas explained with examples

How to insert a row in Pandas

In this article, you will discover how to add (or insert) a row into a Pandas DataFrame. You’ll discover how to add one row, or several rows, and at particular locations. A list, a series, and a dictionary are other alternatives to adding a row. ...
Continue Reading How to insert a row in Pandas

How to drop duplicate rows in Pandas Python

Do you ever accidentally have repeat rows in your data Duplicates will be eliminated for you by Pandas Drop. Any duplicate rows or a subset of duplicate rows will be eliminated from your DataFrame by using Pandas DataFrame.drop duplicates(). ...
Continue Reading How to drop duplicate rows in Pandas Python

GraphQL errors: the Good, the Bad and the Ugly

Returning errors in GraphQL is a challenging task, and we tried a lot of different approaches over time. Keep reading to know what we’ve learned along the way. ...
Continue Reading GraphQL errors: the Good, the Bad and the Ugly

Reflections on 2022

As we come to the end of another year, lets look back at the highlights and reflect on the year. Although this post focuses on my personal… ...
Continue Reading Reflections on 2022

Thank You (2022 Edition)

You know, this is the time of year where Chris normally publishes a big ol’ reflection of the past year. The first one was published in 2007, the same year CSS-Tricks began, and it continued all the way through 2021… Thank You (2022 Edition) originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter. ...
Continue Reading Thank You (2022 Edition)