Strings in PythonLet’s look at strings (str) in Python. The string is one of the scalar types in Python. The […] November 17, 2024 in Python tagged string / escape / raw by Mike
Split a Delimited String in a DataFrameAre you needing to split a string inside a column of a pandas DataFrame? Do you want to […] April 4, 2024 in Python tagged parse / split / delimited / pandas / comma / string by Mike
Count the Number of Rows with a ConditionSuppose you are working with a pandas DataFrame in Python. You are doing some EDA (exploratory data analysis) […] October 12, 2023 in Python tagged count / string / where / condition / python / rows / shape / pandas / dataframe / format by Mike
Python Find Nth Occurrence of Char in a StringIn Python, how would you find the Nth occurrence of a character (or substring) in a string? Yes, […] August 3, 2023 in Python tagged find / char / string / python / substring / nth / occurrence / locate by Mike
Change String Case in pandasThere are several ways to change the case in a pandas String. There is upper, lower, title, capitalize […] August 3, 2023 in Python tagged string / case / upper / series / str / lower / title capitalize / swap by Mike
Data Type Conversion in pandasConvert Strings to Floats This post discusses one of the EDA Structuring tasks using Python and pandas. Here […] August 2, 2023 in Python tagged replace / astype / string / comma / type / conversion / float / dollar / strip / data / million / convert / billion / Pandas EDA Structuring by Mike
EDA Discovering with PandasExploratory Data Analysis has six phases: discovering, structuring, cleaning, joining, validating and presenting. The first phase is discovery. […] July 4, 2023 in Python tagged plot / subset / pandas / random / EDA / sample / discovery / replace / string / discovering / date / columns / python / Pandas EDA Discovery by Mike
Convert a String to a Date in RIn R language, if you have a string that you need to convert to a date, try this. […] March 28, 2023 in R Language tagged convert / string / date / strings by Mike
Removing Spaces in RSometimes you have extra spaces in your text string. You need to clean that up. trimws() removes leading […] March 12, 2023 in R Language tagged string / R / spaces / trim by Mike
Excel Find Nth Occurrence of Char in a StringIn Microsoft Excel, what formula would you use to find the Nth occurrence of a character (or string) […] October 14, 2022 in Excel tagged parse / nth / occurrence / substitute / excel / find / string by Mike
SQL Find Nth Occurrence of Char in a StringT-SQL’s CHARINDEX() function is useful for parsing out characters within a string. However, it only returns the first […] November 20, 2021 in SQL Server tagged char / string / parse / charindex / nth / occurrence / character by Mike
T-SQL Parsing Into Many ColumnsThis post is about working with one column in a SQL Server table that contains a comma-separated list […] November 20, 2021 in SQL Server tagged sql / T-SQL / csv / string / parse / split / fruit / SQL Server Parsing Many Columns by Mike