article thumbnail

Converting a Git repo from tabs to spaces (2016)

Hacker News

For historical reasons probably the initial developers preferred it their mostly-Python codebase had always been in This post is about the thing in the title. I used to work for Yelp.

Python 90
article thumbnail

Introduction to Data Science: How to “Big Data” with Python

Dataconomy

Katharine Jarmul and Data Natives are joining forces to give you an amazing chance to delve deeply into Python and how to apply it to data manipulation, and data wrangling. By the end of her workshop, Learn Python for Data Analysis, you will feel comfortable importing and running simple Python analysis on your.

Big Data 196
professionals

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Demystifying the Regular Expression That Checks If a Number Is Prime (2016)

Hacker News

Code examples in Java, JavaScript, Python and Perl are provided. Ever wondered how the ^.?$|^(.+?)1+$ 1+$ regular expression can tell you if a number is not prime? In this blog post you'll learn how and why it works.

Python 121
article thumbnail

How to Detect the Trend in the Time Series Data and Detrend in Python

Towards AI

To demonstrate the trend, we will use Pollution US 2000 to 2016 data from Kaggle. The change of direction in the data for a sustained period can be called a trend. It will be clearer with the examples below. Please feel free to download the dataset from this link: U.S. csv') This dataset is pritty big.

Python 116
article thumbnail

Entity Recognition with LLM: A Complete Evaluation

Towards AI

SpaCy is a language processing library written in Python and Cython that has been well-established since 2016. With little or no examples, they are able to perform language processing operations such as classification, sentiment analysis, concept extraction, named entity recognition, translation, and more.

article thumbnail

Enterprise-grade natural language to SQL generation using LLMs: Balancing accuracy, latency, and scale

Flipboard

The API is linked to an AWS Lambda function, which implements and orchestrates the processing steps described earlier using a programming language of the users choice (such as Python) in a serverless manner. In this example implementation, where Amazon Bedrock is noted, the solution uses Anthropics Claude Haiku 3.

SQL 152
article thumbnail

Improving air quality with generative AI

AWS Machine Learning Blog

The solution harnesses the capabilities of generative AI, specifically Large Language Models (LLMs), to address the challenges posed by diverse sensor data and automatically generate Python functions based on various data formats. It generates a Python function to convert data frames to a common data format.

AWS 130