{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Run SQL queries on StackExchange Data Explorer" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from google.cloud import bigquery\n", "import pandas as pd\n", "import bs4" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# Create a client\n", "client = bigquery.Client(project='mlcore-418622')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## SELECT questions" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "# stackoverflow questions\n", "query = \"\"\"\n", " SELECT *\n", " FROM `bigquery-public-data.stackoverflow.posts_questions`\n", " LIMIT 10\n", "\"\"\"" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "# Run the query and wait for it to complete\n", "query_job = client.query(query)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "id: 73210679\n", "title: az acr login raises DOCKER_COMMAND_ERROR with message docker daemon not running\n", "body:

Windows 11 with wsl2 ubuntu-22.04.

\n", "

In Windows Terminal I open a PowerShell window and start wsl with command:

\n", "
wsl\n",
      "
\n", "

Then I start the docker daemon in this window with the following command:

\n", "
sudo dockerd\n",
      "
\n", "

It prompts for the admin password, which I enter and then it starts the daemon.

\n", "

Next I open a new PowerShell window in Windows Terminal, run wsl and run a container to verify everything is working. So far so good.

\n", "

Now I want to login to Azure Container Registry with the following command:

\n", "
az acr login -n {name_of_my_acr}\n",
      "
\n", "

This returns the following error:

\n", "
You may want to use 'az acr login -n {name_of_my_acr} --expose-token' to get an access token, \n",
      "which does not require Docker to be installed.\n",
      "An error occurred: DOCKER_COMMAND_ERROR\n",
      "error during connect: This error may indicate that the docker daemon is not running.: \n",
      "Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": \n",
      "open //./pipe/docker_engine: The system cannot find the file specified.\n",
      "
\n", "

The error suggests the daemon is not running, but since I can run a container I assume the deamon is running - otherwise I would not be able to run a container either, right? What can I do to narrow down or resolve this issue?

\n", "

Docker version info using docker -v command:

\n", "
Docker version 20.10.12, build 20.10.12-0ubuntu4\n",
      "
\n", "accepted_answer_id: 73247188\n", "answer_count: 1\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-02 16:16:31.810000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-05 09:00:14.693000+00:00\n", "last_edit_date: 2022-08-02 16:32:13.700000+00:00\n", "last_editor_display_name: None\n", "last_editor_user_id: 11226740\n", "owner_display_name: None\n", "owner_user_id: 11226740\n", "parent_id: None\n", "post_type_id: 1\n", "score: 0\n", "tags: azure-container-registry|docker-daemon\n", "view_count: 256\n", "\n", "id: 73284406\n", "title: Run Azure log query from the command line with Azure CLI (az monitor)\n", "body:

I am trying to get the Azure log query data from the CLI because we want to get the log message automatically.\n", "For example, when we want to get exceptions message, we will got to Azure log and run the query like this

\n", "

\"1\"

\n", "

However, in powershell, when I run az monitor log-analytics query -w 0000000000000 --analytics-query "exceptions"\n", "(000 is the workspace ID)
\n", "then I got an error message BadArgumentError: The request had some invalid properties.\n", "But I did not get the error message when I use Azure Dashboard.

\n", "

How would I modify my query? Or should I use a different function?

\n", "

Thanks in advance

\n", "accepted_answer_id: None\n", "answer_count: 2\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-08 21:53:16.703000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-10 04:49:20.527000+00:00\n", "last_edit_date: 2022-08-09 08:12:13.920000+00:00\n", "last_editor_display_name: None\n", "last_editor_user_id: 2395282\n", "owner_display_name: None\n", "owner_user_id: 19123691\n", "parent_id: None\n", "post_type_id: 1\n", "score: 0\n", "tags: azure|azure-devops|azure-application-insights|azure-log-analytics|azure-log-analytics-workspace\n", "view_count: 256\n", "\n", "id: 73250763\n", "title: Error CS0246: The type or namespace name 'StreamingContext' could not be found (are you missing a using directive or an assembly reference?)\n", "body:

I have these errors when trying to write this script for save and load in my game.

\n", "
\n", "

Assets\\Scripts\\Save System\\SaveData.cs(62,40): error CS0246: The type\n", "or namespace name 'StreamingContext' could not be found (are you\n", "missing a using directive or an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveData.cs(13,31): error CS0246: The type\n", "or namespace name 'PlaceableObjectData' could not be found (are you\n", "missing a using directive or an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveData.cs(61,6): error CS0246: The type\n", "or namespace name 'OnDeserializedAttribute' could not be found (are\n", "you missing a using directive or an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveData.cs(61,6): error CS0246: The type\n", "or namespace name 'OnDeserialized' could not be found (are you missing\n", "a using directive or an assembly reference?)

\n", "
\n", "

That is the script i'm working on:

\n", "
    using System;\n",
      "using System.Collections;\n",
      "using System.Collections.Generic;\n",
      "using UnityEngine;\n",
      "using System.Runtime.Serialization;\n",
      "\n",
      "\n",
      "[Serializable]\n",
      "\n",
      "public class SaveData\n",
      "{\n",
      "    public static int IdCount;\n",
      "\n",
      "    public Dictionary<string, PlaceableObjectsData> placeableObjectDatas =\n",
      "        new Dictionary<string, PlaceableObjectsData>();\n",
      "\n",
      "    public static string GenerateId()\n",
      "    {\n",
      "        IdCount++;\n",
      "        return IdCount.ToString();\n",
      "\n",
      "    }\n",
      "\n",
      "     public void AddData(Data data)\n",
      "    {\n",
      "        if (data is placeableObjectDatas plObjData)\n",
      "\n",
      "        {\n",
      "\n",
      "            if (placeableObjectDatas.ContainsKey(plObjData.ID))\n",
      "        {\n",
      "            placeableObjectDatas[plObjData.ID] = plObjData;\n",
      "\n",
      "        }\n",
      "        else\n",
      "        \n",
      "        {\n",
      "            placeableObjectDatas.Add(plObjData.ID, plObjData);\n",
      "        }\n",
      "\n",
      "        }\n",
      "\n",
      "   }\n",
      "\n",
      "      public void RemoveData(Data data)\n",
      "       {\n",
      "\n",
      "        if (data is placeableObjectDatas plObjData)\n",
      "\n",
      "        {\n",
      "\n",
      "            if (placeableObjectDatas.ContainsKey(plObjData.ID))\n",
      "            {\n",
      "                placeableObjectDatas.Remove(plObjData.ID);\n",
      "\n",
      "            }\n",
      "\n",
      "        }\n",
      "\n",
      "    }\n",
      "\n",
      "    [OnDeserialized]\n",
      "    internal void OnDeserializedMethod(StreamingContext context)\n",
      "    {\n",
      "    placeableObjectDatas ??= new Dictionary<string, PlaceableObjectsData>();\n",
      "\n",
      "    }\n",
      "\n",
      "}\n",
      "
\n", "

EDIT:

\n", "

This is the script for PlaceableObjectData:

\n", "
using System;\n",
      "using UnityEngine;\n",
      "\n",
      "\n",
      "\n",
      "public class PlaceableObjectsData : Data\n",
      "{\n",
      "    public string assetName;\n",
      "    public Vector3 position;\n",
      "}\n",
      "
\n", "

EDIT 2

\n", "
\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(17,13): error CS0103: The\n", "name 'Directory' does not exist in the current context

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(20,13): error CS0103: The\n", "name 'Directory' does not exist in the current context

\n", "

Assets\\Scripts\\Save System\\SaveData.cs(26,21): error CS0246: The type\n", "or namespace name 'placeableObjectDatas' could not be found (are you\n", "missing a using directive or an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(31,28): error CS0246: The\n", "type or namespace name 'JsonSerializerSettings' could not be found\n", "(are you missing a using directive or an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(32,42): error CS0103: The\n", "name 'ReferenceLoopHandling' does not exist in the current context

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(34,29): error CS0103: The\n", "name 'JsonConvert' does not exist in the current context

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(36,19): error CS1061:\n", "'string' does not contain a definition for 'WriteAllText' and no\n", "accessible extension method 'WriteAllText' accepting a first argument\n", "of type 'string' could be found (are you missing a using directive or\n", "an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveData.cs(48,21): error CS0246: The type\n", "or namespace name 'placeableObjectDatas' could not be found (are you\n", "missing a using directive or an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(42,22): error CS1061:\n", "'string' does not contain a definition for 'Exists' and no accessible\n", "extension method 'Exists' accepting a first argument of type 'string'\n", "could be found (are you missing a using directive or an assembly\n", "reference?)

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(45,42): error CS1061:\n", "'string' does not contain a definition for 'ReadAllText' and no\n", "accessible extension method 'ReadAllText' accepting a first argument\n", "of type 'string' could be found (are you missing a using directive or\n", "an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(47,13): error CS0246: The\n", "type or namespace name 'saveData' could not be found (are you missing\n", "a using directive or an assembly reference?)

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(47,31): error CS0103: The\n", "name 'JsonConvert' does not exist in the current context

\n", "

Assets\\Scripts\\Save System\\SaveSystem.cs(47,61): error CS0246: The\n", "type or namespace name 'saveData' could not be found (are you missing\n", "a using directive or an assembly reference?)

\n", "
\n", "accepted_answer_id: 73251390\n", "answer_count: 1\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-05 13:43:25.850000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-05 16:40:00.610000+00:00\n", "last_edit_date: 2022-08-05 16:40:00.610000+00:00\n", "last_editor_display_name: None\n", "last_editor_user_id: 17654458\n", "owner_display_name: None\n", "owner_user_id: 17654458\n", "parent_id: None\n", "post_type_id: 1\n", "score: 3\n", "tags: c#|unity3d\n", "view_count: 512\n", "\n", "id: 73406942\n", "title: Google workspace account has been suspended with no recovery method\n", "body:

Many years ago I set up my domain so Google would manage my domain's email. Today, possibly because I was accessing from another state, Google decides to suspend the service:

\n", "
\n", "

Your organization's Google workspace account has been suspended. Please contact your Google workspace organization administrator to re-activate your organization.

\n", "
\n", "

So since I'm the administrator, I try to logon with those credentials, which are correct, but they challenge me, and want me to complete an email loop, but the recovery email is in the locked domain!

\n", "

There seems to be no way to get this fixed. There's some code they can send me that I'm supposed to put my domain's server to prove I'm legit, but Google controls that...I have nothing on the domain except email. I'm paying Hover as the registrar.

\n", "

Any way out?

\n", "

I appreciate "Only Google can help", but there's no path forward. No phone number, no button to "open a ticket", no live chat. If you can't log on as administrator, none of that is available. How would a superuser get through on a problem like this?

\n", "

There is a page that says:

\n", "
\n", "

To get phone, chat, or email support for your legacy free account at xxxxxxx.com, you need to upgrade to Google Workspace.

\n", "
\n", "
\n", "

To continue, switch to an administrator account. This will open the Google Admin console.

\n", "
\n", "

https://support.google.com/a

\n", "

But I can't log in as administrator to upgrade my account so I can get support because when I log in with correct credentials, they send a challenge to an email address that's in the locked domain!

\n", "

I can't be the only one this happened to, so figure they're just hiding the path to victory so they don't have to answer too many phone calls. This page might be as close as I've gotten: https://support.google.com/a/answer/6335621

\n", "

When I try to open a support case under my non-admin account, it says

\n", "
\n", "

You do not have permission to create support cases.

\n", "
\n", "

I found a form to fill out: https://support.google.com/accounts/contact/disabled2

\n", "

The above form accepts any email address, so you enter any email address that you currently have access to (not one that is locked, obviously).

\n", "

But matter what I do, they want me to prove my identity by adding something to my domain. I've asked Hover how to do this, but have not received a response yet.

\n", "

Here's the email Google sent

\n", "
\n", "

Your action is required in order for us to assist with your request.

\n", "
\n", "
\n", "

We were unable to verify the DNS ownership of Google Workspace Account sengsational.com. Please follow the instructions below to verify domain ownership.

\n", "
\n", "
\n", "

The following instructions outline the DNS record (CNAME or TXT) to add to your domain settings. Learn more

\n", "
\n", "
Via CNAME (preferred):\n",
      "    Label/Host: [eight digit number removed]\n",
      "    Destination/Target: google.com\n",
      "    Time to live (TTL): 3600 seconds / 60 minutes / 1 Hour\n",
      "\n",
      "For more information on how to create a CNAME record, please refer to the article Add a CNAME record to your domain's DNS records. If you need assistance creating the CNAME record, please contact your hosting provider for support.\n",
      "\n",
      "You can verify your CNAME record here.\n",
      "\n",
      "Via TXT:\n",
      "    Label/Host: enter @ or leave it blank\n",
      "    Value/Destination: google-gws-recovery-domain-verification=[eight digit number]\n",
      "    Time to live (TTL): 3600 seconds / 60 minutes / 1 Hour\n",
      "\n",
      "For more information on how to create a TXT record, please refer to the article Verify your domain with a TXT record . If you need assistance creating the TXT record, please contact your hosting provider for support.\n",
      "\n",
      "You can verify your TXT record here.\n",
      "
\n", "
\n", "

Note: Updates to DNS records may take 24-48 hours to propagate across the entire internet.\n", "In order for us to help you with the sign-up process, please follow this link and submit your request.\n", "Best regards,\n", "Google Workspace Support

\n", "
\n", "accepted_answer_id: 73419827\n", "answer_count: 1\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-18 17:05:12.950000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-19 16:43:13.243000+00:00\n", "last_edit_date: 2022-08-19 16:43:13.243000+00:00\n", "last_editor_display_name: None\n", "last_editor_user_id: 897007\n", "owner_display_name: None\n", "owner_user_id: 897007\n", "parent_id: None\n", "post_type_id: 1\n", "score: 0\n", "tags: google-workspace\n", "view_count: 512\n", "\n", "id: 73200968\n", "title: Mac Unity package manager error resolving packages: one or more packages could not be added to local file system\n", "body:

I use unity 2021.3.7f1, I was creating a new game on unity hub when i got this error message:\n", "one or more packages could not be added to local file system com.unity.collab-proxy: ENOENT no such file or directory

\n", "accepted_answer_id: None\n", "answer_count: 1\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-02 01:00:36.200000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-17 00:40:54.303000+00:00\n", "last_edit_date: None\n", "last_editor_display_name: None\n", "last_editor_user_id: None\n", "owner_display_name: None\n", "owner_user_id: 19502695\n", "parent_id: None\n", "post_type_id: 1\n", "score: 0\n", "tags: unity3d\n", "view_count: 257\n", "\n", "id: 73210586\n", "title: Get list of all compartments in OCI Tenancy\n", "body:

I am trying to get the list of all compartments (including child compartments) in OCI Tenancy using Python SDK.

\n", "

But the below OCI API does not give the root compartment details.

\n", "

Is there a way to get root compartment details via any API directly?

\n", "

Below is my code:

\n", "
import oci\n",
      "from oci.config import from_file\n",
      "from oci.signer import Signer\n",
      "\n",
      "config = from_file()\n",
      "\n",
      "COMPARTMENT_ID="ocid1.tenancy.oc1..a"\n",
      "\n",
      "identity_client = oci.identity.IdentityClient(config)\n",
      "\n",
      "list_compartments_response = identity_client.list_compartments(\n",
      "    compartment_id=COMPARTMENT_ID,\n",
      "    compartment_id_in_subtree=True)\n",
      "\n",
      "compartmentlist = list_compartments_response.data\n",
      "
\n", "

compartmentlist dict does not contain the root compartment details.

\n", "

Please help.

\n", "

Edit 1:

\n", "

COMPARTMENT_ID given above in the code is the root compartment ID. I need the details of even this root compartment in the final response of API.

\n", "accepted_answer_id: 73211582\n", "answer_count: 1\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-02 16:07:41.327000+00:00\n", "favorite_count: 1\n", "last_activity_date: 2022-08-02 17:38:46.370000+00:00\n", "last_edit_date: 2022-08-02 16:13:57.297000+00:00\n", "last_editor_display_name: None\n", "last_editor_user_id: 19675989\n", "owner_display_name: None\n", "owner_user_id: 19675989\n", "parent_id: None\n", "post_type_id: 1\n", "score: 2\n", "tags: oracle-cloud-infrastructure|oci-python-sdk\n", "view_count: 257\n", "\n", "id: 73241368\n", "title: VSCode Meaning of : ptyhost warning Shell integration cannot be enabled for executable\n", "body:

In VSCode I connect from Windows to Ubuntu via the Remote SSH extension. I can open the VSCode Terminal window for 'bash' and I get to shell in the remote server.

\n", "

But this message shows in the Log for Remote Pty Host:
\n", "[ptyhost] [warning] Shell integration cannot be enabled for executable "/bin/sh" and args ...

\n", "

The args for /bin/sh have a script for wget and fallback to curl to call :
\n", "--header='Metadata-Flavor:Google' http://metadata.google.internal/computeMetadata/v1/instance/id

\n", "

While I don't normally use tmux, I can open that and get to shell as well. But the log shows the same warning:\n", "for executable "/usr/bin/tmux" and args undefined.

\n", "

Bottom line: bash and tmux are working but I'm curious about the warnings, as I'm struggling with other issues related to VSCode and Remote SSH.

\n", "

What are these ptyhost errors?
\n", "What are they telling us?
\n", "What should we do to fix the problem being reported?
\n", "Might this affect other operations from VSCode?

\n", "accepted_answer_id: None\n", "answer_count: 0\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-04 19:30:47.050000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-04 19:30:47.050000+00:00\n", "last_edit_date: None\n", "last_editor_display_name: None\n", "last_editor_user_id: None\n", "owner_display_name: None\n", "owner_user_id: 190955\n", "parent_id: None\n", "post_type_id: 1\n", "score: 0\n", "tags: visual-studio-code|pty|vscode-remote-ssh\n", "view_count: 257\n", "\n", "id: 73276629\n", "title: How to preload library with ld_preload to wine(windows game)?\n", "body:

I want to learn how to preload and hook functions in wine running windows apps.\n", "I'm trying to preload a library with ld_preload to wine(windows game(32-bit)) on Arch Linux (64-bit but I think I installed 32-bit support). I get the error wrong ELF class: ELFCLASS32 and the same for ELFCLASS64.

\n", "

Full error text:

\n", "
\n", "

"ERROR: ld.so: object './eve.so' from LD_PRELOAD cannot be preloaded\n", "(wrong ELF class: ELFCLASS32): ignored."

\n", "
\n", "

the same for 64bit and another one

\n", "
\n", "

ERROR: ld.so: object './eve.so' from LD_PRELOAD cannot be preloaded\n", "(cannot open shared object file): ignored.

\n", "
\n", "

How am I getting "wrong class" when I have both 32 and 64-bit installed? What architecture do I need to make it work right?

\n", "

Wow.exe:

\n", "
\n", "

Wow.exe: PE32 executable (GUI) Intel 80386, for MS Windows

\n", "
\n", "

I tried to build with and without the -m32 flag ( I changed all uint32 to uint64):

\n", "
gcc -std=c99 -Wall -Werror -m32 -O0 -fpic -shared -ldl -lGL -o eve.so eve.c\n",
      "
\n", "

I saw this answer:

\n", "
\n", "

ltrace /lib/ld-linux.so.2 --preload /path/to/lib/strcmp.so ./exec

\n", "
\n", "

But don't know how to run it with wine running the app.

\n", "

I want to learn how to preload and hook functions in wine running windows apps. I saw this guide:\n", "https://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-memory-editing/276206-linux-simple-injection-ld_preload.html

\n", "accepted_answer_id: None\n", "answer_count: 1\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-08 10:43:51.060000+00:00\n", "favorite_count: 1\n", "last_activity_date: 2022-08-18 05:14:00.740000+00:00\n", "last_edit_date: 2022-08-18 05:14:00.740000+00:00\n", "last_editor_display_name: None\n", "last_editor_user_id: 1888143\n", "owner_display_name: None\n", "owner_user_id: 1888143\n", "parent_id: None\n", "post_type_id: 1\n", "score: 3\n", "tags: c|hook|ld|wine|ld-preload\n", "view_count: 257\n", "\n", "id: 73321062\n", "title: How to install specific SDK (I need 6.0.300)\n", "body:

I'm running WSL-Ubuntu 20.04 on windows and need to have dotnet 6.0.300.

\n", "

I have 5.0.480 and 6.0.400 installed, but I can't figure out how to get the specific one (dotnet 6.0.300).

\n", "accepted_answer_id: None\n", "answer_count: 1\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-11 12:58:42.827000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-11 22:04:07.210000+00:00\n", "last_edit_date: None\n", "last_editor_display_name: None\n", "last_editor_user_id: None\n", "owner_display_name: None\n", "owner_user_id: 19312689\n", "parent_id: None\n", "post_type_id: 1\n", "score: 0\n", "tags: .net|sdk|windows-subsystem-for-linux\n", "view_count: 257\n", "\n", "id: 73199602\n", "title: Need a way to hide soft keyboard in MAUI's Editor / Entry fields\n", "body:

I found what seems to be useful in this link:

\n", "

A Keyboard disabled Entry control in Xamarin Forms

\n", "

But it seems that it only works in Xamarin Forms. I even used it in my MAUI app, but it simply has no effect !

\n", "

The reason I am looking to do this is because I want to enable focus on the Editor field but without triggering the soft keyboard (for a barcode scanner field)

\n", "

Thanks.

\n", "accepted_answer_id: None\n", "answer_count: 3\n", "comment_count: 0\n", "community_owned_date: None\n", "creation_date: 2022-08-01 21:04:19.373000+00:00\n", "favorite_count: None\n", "last_activity_date: 2022-08-22 12:05:35.783000+00:00\n", "last_edit_date: None\n", "last_editor_display_name: None\n", "last_editor_user_id: None\n", "owner_display_name: None\n", "owner_user_id: 10420838\n", "parent_id: None\n", "post_type_id: 1\n", "score: 2\n", "tags: maui|.net-maui\n", "view_count: 513\n", "\n" ] } ], "source": [ "# Iterate over the results and print them\n", "for row in query_job:\n", " # print(f\"{row.name}: {row}\")\n", " for k, v in row.items():\n", " print(f\"{k}: {v}\")\n", " print()\n", " " ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "df = query_job.to_dataframe()" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Index(['id', 'title', 'body', 'accepted_answer_id', 'answer_count',\n", " 'comment_count', 'community_owned_date', 'creation_date',\n", " 'favorite_count', 'last_activity_date', 'last_edit_date',\n", " 'last_editor_display_name', 'last_editor_user_id', 'owner_display_name',\n", " 'owner_user_id', 'parent_id', 'post_type_id', 'score', 'tags',\n", " 'view_count'],\n", " dtype='object')" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.columns" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idtitlebodyaccepted_answer_idanswer_countcomment_countcommunity_owned_datecreation_datefavorite_countlast_activity_datelast_edit_datelast_editor_display_namelast_editor_user_idowner_display_nameowner_user_idparent_idpost_type_idscoretagsview_count
073210679az acr login raises DOCKER_COMMAND_ERROR with ...<p>Windows 11 with wsl2 ubuntu-22.04.</p>\\n<p>...73247188.010None2022-08-02 16:16:31.810000+00:00NaN2022-08-05 09:00:14.693000+00:002022-08-02 16:32:13.700000+00:00None11226740.0None11226740None10azure-container-registry|docker-daemon256
173284406Run Azure log query from the command line with...<p>I am trying to get the Azure log query data...NaN20None2022-08-08 21:53:16.703000+00:00NaN2022-08-10 04:49:20.527000+00:002022-08-09 08:12:13.920000+00:00None2395282.0None19123691None10azure|azure-devops|azure-application-insights|...256
273250763Error CS0246: The type or namespace name 'Stre...<p>I have these errors when trying to write th...73251390.010None2022-08-05 13:43:25.850000+00:00NaN2022-08-05 16:40:00.610000+00:002022-08-05 16:40:00.610000+00:00None17654458.0None17654458None13c#|unity3d512
373406942Google workspace account has been suspended wi...<p>Many years ago I set up my domain so Google...73419827.010None2022-08-18 17:05:12.950000+00:00NaN2022-08-19 16:43:13.243000+00:002022-08-19 16:43:13.243000+00:00None897007.0None897007None10google-workspace512
473200968Mac Unity package manager error resolving pack...<p>I use unity 2021.3.7f1, I was creating a ne...NaN10None2022-08-02 01:00:36.200000+00:00NaN2022-08-17 00:40:54.303000+00:00NaTNoneNaNNone19502695None10unity3d257
573210586Get list of all compartments in OCI Tenancy<p>I am trying to get the list of all <code>co...73211582.010None2022-08-02 16:07:41.327000+00:001.02022-08-02 17:38:46.370000+00:002022-08-02 16:13:57.297000+00:00None19675989.0None19675989None12oracle-cloud-infrastructure|oci-python-sdk257
673241368VSCode Meaning of : ptyhost warning Shell inte...<p>In VSCode I connect from Windows to Ubuntu ...NaN00None2022-08-04 19:30:47.050000+00:00NaN2022-08-04 19:30:47.050000+00:00NaTNoneNaNNone190955None10visual-studio-code|pty|vscode-remote-ssh257
773276629How to preload library with ld_preload to wine...<p>I want to learn how to preload and hook fun...NaN10None2022-08-08 10:43:51.060000+00:001.02022-08-18 05:14:00.740000+00:002022-08-18 05:14:00.740000+00:00None1888143.0None1888143None13c|hook|ld|wine|ld-preload257
873321062How to install specific SDK (I need 6.0.300)<p>I'm running WSL-Ubuntu 20.04 on windows and...NaN10None2022-08-11 12:58:42.827000+00:00NaN2022-08-11 22:04:07.210000+00:00NaTNoneNaNNone19312689None10.net|sdk|windows-subsystem-for-linux257
973199602Need a way to hide soft keyboard in MAUI's Edi...<p>I found what seems to be useful in this lin...NaN30None2022-08-01 21:04:19.373000+00:00NaN2022-08-22 12:05:35.783000+00:00NaTNoneNaNNone10420838None12maui|.net-maui513
\n", "
" ], "text/plain": [ " id title \\\n", "0 73210679 az acr login raises DOCKER_COMMAND_ERROR with ... \n", "1 73284406 Run Azure log query from the command line with... \n", "2 73250763 Error CS0246: The type or namespace name 'Stre... \n", "3 73406942 Google workspace account has been suspended wi... \n", "4 73200968 Mac Unity package manager error resolving pack... \n", "5 73210586 Get list of all compartments in OCI Tenancy \n", "6 73241368 VSCode Meaning of : ptyhost warning Shell inte... \n", "7 73276629 How to preload library with ld_preload to wine... \n", "8 73321062 How to install specific SDK (I need 6.0.300) \n", "9 73199602 Need a way to hide soft keyboard in MAUI's Edi... \n", "\n", " body accepted_answer_id \\\n", "0

Windows 11 with wsl2 ubuntu-22.04.

\\n

... 73247188.0 \n", "1

I am trying to get the Azure log query data... NaN \n", "2

I have these errors when trying to write th... 73251390.0 \n", "3

Many years ago I set up my domain so Google... 73419827.0 \n", "4

I use unity 2021.3.7f1, I was creating a ne... NaN \n", "5

I am trying to get the list of all co... 73211582.0 \n", "6

In VSCode I connect from Windows to Ubuntu ... NaN \n", "7

I want to learn how to preload and hook fun... NaN \n", "8

I'm running WSL-Ubuntu 20.04 on windows and... NaN \n", "9

I found what seems to be useful in this lin... NaN \n", "\n", " answer_count comment_count community_owned_date \\\n", "0 1 0 None \n", "1 2 0 None \n", "2 1 0 None \n", "3 1 0 None \n", "4 1 0 None \n", "5 1 0 None \n", "6 0 0 None \n", "7 1 0 None \n", "8 1 0 None \n", "9 3 0 None \n", "\n", " creation_date favorite_count \\\n", "0 2022-08-02 16:16:31.810000+00:00 NaN \n", "1 2022-08-08 21:53:16.703000+00:00 NaN \n", "2 2022-08-05 13:43:25.850000+00:00 NaN \n", "3 2022-08-18 17:05:12.950000+00:00 NaN \n", "4 2022-08-02 01:00:36.200000+00:00 NaN \n", "5 2022-08-02 16:07:41.327000+00:00 1.0 \n", "6 2022-08-04 19:30:47.050000+00:00 NaN \n", "7 2022-08-08 10:43:51.060000+00:00 1.0 \n", "8 2022-08-11 12:58:42.827000+00:00 NaN \n", "9 2022-08-01 21:04:19.373000+00:00 NaN \n", "\n", " last_activity_date last_edit_date \\\n", "0 2022-08-05 09:00:14.693000+00:00 2022-08-02 16:32:13.700000+00:00 \n", "1 2022-08-10 04:49:20.527000+00:00 2022-08-09 08:12:13.920000+00:00 \n", "2 2022-08-05 16:40:00.610000+00:00 2022-08-05 16:40:00.610000+00:00 \n", "3 2022-08-19 16:43:13.243000+00:00 2022-08-19 16:43:13.243000+00:00 \n", "4 2022-08-17 00:40:54.303000+00:00 NaT \n", "5 2022-08-02 17:38:46.370000+00:00 2022-08-02 16:13:57.297000+00:00 \n", "6 2022-08-04 19:30:47.050000+00:00 NaT \n", "7 2022-08-18 05:14:00.740000+00:00 2022-08-18 05:14:00.740000+00:00 \n", "8 2022-08-11 22:04:07.210000+00:00 NaT \n", "9 2022-08-22 12:05:35.783000+00:00 NaT \n", "\n", " last_editor_display_name last_editor_user_id owner_display_name \\\n", "0 None 11226740.0 None \n", "1 None 2395282.0 None \n", "2 None 17654458.0 None \n", "3 None 897007.0 None \n", "4 None NaN None \n", "5 None 19675989.0 None \n", "6 None NaN None \n", "7 None 1888143.0 None \n", "8 None NaN None \n", "9 None NaN None \n", "\n", " owner_user_id parent_id post_type_id score \\\n", "0 11226740 None 1 0 \n", "1 19123691 None 1 0 \n", "2 17654458 None 1 3 \n", "3 897007 None 1 0 \n", "4 19502695 None 1 0 \n", "5 19675989 None 1 2 \n", "6 190955 None 1 0 \n", "7 1888143 None 1 3 \n", "8 19312689 None 1 0 \n", "9 10420838 None 1 2 \n", "\n", " tags view_count \n", "0 azure-container-registry|docker-daemon 256 \n", "1 azure|azure-devops|azure-application-insights|... 256 \n", "2 c#|unity3d 512 \n", "3 google-workspace 512 \n", "4 unity3d 257 \n", "5 oracle-cloud-infrastructure|oci-python-sdk 257 \n", "6 visual-studio-code|pty|vscode-remote-ssh 257 \n", "7 c|hook|ld|wine|ld-preload 257 \n", "8 .net|sdk|windows-subsystem-for-linux 257 \n", "9 maui|.net-maui 513 " ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Count questions" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "# write a sql query that counts the number of rows in the stackoverflow posts_questions table\n", "query = \"\"\"\n", " SELECT COUNT(*)\n", " FROM `bigquery-public-data.stackoverflow.posts_questions`\n", "\"\"\"" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "query_job = client.query(query)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "

\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
f0_
023020127
\n", "
" ], "text/plain": [ " f0_\n", "0 23020127" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "query_job.to_dataframe()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Pattern matching answers" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "query = \"\"\"\n", " SELECT *\n", " FROM `bigquery-public-data.stackoverflow.posts_answers`\n", " WHERE post_type_id = 2\n", " AND BODY LIKE '%arxiv%'\n", " LIMIT 1000\n", "\"\"\"" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "query_job = client.query(query)" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
idtitlebodyaccepted_answer_idanswer_countcomment_countcommunity_owned_datecreation_datefavorite_countlast_activity_datelast_edit_datelast_editor_display_namelast_editor_user_idowner_display_nameowner_user_idparent_idpost_type_idscoretagsview_count
04635560None<p>Asking the question in such a general way d...NoneNone0NaT2011-01-08 18:54:26.003000+00:00None2011-01-09 09:22:47.240000+00:002011-01-09 09:22:47.240000+00:00None487781.0None487781.0463525425NoneNone
14509603None<p>You're right to point out that the adjacenc...NoneNone1NaT2010-12-22 13:25:12.920000+00:00None2010-12-22 13:25:12.920000+00:00NaTNoneNaNNone68063.0450927025NoneNone
24617053None<p>There's a paper titled <a href=\"http://arxi...NoneNone1NaT2011-01-06 16:17:47.360000+00:00None2011-01-06 16:17:47.360000+00:00NaTNoneNaNNone260307.0460025828NoneNone
34988447None<p>Is this the type of thing you are looking f...NoneNone3NaT2011-02-14 02:51:38+00:00None2011-02-14 03:02:24.360000+00:002011-02-14 03:02:24.360000+00:00None421225.0None421225.0498832322NoneNone
42230377None<p>This debate has been going on in almost any...NoneNone0NaT2010-02-09 15:55:20.837000+00:00None2010-02-09 15:55:20.837000+00:00NaTNoneNaNNone149637.0223003221NoneNone
...............................................................
99548550118None<p>The max-over-time pooling is usually applie...NoneNone3NaT2018-01-31 19:36:05.203000+00:00None2018-01-31 19:36:05.203000+00:00NaTNoneNaNNone712995.048549670216NoneNone
99648612144None<p>In order to guarantee that no party in the ...NoneNone4NaT2018-02-04 19:27:50.137000+00:00None2018-02-04 19:27:50.137000+00:00NaTNoneNaNNone104014.04861123823NoneNone
99748306714None<h2>Dynamic placeholders</h2>\\n\\n<p>Tensorflow...NoneNone5NaT2018-01-17 17:24:03.947000+00:00None2018-01-17 17:24:03.947000+00:00NaTNoneNaNNone712995.04823003129NoneNone
99848230654None<p>I've created a <a href=\"https://gist.github...NoneNone5NaT2018-01-12 16:51:22.010000+00:00None2021-07-04 07:48:48.543000+00:002021-07-04 07:48:48.543000+00:00None6548106.0None712995.042064690244NoneNone
99948436520None<p>You might be interested in my paper <a href...NoneNone7NaT2018-01-25 05:58:05.390000+00:00None2018-02-06 05:43:02.820000+00:002018-02-06 05:43:02.820000+00:00None562769.0None562769.043377265222NoneNone
\n", "

1000 rows × 20 columns

\n", "
" ], "text/plain": [ " id title body \\\n", "0 4635560 None

Asking the question in such a general way d... \n", "1 4509603 None

You're right to point out that the adjacenc... \n", "2 4617053 None

There's a paper titled Is this the type of thing you are looking f... \n", "4 2230377 None

This debate has been going on in almost any... \n", ".. ... ... ... \n", "995 48550118 None

The max-over-time pooling is usually applie... \n", "996 48612144 None

In order to guarantee that no party in the ... \n", "997 48306714 None

Dynamic placeholders

\\n\\n

Tensorflow... \n", "998 48230654 None

I've created a You might be interested in my paper \n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
a_ida_titlea_bodya_accepted_answer_ida_answer_counta_comment_counta_community_owned_datea_creation_datea_favorite_counta_last_activity_date...q_last_edit_dateq_last_editor_display_nameq_last_editor_user_idq_owner_display_nameq_owner_user_idq_parent_idq_post_type_idq_scoreq_tagsq_view_count
066070459None<p><strong>I could be wrong,</strong> it shoul...NoneNone0NaT2021-02-05 20:56:20.433000+00:00None2021-02-05 21:27:39.437000+00:00...NaTNoneNaNNone13296138.0None13python|keras|softmax338
113017935None<p>Daniel Lemire has a couple of papers on pre...NoneNone0NaT2012-10-22 18:59:16.480000+00:00None2013-02-12 22:35:03.423000+00:00...NaTNoneNaNNone1327118.0None10c++|database|performance|compression|bit-manip...651
264773818None<p>Many people use &quot;Doc2Vec&quot; to refe...NoneNone2NaT2020-11-10 17:32:04.837000+00:00None2020-11-11 20:12:59.113000+00:00...2020-11-21 08:27:51.943000+00:00None3025856.0None14613675.0None10r|word2vec|doc2vec492
343505854None<p>A way to get around this without rooting th...NoneNone0NaT2017-04-19 20:53:29.257000+00:00None2017-04-19 20:53:29.257000+00:00...2016-04-27 10:52:02.297000+00:00None5946474.0None5946474.0None14android|ip|ipv6|wifi-direct|wifip2p1785
448436520None<p>You might be interested in my paper <a href...NoneNone7NaT2018-01-25 05:58:05.390000+00:00None2018-02-06 05:43:02.820000+00:00...2017-11-29 08:27:32.963000+00:00None4099593.0None4573703.0None122python|scikit-learn|nlp|nltk50259
..................................................................
327937066615None<p>A possible way to go about this is to assig...NoneNone6NaT2016-05-06 07:22:53.190000+00:00None2016-05-06 07:35:19.467000+00:00...2016-05-05 04:28:22.140000+00:00None555493.0None555493.0None11algorithm|machine-learning|nlp|artificial-inte...122
328031859670None<p>A natural question here is to ask: for any ...NoneNone0NaT2015-08-06 15:20:58.687000+00:00None2015-08-06 15:20:58.687000+00:00...2012-09-05 09:40:17.337000+00:00None836485.0None836485.0None12algorithm2537
328139320149None<p>For C, please check out Annex G in C99 or C...NoneNone3NaT2016-09-04 18:23:51.087000+00:00None2016-09-04 18:28:52.773000+00:00...2016-09-04 16:36:36.097000+00:00None1739884.0None1739884.0None13math|floating-point|ieee-754|complex-numbers888
328242532658None<h2>How can I fight overfitting?</h2>\\n\\n<ul>\\...NoneNone0NaT2017-03-01 13:08:45.890000+00:00None2018-04-17 08:37:37.410000+00:00...NaTNoneNaNNone6095189.0None116tensorflow|conv-neural-network20371
328355106542None<p>Some modes of the \"Paragraph Vector\" algori...NoneNone0NaT2019-03-11 16:41:34.360000+00:00None2019-03-11 16:41:34.360000+00:00...NaTNoneNaNNone11180395.0None11vector|nlp|word2vec|doc2vec506
\n", "

3284 rows × 40 columns

\n", "" ], "text/plain": [ " a_id a_title a_body \\\n", "0 66070459 None

I could be wrong, it shoul... \n", "1 13017935 None

Daniel Lemire has a couple of papers on pre... \n", "2 64773818 None

Many people use "Doc2Vec" to refe... \n", "3 43505854 None

A way to get around this without rooting th... \n", "4 48436520 None

You might be interested in my paper A possible way to go about this is to assig... \n", "3280 31859670 None

A natural question here is to ask: for any ... \n", "3281 39320149 None

For C, please check out Annex G in C99 or C... \n", "3282 42532658 None

How can I fight overfitting?

\\n\\n