question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Panda's `from_records` missing in Koalas

See original GitHub issue

The equivalent of from_records in Pandas is missing in Koalas (unlike the description in https://github.com/databricks/koalas/blob/0ef453b4ed1add1d3468eb3742333d06228d6e24/databricks/koalas/frame.py#L1429, which hints that it should be available along with to_records).

It would be a useful addition to Koalas package (or at the least, the commentary should be updated to say that from_records is in the works rather than “See Also”).

I was using the latest Koalas version (0.6.0).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
HyukjinKwoncommented, Jun 3, 2019

This will be virtually ks.DataFrame(pd.from_records). should be easy to add.

BTW, to_records is close to violate https://github.com/databricks/koalas#guardrails-to-prevent-users-from-shooting-themselves-in-the-foot . We might have to deprecate it in the future.

0reactions
benjaminbang987commented, Jun 10, 2019

Thank you @HyukjinKwon and @floscha for taking care of this

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deal with missing data in Koalas - Educative.io
Dealing with missing Data​​ Just like in pandas, there are two ways to deal with Nan values in Koalas DataFrame. They are: Drop...
Read more >
databricks.koalas.DataFrame.dropna
Determine if rows or columns which contain missing values are removed. ... Drop the columns where at least one element is missing.
Read more >
Sum null values using Koalas - Stack Overflow
I am trying to avoid converting the dataframe to spark or pandas if possible. NOTE: .sum() omits null values in Koalas (skipna:boolean, default ......
Read more >
Implement Koalas Missing APIs · Issue #1929 - GitHub
Help wanted! A few popular pandas APIs are missing in Koalas. We are going to implement them! Please use this thread to comment...
Read more >
How to force data types with pandas DataFrame builder's ...
Coding example for the question How to force data types with pandas DataFrame builder's function from_records?-Pandas,Python.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found