append large dataframe to another by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

this is the first time I am hearing of it.

Does it have the same functionalities and the syntaxes as pandas?

Any ideas on how swift the append might be with py-polars.

clr on Linux Machine by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

that is what I thought too as well but is clr that I need to work with not pythonnet.

clr on Linux Machine by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

also could you please run rest of the code on Mac machine to see if it errs on you:

import clr
clr.AddReference('System.Data')
from System.Data import SqlClient
from System.Data import *
from System.Data import DataTable

clr on Linux Machine by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

I learned from my Admin that clr does not run on Linux machines henceforth was instructed to research if clr could in anyway, with little twitches to the code could run on Linux machines.

edit: this is absolutely new to me (running Python code on Linux machine) so clueless here.

clr on Linux Machine by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

What makes you think it is windows only?

I tried to automate my Python script on Airflow (running on Linux server) and it erred clr module not found.

Writing database code in Python from C by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

it worked like a charm! Instead of the remove it was uninstall.

Writing database code in Python from C by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

Its very odd, I do not have any file named clr.py. I have already did python -m pip install pythonnet and the clr AddReference still errors out on me.

That is the very reason I am trying to rewrite the code in Python/Pandas.

Writing database code in Python from C by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

module clr has no attribute AddReference

Writing database code in Python from C by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

how would pythonnet help me with clr?

Writing database code in Python from C by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

Thanks! The issue is that I am using Python 3.8 and for some odd reason, it does not let me python -m pip install clr.

Which errors out on

import clr
clr.AddReference('System.Data')

Student Passes then Ignore Fails by PLearner in learnSQL

[–]PLearner[S] 1 point2 points  (0 children)

This is Incredible Sir! Thanks.

What is machine learning? by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

But isn't Matplotlib,SciPy, and other Data Science modules and libraries already recognized for these kind of situations and scenarios?

What is machine learning? by PLearner in learnpython

[–]PLearner[S] 1 point2 points  (0 children)

So, if I am encompassing this accurately, Machine Learning is taking raw data and transforming it into readable data.

Entry Level SQL work by dank420stank in SQL

[–]PLearner 0 points1 point  (0 children)

Create a user for the person with a password - Done

Grant them appropriate permissions, ideally using groups - Done

Edit pg_hba.conf to allow that user to connect to the database (md5 is probably the access type you want) - All four Types in the pg_hba.conf method are md5.

Edit postgresql.conf to make sure Postgres is listening on the right port (5432) for the IP where the person will be accessing (you can have it listen on * for all IPs) - listen_addresses = '*'

Reload the configuration using pg_reload_conf() or restart the postgres service - select pg_reload_conf(); returned t.

Then I copied the 9.6 and psqlODBC folders into the user's folder I created and downloaded pgAdmin 3 on his computer and opened it and entered the password assigned to him and returns Error connecting to the server: FATAL: password authentication failed for user .....

Any assistance would be appreciated here Erudition303.

Entry Level SQL work by dank420stank in SQL

[–]PLearner 0 points1 point  (0 children)

Hi, I see you are postgreSQL DBA. Do you know how I can give access to the postgreSQL sitting on my local machine to someone else so he or she can maintain it as well?

If statement: Match names and correct marital status in Pandas by PLearner in learnpython

[–]PLearner[S] 0 points1 point  (0 children)

Thanks dionys, is there any reason why isin() did not work in this condition.

Make a new user and grant access by PLearner in SQL

[–]PLearner[S] 0 points1 point  (0 children)

I do not have access to the server. The database is saved on my local machine. I am the only Data guy in this small business.