DAX: what is the difference between CALCULATE with and without FILTER?
In DAX I can write a condition directly as an argument of CALCULATE, or wrap it in FILTER. Both often return the same number. When do they differ, and which should I use?
Questions and answers among data and AI professionals
In DAX I can write a condition directly as an argument of CALCULATE, or wrap it in FILTER. Both often return the same number. When do they differ, and which should I use?
I run my application with Docker Compose on one server. People tell me to move to Kubernetes. What does Kubernetes add, and when is Compose enough?
PyTorch tutorials call model.eval() before validation and model.train() before training. What does this change, and is it the same thing as torch.no_grad()?
I scale my features before training a model. Should the scaler be fitted on the full dataset before splitting into training and test sets, or after the split?
I need to combine two pandas DataFrames on a common column, like a SQL join. I am not sure which how option to use, and after merging I sometimes end up with more rows than I…
I am starting with Apache Kafka and I am confused by topics, partitions, offsets and consumer groups. How do they fit together, and how many partitions should a topic have?
My pipelines exchange data as CSV files and I am advised to move to Parquet. What do I actually gain, and are there cases where Parquet is the wrong choice?
I am designing my first data warehouse and keep reading about fact tables and dimension tables in a star schema. How do I decide which data goes where?
Both GROUP BY and PARTITION BY split rows into groups before a calculation such as SUM or COUNT. I do not understand when to use one or the other, or why they return a different…
I have a table with several rows per customer and I need exactly one row per customer: the most recent order, with all of its columns. A plain GROUP BY only gives me the…
Je voudrais que MySQL renvoie directement le résultat d'une requête sous la forme d'un tableau JSON d'objets, pour le transmettre tel quel à une application, sans le reconstruire…
Mon script Python lit un fichier CSV de plusieurs gigaoctets avec pandas. Il s'arrête brutalement en affichant seulement « Killed », sans message d'erreur ni trace Python.
Ma table contient une ligne par mesure (produit, mois, montant). Pour un rapport, il me faut une ligne par produit et une colonne par mois. Comment faire ce pivot en SQL ?
Dans un Dockerfile, les instructions COPY et ADD semblent faire la même chose : placer des fichiers dans l'image. Laquelle faut-il utiliser ?
Mon application tourne dans un conteneur Docker et doit se connecter à une base de données installée directement sur la machine hôte. Avec localhost, la connexion est refusée.
On présente souvent Docker comme une « machine virtuelle légère ». Je voudrais comprendre ce qui distingue réellement un conteneur d'une machine virtuelle, et dans quels cas…
Mon assistant conversationnel perd tout l'historique à chaque redémarrage de l'application. Je voudrais enregistrer les messages d'une conversation et les recharger à la session…
Pour un même modèle de langage, on trouve souvent une version « base » et une version « instruct » ou « chat ». Je voudrais comprendre ce qui les distingue et laquelle utiliser…
J'ai du texte en mémoire, obtenu d'une API ou d'une base, et non un fichier. Les chargeurs de LangChain attendent des fichiers. Comment transformer directement une chaîne en…
Je démarre un projet d'application fondée sur un grand modèle de langage, avec interrogation de documents internes. LangChain et LlamaIndex reviennent sans cesse dans les…