'VSCode Docker container not connecting files
I'm using a container for Tensorflow-GPU environment to avoid the hassle of setting one manually and I was following this guide: https://code.visualstudio.com/docs/remote/containers
I've set up the container and installed the necessary extensions and then I try to run "Open Folder in a Container" command. It works fine but none of my files get linked to the new working area inside the docker.
I felt like it was saying that I should get access to all you existing files and folders for the project inside a container.
Is this not how this works? What are the normal way of linking project from the host system onto the docker?
EDIT: This is what I get when I open my container with none of my files present 
Solution 1:[1]
Here's one quick Python 3 solution for your DataFrame (assuming your table will be non-empty as a whole for using this code snippet)
# ... following your code up to df= padas.DataFrame() line
tags_ = []
for rowIndex in range(len(df[df.columns[0]])):
tag_ = ""
for col in df:
if col.startswith('a'):
try: tag_ += str(int(df[col][rowIndex]))
except: break
tags_.append(tag_)
df.insert(len(df.columns), "tag_", tags_)
Here, tags_ is just a list to store your string concatenated values per row until a numpy.nan is encountered (though code doesn't check for it specifically) The nested loops iterate through every row and column of your DataFrame, and non-empty DataFrame columns is required to assure the identification of rows in it, at the initial rowIndex for-loop.
df.insert(<location>, <column_name>, <values>) finally inserts the desired tag_ column as the ending column of your DataFrame.
Hopefully, it helps! Any corrections against it are most welcome.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Harshit Gupta |
